Solved

How to solve the "Unexpected error, quitting" URGENT

Posted on 1998-07-15
3
2,003 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 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
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…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

751 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