Access violation in AFX_MAINTAIN_STATE2::AFX_MAINTAIN_STATE2

S

sri.raghav

Hi
We have 3 layers -

1. Unamanged - 3rd Party MFC dll
2. Managed c++ (CLR/CLI) - This one acts as a bridge between managed
and unmanaged
3. C# - GUI that uses Managed C++ to communicate with Unamanaged

The unamanged DLL exposes a Initialize function, which is suppose to
do some initialization and then pop up a dialog box. LoadLibrary
returns success, so does GetProcAddress. But the moment i call the
initialize function it crashes -
Access violation writing location 0x04050eb2

I am trying to Use MFC in a Shared DLL (not sure how the DLL is
referencing MFC)

Any help would be much appreciated

thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top