View Single Post
Old 18 March 2015, 15:05   #1
AGS
XoXo/Tasko Developer
AGS's Avatar
 
Join Date: Dec 2013
Location: Munich
Age: 46
Posts: 450
Question Closing a window with shared Messageport?

Hi,

I could need some help with this topic. I have a mainloop that gets and replies messages for all windows. In between it shows a message to the window it belongs to and then the mainloop replies it.

When the window sees a close message, it does a forbid and strips all its remaining messages from the common port and replies them. logically the close message that triggered this is replied by the mainloop AFTER the window has stripped its messages, but following the order it should have been replied before the other messages are stripped?

What's the right method?

thanks
ags

ps: I found some documents that says that all messages belonging to a window must have been replied before closing it. I know that, but I don't know if the messages must be replied in a correct order.

pps: I am now doing it in the right order, replying the messages in the order I get them, everything works fine.

Last edited by AGS; 18 March 2015 at 22:52.
AGS is offline  
 
Page generated in 0.04491 seconds with 11 queries