
9 Oct
2007
9 Oct
'07
4:01 p.m.
Has anyone tried using boost spirit with C++/CLI? I have a library that uses Spirit internally to parse a file. The library is built as an unmanaged C++ static library. I then link that to a managed C++/CLI application but when I try to parse the file I get heap corruption. The corruption seems to happen near an #ifdef for BOOST_SPIRIT_THREADSAFE so I tried to define that for the build of the library and the application. Unfortunately it now fails to initialize correctly and dies on startup. Has anyone done this before? Thanks, Jason Stewart