?
Solved

How to solve the "Unexpected error, quitting" URGENT

Posted on 1998-07-15
3
Medium Priority
?
2,170 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…
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…
Suggested Courses

719 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