Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Hi,

I am facing a very strange issue when using the GETAPPINSTANCE macro inside a GPS callback.The macro or rather the function GETAPPINSTANCE() seems to be working well in some cases and doesnt return the pointer and return NULL in some cases.The problem doesnt occur in the same call all the time it seems to be very inconsistent.Am really stuck since am using this macro in a lot of places to attain pointers of the shell.

If anyone can help me on this it would be great....

--Navin

Yes, This is really weird problem and occuring for me as well from today.
I am developing application in c++ and main app class is derived from AEEApplet.
To access main application handle everywhere in the code, rather than passing pointer to each class constructor, I am using singleton approach to get the instance/handle of main application handle wherever required in the code.
Now, GETAPPINSTANCE() sometimes returns NULL value and sometimes not null. Can anyone help me on this what could be the problem? I am also using few callbacks in my code and my application is multitask application created using threading concept.
Please help me because my app crashes everytime at some place in code and all the time it is at GETAPPINSTANCE() only/
Thanks in advance.
Aahna

Yes, This is really weird problem and occuring for me as well from today.
I am developing application in c++ and main app class is derived from AEEApplet.
To access main application handle everywhere in the code, rather than passing pointer to each class constructor, I am using singleton approach to get the instance/handle of main application handle wherever required in the code.
Now, GETAPPINSTANCE() sometimes returns NULL value and sometimes not null. Can anyone help me on this what could be the problem? I am also using few callbacks in my code and my application is multitask application created using threading concept.
Please help me because my app crashes everytime at some place in code and all the time it is at GETAPPINSTANCE() only/
Thanks in advance.
Aahna