Mixing managed and native code is sometimes complicated. If you are going
to use static variables, try to put them inside static functions, so you
will delay
the constructor execution. You must also take extra steps when you configure
your application: try to set your application subsystem to "NOT SET" and
leave
an empty entrypoint. If the problem persist, try to link boost with static
linkage
or with other linker config. Also check out msdn about this topic.
Isaac Lascasas.
--------------------------------------------------
From: "Hansi"
Mojmir Svoboda schrieb:
hello,
i have big problem using boost::serialization under windows xp (vs2005sp). the thing is: there is a main application and there are .dll as plugins. i'd like to use boost::serialization from within the plugin, but i get segmentation faults immeadiately when boost_serialization.*.dll is loaded into memory.
Is it possible that you have a managed application? There is a bug in vs2005 which happens with singletons in dlls (only for mixed code). I have made a few tests a long time ago with the beta version of VS2008 and there it works.
Best regards
Hansjörg
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users