Hi
I'm faced with a very pesky problem. I have a managed assembly done in
C++/CLI which interface to native C++ codes, and a C# app which consumes
this assembly. I realize that when both the app adn assembly are in
release mode, running in the VS IDE by pressing F5 with the active
config set to release, it was able to work flawlessly. However, running
the app and assembly on its own, will crash it. Debug mode however works
both ways flawlessly. I have functions which traverse the native=manage
boundary and I used the GCHandle to lock the manage delegate in place
and express it as a function ptr which I pass over to the nativke code.
I realize that this could be a cause of failure in release mode, but
I've used Alloc to lock it in place, what other thing do i need to do?
It is damn irritating when it crashed, complaining of buffer overrun,
and when I try to debu it, throws me the debug hook source code which
provides no information that I can use to find out what is wrong with my
code. Could someone please enlighten me on this? I've been going in
circles for the past few days adn can't fidn a way to overcome it. thank
you so much for any succour. :)