Weird Exception catch in the debugger (REALbasic network user group Mailinglist archive)
Back to the thread list
Previous thread: Re: realbasic-nug Digest, Vol 75, Issue 26
Next thread: Flash 10.1, webkit / safari 5 / core animation
| Re: Xcode 4 - Rubber Chicken Software Co. | ||
| Weird Exception catch in the debugger - Eric dLR | ||
| Re: Weird Exception catch in the debugger - Roger Clary | ||
| Weird Exception catch in the debugger |
| Date: 13.06.10 19:18 (Sun, 13 Jun 2010 19:18:35 +0100 (ica)) |
| From: Eric dLR |
|
When quitting my application while debugging, I'm getting a weird NilObjectException in this weird piece of
code: Function Username() As String Private pPicture As Picture Private pUsername As String End Class The gray background used to show where the exception has occured is on the first line. The method shown in the debugger popup menu is 'ChatMember.pMemberList._Exit'. for Information, ChatMember.pMemberList is a well defined dictionary. If I click on 'Step' If get at the end of ChatMember.Destructor and the 'End Sub' line is grayed. Another click on 'Step' and the app quits as expected. Although a NilObjectException has been raised, the app is closing nicely so far. Is it a bug in the IDE that doesn't hide everything it does, or should I worry about my 'Shutdown' sequence. I'm using REAL Studio 2009r4 on Mac OS X. Thanks for any advice, Eric. _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html> |
| Re: Weird Exception catch in the debugger |
| Date: 14.06.10 02:33 (Sun, 13 Jun 2010 21:33:38 -0400) |
| From: Roger Clary |
|
On Jun 13, 2010, at 2:18 PM, Eric dLR wrote: > When quitting my application while debugging, I'm getting a weird NilObjectException in this weird piece of > code: > > Function Username() As String > Private pPicture As Picture > Private pUsername As String > End Class > > The gray background used to show where the exception has occured is on the first line. The method shown in > the debugger popup menu is 'ChatMember.pMemberList._Exit'. for Information, ChatMember.pMemberList is a well > defined dictionary. If I click on 'Step' If get at the end of ChatMember.Destructor and the 'End Sub' line > is grayed. Another click on 'Step' and the app quits as expected. > > Although a NilObjectException has been raised, the app is closing nicely so far. Is it a bug in the IDE that > doesn't hide everything it does, or should I worry about my 'Shutdown' sequence. > > I'm using REAL Studio 2009r4 on Mac OS X. > > Thanks for any advice, Apparently, ChatMember has already been destroyed by the auto garbage collection of REALStudio. Thus, when your code attempts to enter ChatMember.pMemberList._Exit, ChatMember no longer exists and you get the NOE. Roger Clary Class One Software http://www.classonesoftware.com Educational Software for Lifelong Learning _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html> |
Links
MBS Realbasic PDF Plugins - Nachhilfe in Nickenich