Passing .NET Objects
I am calling a .DLL using .NET. I used NETDEFGEN to create applicable Copy books.
I have coded a test, that fails with a Memory Access Violation.
The error is on the statement that is passing a Handle that was created from CLASS that was created. Unfortunately the documentation and the samples do not replicate the coding that I need. I have included a test program that reproduces the error. I suspect the CLASS is not set up in NETDEFGEN correctly. I have attached the program, the .DEF copy files from NETDEFGEN and the library. I have inserted comments describing the issue, just in front of the line that is executed that causes the error.
Re: Passing .NET Objects
To get any action, you should really contact tech support and have them raise an RPI. I get the MAV as well, but don't have the ability to work on solving it right now.