Active Object problem, CBase 42 error
| Tue, 2005-05-17 08:48 | |
|
Hi all,
I making an app that uses some active objects to basically listen to an incoming sms, send the data to a server via GRPS, read the response from the server via GPRS, and then create an outgoin message from the server. I basically have all the parts working somewhat. The smshandler can handle the sms and the socketsengine can handle the connections. My problem is when I start to integrate everything. I get CBase 42 errors. I read the SDK, it says I call setActive on an AO with a already outstanding request. I dont get it. can someone please explain this? would there be a problem with making multiple AOs? Thanx |
|






Forum posts: 1379
iSocket.Write(iStatus...);
SetActive();
Thats fine, but then, before that write has finished, you are calling SetActive again.
You are not allowed to call SetActive on that one active object until that write has fininshed (i.e. RunL has been called - you can call SetActive again from within RunL too). Or of course, you cancel the Write.
If you wish to do something else in the mean time, wait on something else for instance, then yes, you must use another active object.
didster