How do I access transient instance variables from another thread?
0 posts in topic
Flat View  Flat View

Posted By:   Paul_Hodgdon
Posted On:   Thursday, May 10, 2001 07:52 PM

I have a GUI that runs a ServerSocket in a seperate thread using the accept() method. When data comes in and the accept() method is called a new thread is started. In the run() method of that thread I do a call to setMessage(). In the setMessage routine of the ServerSocket Class I fire a messageEvent. The problem is that I have no access to the MessageListener variable because it is transient. Is there any way to gain access to this data? I neeed the event info to properly fire the correct method EtoM3 or something like that. When I check this->MessageLister it is equal to null.

About | Sitemap | Contact