Results 1 to 13 of 13

Thread: VB6 App on 98 Machine: "Unexpected Error; quitting"

  1. #1

    Thread Starter
    Fanatic Member mateo107's Avatar
    Join Date
    Jan 2005
    Posts
    547

    VB6 App on 98 Machine: "Unexpected Error; quitting"

    HI All,

    Before distributing my VB6 Application, I figured I would make the Application file and test it on multiple machines that I have around the house, to check for compatibility. Anyway, my first test was on a Windows 98 machine.

    The application installed to the folder: C:\Program Files\Program Name

    At first, the PC only had Windows 98 installed. It gave me an error about missing DLLs, so I realized I had to install the VB6 Runtime Files. I resolved that error by installing VB6 SP6 (or 5, the latest from Microsoft) Runtime files onto the machine, but now I get: "Unexpected Error; quiting" before my application even loads.

    Anyone have ideas?

    I've installed Office 97, because I've read that without the MS Office Shared files installed, I may get that error. But I still get the same error.

    PC specs. are minimalist: P200MHz, 48MB Ram, 4.0GB HDD, Win98 (Rev. 1 prolly)... Any ideas would be GREATLY appreciated!


    -Matthew-

  2. #2
    Fanatic Member
    Join Date
    Jan 2005
    Location
    In front of this pc.
    Posts
    580

    Re: VB6 App on 98 Machine: "Unexpected Error; quitting"

    You don't get any other information regarding the error? No "fault in kernel 32" or "runtime error x" message or anything else? Is the message coming from your app or from Windows?

    Without any other info all I would know to tell would be for you to install VB on that machine and run the app in the IDE. Maybe somebody else knows something else tho....

  3. #3

    Thread Starter
    Fanatic Member mateo107's Avatar
    Join Date
    Jan 2005
    Posts
    547

    Re: VB6 App on 98 Machine: "Unexpected Error; quitting"

    No error number. IN fact, the error box title bar just says: "Error".

    Similarly, it doesn't appear to be IN my actual application yet. I have a simple SPLASH page on startup, that really doesn't so anything. So, I would think I'd get at least THAT page before an internal APP application would appear.

    My problem is, I'm going to make this program available for FREE over the net, and I need to find out what causes this error for my FAQ/Troubleshooting pages.

    Thanks for the help so far, maybe this will help!?


    -Matthew-

  4. #4
    Fanatic Member
    Join Date
    Jan 2005
    Location
    In front of this pc.
    Posts
    580

    Re: VB6 App on 98 Machine: "Unexpected Error; quitting"

    Ok... Check the images in the splash screen. The only images I've ever gotten to work in Win 98 are icons (.ico). It seems that Win98 has a problem with bmp's, gif's and jpg's, at least in image controls. Blamed if I know why tho (never been able to find any relevant documentation) and I was thinking they caused a "fault in kernel32" error in Win98 but I've been asleep since last encountering that problem so maybe not

  5. #5
    Hyperactive Member
    Join Date
    Mar 2005
    Location
    Manila, Philippines
    Posts
    486

    Re: VB6 App on 98 Machine: "Unexpected Error; quitting"

    try your system (not the package one) on that unit? it might be a file that you did not copy, or maybe a a file that your system is calling, where the path can not be found

  6. #6
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: VB6 App on 98 Machine: "Unexpected Error; quitting"

    mateo107,

    You seem to have missed newbie 101, It happens all the time around here when people attempt to shortcut the installation process. You should be using an installation package to install your app. Try ********** combined with Inno Setup to get all te files you need for your installation.

    Also Read This: Installation Problems

  7. #7

    Thread Starter
    Fanatic Member mateo107's Avatar
    Join Date
    Jan 2005
    Posts
    547

    Re: VB6 App on 98 Machine: "Unexpected Error; quitting"

    thanks all!

    a couple of updates:
    1) i removed the logo in the splash screen (which was a jpg or gif file i think) and then I got further.

    Next, I got a different DLL error, something about missing some more shared files... anyway, So I used the package and deployment wizard to re-install, but it said it needed to reboot and then to re-run my setup.exe file.

    So, I rebooted, but upon reboot, I get an error, now Win98 is corrupt somehow. I think it only partially installed one of the DLLs or something.

    I'm going to re-install from scratch and retry and hopefully we'll get somewhere after that!


    -Matthew-

  8. #8
    PowerPoster Keithuk's Avatar
    Join Date
    Jan 2004
    Location
    Staffordshire, England
    Posts
    2,236

    Re: VB6 App on 98 Machine: "Unexpected Error; quitting"

    Quote Originally Posted by anotherVBnewbie
    Ok... Check the images in the splash screen. The only images I've ever gotten to work in Win 98 are icons (.ico). It seems that Win98 has a problem with bmp's, gif's and jpg's, at least in image controls. Blamed if I know why tho (never been able to find any relevant documentation) and I was thinking they caused a "fault in kernel32" error in Win98 but I've been asleep since last encountering that problem so maybe not
    There is no problem using bmp, gif, jpg, wmf, emf, ico, cur files in Win98. It will accept any of those in an image.

    As suggested you need to make a descent installation package, Inno Setup is good work Win2k/XP.
    Keith

    I've been programming with VB for 25 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.

  9. #9

    Thread Starter
    Fanatic Member mateo107's Avatar
    Join Date
    Jan 2005
    Posts
    547

    Re: VB6 App on 98 Machine: "Unexpected Error; quitting"

    Is that app. free? What's wrong with the Package and Deployment Wizard in VB6?

    This is (obviously) my first attempt at installing a newly created APP on another machine!


    -Matthew-

  10. #10
    Hyperactive Member
    Join Date
    Mar 2005
    Location
    Manila, Philippines
    Posts
    486

    Re: VB6 App on 98 Machine: "Unexpected Error; quitting"

    yup it is you can get it in randem's signature (randem rocks! thanks men for the script it all works now)

  11. #11
    PowerPoster Keithuk's Avatar
    Join Date
    Jan 2004
    Location
    Staffordshire, England
    Posts
    2,236

    Re: VB6 App on 98 Machine: "Unexpected Error; quitting"

    Quote Originally Posted by mateo107
    Is that app. free? What's wrong with the Package and Deployment Wizard in VB6?

    This is (obviously) my first attempt at installing a newly created APP on another machine!
    Yes ********** and Inno Setup are free. There is nothing wrong with P&D Wizard for Win9x/ME but you may have problems in installing to Win2k/XP.

    Inno Setup
    http://www.jrsoftware.org/

    **********
    http://www.***********/**********.html

    You could try:
    The Microsoft® Windows® Installer is an application installation and configuration service. Instmsi.exe is the redistributable package for installing or upgrading Windows Installer.

    http://www.microsoft.com/downloads/d...DisplayLang=en

    If you don't know how to use P&D Wizard then

    http://home.apu.edu/~jcox/Demos/vbanddll/vbanddll_5.htm
    Keith

    I've been programming with VB for 25 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.

  12. #12
    New Member
    Join Date
    Mar 2000
    Location
    Santa Cruz. Ca,UAS
    Posts
    9

    Re: VB6 App on 98 Machine: "Unexpected Error; quitting"

    I have this problem too. I try to opemn VB6 and I get this error. No splash screen, just an error dialog and Beep.
    When I close the the error dialog, I get another beep.
    There does not appear to be any related events i the Event Viewer..

    I have done the uninstall and install of studio 6 Pro, I still can't open VB 6.

    Any help will be appriciated.

  13. #13
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: VB6 App on 98 Machine: "Unexpected Error; quitting"

    Quote Originally Posted by GenePester View Post
    I have this problem too. I try to opemn VB6 and I get this error. No splash screen, just an error dialog and Beep.
    What message does the dialog have on it?
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width