Test and Measurement Forum

HumidiProbeGetUnitInfo

Post general discussions on using our drivers to write your own software here

HumidiProbeGetUnitInfo

Postby Wazzer » Thu Jun 14, 2007 4:38 pm

Hi,
I am trying to use HumidiProbeGetUnitInfo to distinguish which of numerous probes I am reading (in VB6)

I get the temp and humidity fine but on
ok = HumidiProbeGetUnitInfo(handle, probeinfo, 255, 4)

where handle (int) like 1 and probeinfo is a string variable

program crashes with
Unhandled exception at 0x77124cb4 in VB6.EXE: 0xC0000005: Access violation reading location 0x36524e45.

Any ideas?
Wazzer
User
User
 
Posts: 3
Joined: Wed Dec 20, 2006 12:01 pm

Postby Wazzer » Thu Jun 14, 2007 5:42 pm

I have found the issue. The string to recieve the deviceinfo needed to be initialised first as it not called byVal. So set probeinfo = " " first then I am OK.
Wazzer
User
User
 
Posts: 3
Joined: Wed Dec 20, 2006 12:01 pm


Return to General Software Discussions

Who is online

Users browsing this forum: No registered users and 0 guests