|
Boost Users : |
Subject: Re: [Boost-users] boost::function and cross dll call issue
From: ariasgore_at_[hidden]
Date: 2012-05-07 02:58:03
Sooo,
I found the bogus. The host application had a struct member alignment set to 16 bytes which did a bad job for the boost header :)
Sam
-------- Original-Nachricht --------
> Datum: Sat, 5 May 2012 09:43:51 -0700 (PDT)
> Von: Artyom Beilis <artyomtnk_at_[hidden]>
> An: "boost-users_at_[hidden]" <boost-users_at_[hidden]>
> Betreff: Re: [Boost-users] boost::function and cross dll call issue
>
>
> ----- Original Message -----
> > From: "ariasgore_at_[hidden]" <ariasgore_at_[hidden]>
> > To: boost-users_at_[hidden]
> > Cc:
> > Sent: Friday, May 4, 2012 8:55 PM
> > Subject: [Boost-users] boost::function and cross dll call issue
> >
> > Hello,
> > I have a weird access violation when using boost::function which is
> passed from
> > one DLL to another.
> > At work we use an engine that loads libraries at runtime.
>
>
> You MUST check following basic points:
>
> 1. Make sure that they use **exactly same** version of Boost with same
> flags (debug/release etc)
>
> 2. Do all the DLLs use exactly the same runtime, such that something
> allocated
> Â Â in one DLL and deallocated in other calls exactly the same functions.
>
> Â Â Best try to check it with depends.exe program and check if the use
> Â Â and load same MSVCxxx.DLL
>
> Â Â Including same debug/release and exact version.
>
> 2. Make sure that they both use Dynamic Runtime linking (i.e. do not link
> Â Â with MSVC runtime statically)
>
> Just hints to debug
>
>
> Â
> Artyom Beilis
> --------------
> CppCMS - C++ Web Framework:Â Â http://cppcms.com/
> CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net