I have an application that using a 3rd party library, and it just works fine in .NET 3.5.
The function of the unmanaged library accepting a byte array as one of the parameter.
However, we have planned to upgrade to .NET 4.0 this year. And then we found a weird error after the upgrade.
I guess that unmanaged library was developed by C/C++. I have called the vendor and tell them my situation but they said it is NOT their issue. It should be .NET Framework issue and asked me to call support from Microsoft. But they won't provide any source code to us because it is confidential.
On the other side, Microsoft said they can't do anything without the source code.
Then, I was stuck by this issue for a few months ago.
Could anyone please give me some hints about where the issue came from??
The image below was captured by Visual Studio 2012 after I enabled the Native Code Debug:
Anson