Solved

How to solve the "Unexpected error, quitting" URGENT

Posted on 1998-07-15
3
1,863 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

746 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now