?
Solved

vb app not running on ME. says

Posted on 2003-02-18
9
Medium Priority
?
229 Views
Last Modified: 2010-04-17
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
Comment
Question by:razisyed
[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
9 Comments
 
LVL 27

Expert Comment

by:Dabas
ID: 7978849
When you ran setup and it asked you to reboot, did you then run setup again????

Dabas
0
 
LVL 4

Expert Comment

by:Frog357
ID: 7978977
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
 
LVL 27

Expert Comment

by:Dabas
ID: 7979005
Interesting.

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

Dabas
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 1

Accepted Solution

by:
razisyed earned 0 total points
ID: 7979409
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
 
LVL 27

Expert Comment

by:Dabas
ID: 7979445
Good luck on your presentation, razisyed!
0
 
LVL 3

Expert Comment

by:FaithRaven
ID: 9300013
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
 
LVL 27

Expert Comment

by:Dabas
ID: 9300173
FaithRaven:
Disagree.
Razisyed has provided a full solution that might help somebody in the future.

My suggestion:
PAQ/Refund

Dabas
0
 
LVL 3

Expert Comment

by:FaithRaven
ID: 9300208
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

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

In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

762 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