08-25-2014 07:22 AM
I have a CVI DLL that customer is trying to call from Visual Studio 2012. The call works in VB6, but not Visual Studio. Error is PInvokeStackImbalance. Anyone else encounter this issue? CVI prototype below...
int __stdcall TestDLL(int mode,int range,double q, double p,double *records,double *rec2,char *str);
08-25-2014 02:26 PM
@ruskin1 wrote:
I have a CVI DLL that customer is trying to call from Visual Studio 2012. The call works in VB6, but not Visual Studio. Error is PInvokeStackImbalance. Anyone else encounter this issue? CVI prototype below...
int __stdcall TestDLL(int mode,int range,double q, double p,double *records,double *rec2,char *str);
You don't say which flavor of Visual Studio 2012, they are using, VB.NET, C#, ?
here is tutorial for C# http://msdn.microsoft.com/en-us/magazine/cc164123.aspx
08-26-2014 06:39 AM
Customer tells me they are using Visual Studio 2012/VB, I presume VB.NET. They claim there was a change from .NET Framework 4 that no longer automatically fixes problems with the stack. Can the stack be packed in such a way to cause problems?
08-26-2014 12:35 PM - edited 08-26-2014 12:36 PM
@ruskin1 wrote:
Customer tells me they are using Visual Studio 2012/VB, I presume VB.NET. They claim there was a change from .NET Framework 4 that no longer automatically fixes problems with the stack. Can the stack be packed in such a way to cause problems?
Were they using a different version of Visual Studio before or were they using VB6?
In your first post they mentioned VB6 which leads me to think that they are not quite telling you the whole story.
It is quite easy to download VB.NET 2010 Express to verify.