HumidiProbeGetUnitInfo

Post general discussions on using our drivers to write your own software here
Post Reply
Wazzer
User
User
Posts: 3
Joined: Wed Dec 20, 2006 12:01 pm

HumidiProbeGetUnitInfo

Post by Wazzer »

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

Post by Wazzer »

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.

Post Reply