• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 235
  • Last Modified:

vb app not running on ME. says

Hi

Hopefully someone will be able to help me here. ive been working on a project for about 6 months now, which is an access database interfaced through vb6. i have been using it successfully on 2000, me, 98 and xp without ne problem, till yesterday, when i used the vb package and deployment tool to create the installation, LIKE ALWAYS, and installed it on the ME machine. had done it before, without ne problems. this time, the setup wizard said that the files are too old, and needs to be updated and windows must be restarted before setup could continue. i hit yes, the program did install, but it never runs. it says "Unexpected Error" and quits. if i replace this exe with any of the older exe's, it works. also the current exe works on xp, 2000 and 98. i believe it has something to do with the dlls and their versions. somehow the wrong one got in and its messing up everything. i have to present my software in a convention 2 days from today !!! i havent been able to write ne new code since yesterday :( and i cant fix this one on my own... please help :(
0
razisyed
Asked:
razisyed
1 Solution
 
DabasCommented:
When you ran setup and it asked you to reboot, did you then run setup again????

Dabas
0
 
Frog357Commented:
If it only happens with WinME I have a feeling it has to do with System Restore.  Try disabling this feature and install again.  It may be preventing you from changing a dll and this is where the problem arises.

Or the WinME client may have an updated version of MSADC which is scraping your program.  I've had issues with different versions of this not acting the same.

Try adding some error catching code to your program, it may give you more to work with, for example:

Private Sub Form_Load()
On Error GoTo ErrorHandler
100 '...
110 'your code here...
120 '...
Exit Sub

ErrorHandler:
130     MsgBox Error$ & " in line " & Erl & vbCrLf & "Error #=" & Err.Number & vbCrLf & Err.Description, vbCritical, "Error in Form_Load"
140     Resume Next
End Sub

I add this to any sub / function which may cause errors or has caused errors.  Line 140 allows you to resume code, it may not be wanted if a serious error occurs but if you need to keep the program running no matter what this helps!

A lot of people don't know about line numbers in vb6 ;)
0
 
DabasCommented:
Interesting.

I knew about line numbers, but not about Erl. Thanks!

Dabas
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
razisyedAuthor Commented:
Hey guys...

thanx for the responses. i actually figured it out myself :) see i knew it had to be one of the dlls that vb installs... one of them had to be corrupt. i just did'nt know which one. i used the hit and try method for a while but all in vain, coz there were simply too many dlls and ocxs. neway, i just installed visual studio on the pc with ME, where my program was not running. when i compiled and ran it... viola, it poped an error msg with the name of the dll that failed to load... so i just replaced that one and now everything works fine :) i still dont know how that got corrupted, and interestingly enough only on me... neway, i dont have the time to speculate on that. wish me luck on my presentation
0
 
DabasCommented:
Good luck on your presentation, razisyed!
0
 
FaithRavenCommented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Delete/Refund
Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

FaithRaven
EE Cleanup Volunteer
0
 
DabasCommented:
FaithRaven:
Disagree.
Razisyed has provided a full solution that might help somebody in the future.

My suggestion:
PAQ/Refund

Dabas
0
 
FaithRavenCommented:
Then i wonder why he didn't ask for a refund. I Still think that was influenced by Frog357's post or at least Frog357 provided a good method for finding the problem.
I don't contest your suggestion, and i will let a moderator to decide.
I thank you for caring about this.

Yours,
    FaithRaven
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.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now