Ok, steped through it: [System.InvalidOperationException] = {"Cross-thread operation not valid: Control 'logBox' accessed from a thread other than the thread it was created on."} How can I avoid that? --Jesse
On 7/6/06, John Hurliman <[EMAIL PROTECTED]> wrote:
Jesse Nesbitt wrote: > Hey all, > I'm having some trouble with using an onChat method. It fires > correctly (I know because I have it display a message box), but I > can't get it to add anything to a listbox or textbox. Is this due to > some threading issue? > Thanks in advance. > --Jesse > Events can fire in rapid succession or simultaneously, so depending how your code is setup this could cause an issue. If you look at the slaccountant code there is an example of using a Mutex to lock the ListView control while searching for names. Try stepping through with a debugger, or have the message box display the chat line you want to output and see if multiple message boxes are popping up at the same time, and if they contain the text you want. Also, try adding something to the listbox/textbox at the startup of your app to make sure your appending code is correct. John _______________________________________________ libsecondlife-dev mailing list libsecondlife-dev@gna.org https://mail.gna.org/listinfo/libsecondlife-dev
-- --Jesse _______________________________________________ libsecondlife-dev mailing list libsecondlife-dev@gna.org https://mail.gna.org/listinfo/libsecondlife-dev