ISHELL_PostEvent() Problem!!! | developer.brewmp.com ISHELL_PostEvent() Problem!!! | developer.brewmp.com

Developer

ISHELL_PostEvent() Problem!!!

Forums:

Hi Everyone,

Well i have two applications which will communicate by sending events to each other by using ISHELL_PostEvent()... For instance:

My first applet name is "Applet1" .. and my second applet name is "Applet2" .. whereas Applet1 is running in background.

Now what i did ... i sent an event from Applet1 to Applet2 (using ISHELL_PostEvent).

Applet2 (which is running in foreground) receives that event, did some work accordingly and then send an event to Applet1 (again by using ISHELL_PostEvent), but this time Applet1 didnt get any event.

Can anyone tell me where is the problem is this whole scenario?? .. is this happening because the Applet1 is running in background?? .. i think applet can get event msgs while running in background mode ...

Please tell me all possible Problems and Solutions regarding this issue.

Thanx n Regards,
Sallu.

Are you using user event?

Are you using user event?

Hello Bru,
Well i used a custom event for that ... neways i already solved this issue by using ISHELL_SetTimer() .. actually i read somewhere that we can only send one PostEvent at a time .. like if i want to send a second PostEvent then it is necessary to return TRUE/FALSE for the first PostEvent .. without that your Msg will not reach the destination ... so i used SetTimer and return TRUE/FALSE before processing the event ... but it caused my applet to slow down the execution time as for every event msg it will wait for a specified time and then process that event.. and sometime it is very critical ... so is there any other way to resolve this issue?? .. if yes then please do let me know .. okeiz
Regards,
Sallu.

Hello Bru,
Well i used a custom event for that ... neways i already solved this issue by using ISHELL_SetTimer() .. actually i read somewhere that we can only send one PostEvent at a time .. like if i want to send a second PostEvent then it is necessary to return TRUE/FALSE for the first PostEvent .. without that your Msg will not reach the destination ... so i used SetTimer and return TRUE/FALSE before processing the event ... but it caused my applet to slow down the execution time as for every event msg it will wait for a specified time and then process that event.. and sometime it is very critical ... so is there any other way to resolve this issue?? .. if yes then please do let me know .. okeiz
Regards,
Sallu.