K8055-Microsoft VB .net error 217

Having successfully hacked around the vb .net example in vb express 2008 I have added code to an existing project but if I connect calling the OpenDevice(cardAddress) either successfully or not, when I come to close the program after calling CloseDevice() I get the following Dialog box’s :-
An application error from myprogramname.vshost.exe
unknown software exception (0x0eedfade) occurred in the application at location 0x etc.
Together with an error msg box
Runtime error 217 at 00009C34

This only seams to occur whilst the program is running under vshost, once compiled no errors flag up.
Please apart from being annoying when debugging is there a problem with the Close device routine just under vshost ?
Regards
Paul

visual studio 2008 ver 9 .net ver 3.5 sp1 under xp

Here’s the link to download the K8055 software package with examples and with new K8055D.DLL:
velleman.eu/downloads/files/ … rsion4.zip
Please see the example in the subfolder \examples\K8055DemoVB_2008
Do you get the same error if you run this example?

Before running the example project, please copy the file K8055D.DLL from the folder \DLL_v4.0.0.0 to the \Windows\System32 folder.
In 64-bit environment copy the file to \Windows\SysWOW64 folder.

New DLL doesn’t generate error, Thanks