Wrong openS7online function signature on .NET DLL
Status: Beta
Brought to you by:
lettoz
When using VB2005 Express and libnodave.dll and libnodave.net.dll the following function call works on libnodave version 0.8.2:
fds.rfd = libnodave.openS7online("S7ONLINE")
But with version 0.8.4 you get the following error message:
A call to PInvoke function 'libnodave.net!libnodave::openS7online' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature.
Logged In: NO
You can put disable this warning window on c# compiler.
If you want make this
- Project properties \ Debug. You must put disable ENABLE THE VISUAL STUDIO HOSTING PROCESS
- In regedit, HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework
You must create a new key: Name: MDA and value: 0 for disable and 1 for enable