Solved

How to solve the "Unexpected error, quitting" URGENT

Posted on 1998-07-15
3
1,949 Views
Last Modified: 2008-02-01
I've wrote the application using VB5 and access Microsoft Access database with rdo,and I use Remote Data Object to be a datasource for link up some textbox. I can execute it on my computer, but after generated a setup disk and install into the other computer, when double click to run it, it appear "Unexpected Error; quitting" message.  How to solve it? Isnt any code should be place into my program or create the user DSN occur error that cause the error? Any attention or correction should be do?  Urgent Urgent. Pls help!!
0
Comment
Question by:Galvani
3 Comments
 

Expert Comment

by:biko071598
ID: 1465926
More info is needed.  But if I had to guess, it sounds like you're target system has some incompatible dll's on it.  I've personally had this happen with vb4-32 but not THAT many times with vb5.  It is probably a control (i've had it happen with the tab control-in particular) but can be due to a ole-reference. Here is a procedure that will point you in the right direction: put very verbose error checking (logging or msgboxes) in your startup objects  and all of your form_load events and then try to run it on the bogus system.  Chances are you're using a form as a startup object and a control on it is not completely registered.  If it is a control - it will be obvious with the diagnostics.  You may then review the dependencies for that control on the working and non-working machines and correct any differences in the file versions, unregister the control, and re-register the control.  
0
 

Author Comment

by:Galvani
ID: 1465927
What's dependencies files? How to re-generate/change it? If the file versions arent correct, how to unregister the control, and re-register the control?
0
 

Accepted Solution

by:
ImmanuelOnse earned 80 total points
ID: 1465928
1) Open your VB5 form in a text editor (ie Notepad)
2) Near the top of the file will be a listing of some of the dll's, etc, used by the form & their classIDs, ie
Object={F9043C88-...}#1.1#0"; "COMDLG32.OCX"
3) Use the classid to find & compare registry keys.
4) Copy the correct file(s) &, if need-be, reg keys to the faulty machine. You prob won't need to re-register the file(s) yourself, it SHOULD be automatic, but the copied.reg keys should work
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question