Link to home
Start Free TrialLog in
Avatar of razisyed
razisyed

asked on

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 :(
Avatar of Dabas
Dabas
Flag of Australia image

When you ran setup and it asked you to reboot, did you then run setup again????

Dabas
Avatar of Frog357
Frog357

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 ;)
Interesting.

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

Dabas
ASKER CERTIFIED SOLUTION
Avatar of razisyed
razisyed

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Good luck on your presentation, razisyed!
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
FaithRaven:
Disagree.
Razisyed has provided a full solution that might help somebody in the future.

My suggestion:
PAQ/Refund

Dabas
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