New topic: try AND nilobjectexception
<http://forums.realsoftware.com/viewtopic.php?t=29270> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message DanSandbergUCONN Post subject: try AND nilobjectexceptionPosted: Tue Jul 28, 2009 12:39 pm Joined: Fri Dec 21, 2007 9:50 am Posts: 144 I'm trying to launch another app from my app using: Code:dim fprogram as folderitem try fprogram=GetFolderitem(PATH, folderitem.pathtypeshell) catch err as nilobjectexception msgbox ("You Suck") end try try fprogram.launch catch err as nilobjectexception msgbox ("My msg") end try So the code works fine when the fprogram is where it is supposed to be and it traps the error when the fprogram is moved. However, if I move the parent directory where fprogram usually is then the my RB program crashes. 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 rbforumnotifier@monkeybreadsoftware.de