HumidiProbeGetUnitInfo

 
Post new topic   Reply to topic    Pico Technology Forum Index -> General Software Discussions
Author Message
Wazzer
User
User


Joined: 20 Dec 2006
Posts: 3

PostPosted: Thu Jun 14, 2007 4:38 pm    Post subject: HumidiProbeGetUnitInfo Reply with quote

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?
Back to top
Wazzer
User
User


Joined: 20 Dec 2006
Posts: 3

PostPosted: Thu Jun 14, 2007 5:42 pm    Post subject: Reply with quote

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.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Pico Technology Forum Index -> General Software Discussions
All times are GMT
Page 1 of 1

 


Pico Technology topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group