04-17-2010 06:53 AM
I am implementing methods given at:
I have tried in Background thread also but when it goes into for(; ; ) loop hourglass appears and make the application hanged, is there other way to implement it.
04-18-2010 12:37 PM
are you doing something with the message after receiving it? if yes, try separating the processing by spawning another thread. so your background thread just listens for the incoming message and then it creates another thread to process the message.
04-18-2010 09:59 PM
May I ask why you are using an empty for loop? The message listener will be invoke each time a messae comes in as long as it is registered, there is no reason for the empy for loop to listen to messages. If this is for sending messages, then make sure you have a sleep inside the for loop and break out of it when a message is ready to be sent.