Example code gives exception on win7

Moderator: Telldus

Post Reply
AndersJ
Posts: 4
Joined: Fri Mar 17, 2023 9:45 am

Example code gives exception on win7

Post by AndersJ »

Hello everybody !
Tried to make the callback example (http://developer.telldus.se/browser/exa ... #callbacks) work on win7 on a 64 bit machine.

The VS 2008 project is uploaded here: https://docs.google.com/open?id=0B92w5F ... VJiMGxvS0U

It almost works, when sensor is activated, callback fires but but crashes occurs when returning from Events::deviceEventCallback:

First-chance exception at 0x00000001 in telldus.exe: 0xC0000005: Access violation.
Unhandled exception at 0x77e815de in telldus.exe: 0xC0000005: Access violation.

Anybody has a clue on this ?


//Anders
PerM
Posts: 58
Joined: Fri Mar 17, 2023 9:45 am
Contact:

Re: Example code gives exception on win7

Post by PerM »

Access violation 0x5 is usually a null pointer problem.

I have a working implementation for both 32 and 64bit which I use in BM. Although it is targeted towards Mangaged .NET, the interface to Telldus' API uses C++.
The library is licensed under LGPL, see the download at the bottom of the page at http://www.beyondmeasure.se/download/

Or you can use BM and benefit from all the rest of it's functionality :)
Beyond Measure - mer än bara mätning: Rita regler grafiskt, styr enheter, skapa grafer, skicka/ta emot SMS, E-mail, 1-Wire, RFXtrx, Tellstick....
Post Reply