New topic: GUI doesn't respond after thread run raises an exception...
<http://forums.realsoftware.com/viewtopic.php?t=34274> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message JustSomeGuy Post subject: GUI doesn't respond after thread run raises an exception...Posted: Mon Jun 14, 2010 3:04 pm Joined: Fri May 11, 2007 11:35 am Posts: 878 I have a loop within a thread, that runs fine until it raises and exception... Which it catches, logs a message and moves on... However after raising the event the gui stops updating... i.e. I can't interact with my app till the thread run loop completes. Code:Private Sub ImportFolder(f as FolderItem) If f <> Nil then for i as integer =1 to f.Count if not f.TrueItem(i).Directory then Dim img as new Image try img.fromFile(f.TrueItem(i)) iface.SeriesLoaderThreadUpdate(img) catch err as TypeMismatchException System.DebugLog("Wasn't able to read " + f.TrueItem(i).AbsolutePath) end try img = Nil app.DoEvents else ImportFolder(f.TrueItem(i)) end if next end if End Sub The run method of my thread simply calls ImportFolder... The app runs after the exception, but the app no longer responds to user input... I'm on Mac OS X 10.5.8 Using REAL studio 2010 Release 2 Enterprise Edition. _________________ 6502 Assembler on Steroids Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 1 post ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
