jccorner Posted May 23, 2004 Posted May 23, 2004 I've searched for people with this problem and haven't found an answer. I have a public shared form and when I try to show it, it blows up. if Globals.frmContact = *Nothing Globals.frmContact = frmContact New() Addhandler Globals.frmContact Closed HandlerSr(RefreshForm) Globals.frmContact.MDIParent = *this.MDIParent endif Try Globals.frmContact.Show() Globals.frmContact.Focus() Catch Name( z ) Type(System.Exception) Globals.frmContact.Dispose() Globals.frmContact = frmContact New() Globals.frmContact.Show() Globals.frmContact.Focus() EndTry I know the code is different, it's a different language, but very much similar to VB.net. If anyone has any clues I'd greatly appreciate it. Quote Applying computer technology is simply finding the right wrench to pound in the correct screw
Administrators PlausiblyDamp Posted May 23, 2004 Administrators Posted May 23, 2004 What language is it? What does *Nothing mean? When you say it blows up - what exception (if any) do you get and on what line in your code. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
jccorner Posted May 24, 2004 Author Posted May 24, 2004 The signature should have clued you in, it's VR (Visual RPG). *Nothing disconnects the object from its memory address therefore the object virtually equals Null. The error I'm getting is: Error creating window handle. It occurs on the Show statement of the form. Quote Applying computer technology is simply finding the right wrench to pound in the correct screw
jccorner Posted May 24, 2004 Author Posted May 24, 2004 Never mind, found the answer. Forgot to add the connection statements to the 400 on the form being called. Quote Applying computer technology is simply finding the right wrench to pound in the correct screw
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.