Hi!
I created the device object in a class called Application but when I try to set the event receiver the programm crashes. I made the device object public and tried to set the event receiver from outside and it worked... Is there anything I have to do if I use the device object in a class?
Thanks for your help
Chris
Problems with EventReceiver
Well most probably the program segfaults. It's hard to tell without the code, but one thing i know is that you have to instantiate the receiver before you pass it to the device constructor. That is if you have it on the heap, which you probably do, and if you don't the problem might be that the object goes out of scope. Seeing your code could help, because there're so many things that could go wrong.