Hi,
I have developed a CSharp.Net dll that is getting used by native code in c++ using interop. I am using event sink technique to consume the data from dot net dll.
The work is going fine on 32 bit machine, no problem at all.
but, on 64 bit windows server 2008 I am not receiving data properly from dot net dll
Here is the structure I am using,
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Ansi)]
public class MyDemo
{
public IntPtr ptr1,
.
.
.
public IntPtr ptr9,
public String str1,
.
.
.public String str6
}
I am receiving false values for few InPtr fields and bad pointer for few string, although few string are getting values of other string fields ,
I don't have any idea what's going on,
please help!