I have an unmanaged 32bit DLL, which uses callback function.
When using unmanaged codes, such as Visual C++, Delphi, Visual Basic, all of them can call the DLL successfully under both Windows XP(SP3) and Windows 7(32bit and 64bit). I have made many tests without any problems.
When using C# to call the DLL under Windows XP(SP3), everything is still OK.
However, when using C# to call the DLL under Windows 7(32bit), I will always get the error message as follows:
After some time, the messagebox will ask me whether to debug or not, if I choose to debug, then Visual Studio 2008 will be loaded, as follows:
Then if I select the "Break" button, I will get into disassembled codes, as follows:
The C# program is built for .NET framework 3.5, and I have confirmed that .NET framework 3.5 has been installed on the system.
Can anyone tell me what is the problem? Thanks