Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

-2147417848 Unload Me

Status
Not open for further replies.

cappmgr

Programmer
Joined
Jan 29, 2003
Messages
639
Location
US
I searched on -2147417848 unload and got one hit and it related to crystal. Not much help.
This is our problem; when issuing Unload Me on many forms in our app we are getting

Run-Time error'-2147417848(80010108)
Method 'QuiteMe' of object 'frmName' failed

Here is the QuiteMe Sub

Public Sub QuitMe()
Unload Me
End Sub

No noticeable pattern. We are using inline sql and stored procedures hitting Oracle 8i in the middle tier objects.
Any thoughts greatly appreciated.
tyvm,
Marty
 
What happends when you try using Unload FormName? Maybe you should try passing a variable to get the actual forms name before passing it to a subroutine

Public Sub QuitMe(FormName As string)
Unload Formname
End Sub


 
Typo maybe?

>Here is the QuiteMe Sub

>Public Sub QuitMe()







----------------------------------------------------------------------

Need help finding an answer?

Try the search facilty ( or read FAQ222-2244 on how to get better results.
 
japskunk72:
Thank you for the reply. I'll suggest it; why will this help?

I would like to be able to reproduce the error and to fix it before changing all of the code.
tyvm,
Marty
 
Cappmgr,
I am not around my VB6 computer right now or i would try it, but i was wondering if you where passing the "unload me" in a public sub, how would the program know what me is? but if you could detect what the form name is first then send it to a sub routine there is no guessing.
maybe thats where the error is comming from?

before calling the sub routine try this
formname = me

quitme(formname)

make sure to make a public Const for Formname

JT

 
Japskunk72,
I wanted to let you know what happened. It took awhile to go from Dev to Prod. Anyways I thought you nailed it. I was just informed today that it is still happening with the form name instead of ME.
BTW. I did check out both links you posted prior to posting the question. The first dealing with dictionary worked, and the second dealing with usercontrol did not work, I got a

Run-time error '373': "This interaction between compiled and design environment components is not supported." for a VB6 project.
I am not sure what this proves.

tyvm,
Marty

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top