Anybody have any ideas on this cryptic error message when calling this:
bRet = DeviceIoControl (hGpiFile, IOCTL_BLIO_READ _BYTE, lpBufferIn,
Len(lpBufferIn) , lpBufferOut, Len(lpBufferOut ), lpBytesReceived , Nothing)
A first chance exception of type 'System.Argumen tException' occurred in
Microsoft.Visua lBasic.dll
at Microsoft.Visua lBasic.Compiler Services.Struct Utils.Enumerate UDT(ValueType
oStruct, IRecordEnum intfRecEnum, Boolean fGet)
at Microsoft.Visua lBasic.Compiler Services.Struct Utils.GetRecord Length(Object
o, Int32 PackSize)
at Microsoft.Visua lBasic.Strings. Len(Object Expression)
at BlastronicsGpi. cGpi.CheckForIn put() in E:\VB
Projects.Net\Bl astronicsGpi\Bl astronicsGpi\cG pi.vb:line 126
Argument 'oStruct' is not a valid value.
-Lou
bRet = DeviceIoControl (hGpiFile, IOCTL_BLIO_READ _BYTE, lpBufferIn,
Len(lpBufferIn) , lpBufferOut, Len(lpBufferOut ), lpBytesReceived , Nothing)
A first chance exception of type 'System.Argumen tException' occurred in
Microsoft.Visua lBasic.dll
at Microsoft.Visua lBasic.Compiler Services.Struct Utils.Enumerate UDT(ValueType
oStruct, IRecordEnum intfRecEnum, Boolean fGet)
at Microsoft.Visua lBasic.Compiler Services.Struct Utils.GetRecord Length(Object
o, Int32 PackSize)
at Microsoft.Visua lBasic.Strings. Len(Object Expression)
at BlastronicsGpi. cGpi.CheckForIn put() in E:\VB
Projects.Net\Bl astronicsGpi\Bl astronicsGpi\cG pi.vb:line 126
Argument 'oStruct' is not a valid value.
-Lou
Comment