----- Original Message -----
From: "ariasgore@gmx.de"
To: boost-users@lists.boost.org 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/