Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to solve the "Unexpected error, quitting" URGENT

Posted on 1998-07-15
3
Medium Priority
?
2,253 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 160 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

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…
Suggested Courses

886 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