using gpib 488 commands within my VB.Net program (e.g. ibrd, ibwrt), i get the .Net runtime crashing randomly. it occurs frequently, but not consistently - in other words, it may crash after 100 calls, or may crash after 1000 calls to the dll, but eventually it will always crash. this is very frustrating because we are trying to collect data and having the program crash half-way through a long (two or three hour) test causes LOTS of wasted time and effort. i have tried many of the different types of marshalling that vb.net provides, but to no avail. what do i need to do to keep this from crashing?
below are the errors from the Windows Application Log:
The dll that is causing this issue (mscorwks.dll) is not a National Intstruments dll. It looks like it is part of the Microsoft .NET framework, so Microsoft may be able to help. If you do believe this is an issue with National Instruments, create a small application that will cause this error and attach it here, so that I can replicate the error and help you further.