|
-
Aug 3rd, 2004, 04:37 AM
#1
Thread Starter
Registered User
-
Aug 3rd, 2004, 06:27 AM
#2
Sleep mode
You should post some code that you suspect it errors out(in closing or under that button event handler) . First , if you didn't use any try-catch block , then you should try so you can get more descriptive error messages .
-
Aug 3rd, 2004, 08:18 PM
#3
Thread Starter
Registered User
thanks pirate for the reply.
ok i got it.
why it gives me an error?
VB Code:
Private Sub DepartmentEntry_Closing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing
cn.Close()
me.close()-----> this gives me an error.
error:[i]Exception of type System.StackOverflowException was thrown [/i]
End Sub
-
Aug 3rd, 2004, 08:53 PM
#4
Because Me.Close() fires the Closing event, which in turn calls Me.Close(), which fires the Closing event, and so on.
And there's the perfect example of a stack overflow.
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|