Results 1 to 13 of 13

Thread: "Unexpected error; quitting" message opening VB 3.0 programs

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2019
    Posts
    4

    "Unexpected error; quitting" message opening VB 3.0 programs

    I have several programs created with Visual Basic 3.0 under Windows XP.
    These required the file vbrun300.dl in the folder Windows/System32.

    When I got a new PC with Windows 7 I did not install the Visual Basic 3.0 program. All I did was
    copy the .exe programs and vbrun300.dl from the old PC. The programs have been working just fine
    until a few days ago when I get the error message "Unexpected error; quitting" when I try to run
    any of the programs. My wife also get the same error on her Windows 7, and her PC also contains
    just the .exe programs and vbrun300.dll. I suspect the problem is due to a recent Windows update.
    Any suggestions?"

  2. #2
    PowerPoster
    Join Date
    Feb 2006
    Posts
    24,482

    Re: "Unexpected error; quitting" message opening VB 3.0 programs

    See Windows Update KB4517389 causing VBRUN300.DLL to fail

    If it is the same issue there seems to be a fix there:

    After installing KB4522741 and KB4522355 the problem at my Machine Win10Pro, 32bit with old 16-bit programs (unexpected error;quitting) is gone.
    Hope this helps.
    No idea whether that fix was available for Windows 7. Considering that Win7 is on its last leg of extended support in its dying days you might want to grab it now if it does exist.

  3. #3
    PowerPoster
    Join Date
    Feb 2017
    Posts
    5,064

    Re: "Unexpected error; quitting" message opening VB 3.0 programs

    Did you try setting compatibility to Windows XP?

  4. #4

    Thread Starter
    New Member
    Join Date
    Oct 2019
    Posts
    4

    Re: "Unexpected error; quitting" message opening VB 3.0 programs

    dilettante, thanks for your reply.
    I don't have update KB4517389. Looks like that is a just Windows 10 update.
    My only recent Windows 7 updates are on Oct. 12:
    Update for Microsoft.NET Framework 4.8 (KB4515847)
    Security Update for Microsoft Windows (KB4519976)
    Before these my VB programs ran successfully.

    Should I try uninstalling either or both of these? If that doesn't fix the problem can I re-install the updates?
    Attached Images Attached Images  

  5. #5

    Thread Starter
    New Member
    Join Date
    Oct 2019
    Posts
    4

    Re: "Unexpected error; quitting" message opening VB 3.0 programs

    Eduardo, setting compatibility to XP didn't help. Thanks anyway.

  6. #6
    PowerPoster
    Join Date
    Feb 2017
    Posts
    5,064

    Re: "Unexpected error; quitting" message opening VB 3.0 programs

    Quote Originally Posted by sandbox147 View Post
    Eduardo, setting compatibility to XP didn't help. Thanks anyway.
    OK. Still I would try with setting the compatibility to Windows 2000, 98, and 95.

  7. #7

    Thread Starter
    New Member
    Join Date
    Oct 2019
    Posts
    4

    Re: "Unexpected error; quitting" message opening VB 3.0 programs

    Quote Originally Posted by Eduardo- View Post
    OK. Still I would try with setting the compatibility to Windows 2000, 98, and 95.
    None of those worked

  8. #8
    PowerPoster
    Join Date
    Feb 2006
    Posts
    24,482

    Re: "Unexpected error; quitting" message opening VB 3.0 programs

    Quote Originally Posted by sandbox147 View Post
    Should I try uninstalling either or both of these?
    Sounds dicey. Little reason to think it will help because all you have to go on is the approximate coincidence in time.

    Quote Originally Posted by sandbox147 View Post
    If that doesn't fix the problem can I re-install the updates?
    I would think they'd be offered again by Windows Update within hours unless you blocked them. Considering how slim the thread of hope is that these would help I wouldn't bother uninstalling them.

  9. #9
    Frenzied Member
    Join Date
    Dec 2008
    Location
    Melbourne Australia
    Posts
    1,487

    Re: "Unexpected error; quitting" message opening VB 3.0 programs

    This may not help solve your problem, but whilst it is still in my 77 year old memory, I will pass it on -
    VB3 was 16 bit
    If you still have the source code for those programs, you could upgrade them to 32bit.
    You may need another PC, to install VB4 for doing this magic.
    VB4 could import (open) 16 bit VB3 source code, and could compile it as 32 bit VB4

  10. #10
    Fanatic Member 2kaud's Avatar
    Join Date
    May 2014
    Location
    England
    Posts
    999

    Re: "Unexpected error; quitting" message opening VB 3.0 programs

    The issue with VB3 is now fixed in KB4525235 (12 Nov) https://support.microsoft.com/en-us/...date-kb4525235 .
    All advice is offered in good faith only. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/

    C++23 Compiler: Microsoft VS2022 (17.6.5)

  11. #11
    PowerPoster
    Join Date
    Feb 2012
    Location
    West Virginia
    Posts
    14,205

    Re: "Unexpected error; quitting" message opening VB 3.0 programs

    Quote Originally Posted by Bobbles View Post
    This may not help solve your problem, but whilst it is still in my 77 year old memory, I will pass it on -
    VB3 was 16 bit
    If you still have the source code for those programs, you could upgrade them to 32bit.
    You may need another PC, to install VB4 for doing this magic.
    VB4 could import (open) 16 bit VB3 source code, and could compile it as 32 bit VB4
    If memory serves it could only open them when they were saved as text [default for VB3 was binary]
    VB4 supported both 16 and 32bit apps. Those written in VB3 would be loaded as 16 bit. I can't remember if there was an option to have vb4 try and replace all of the vbx files and upgrade to 32 bit, if so it would have issues if 3rd party vbx files were in use. VB4 did include some ocx files to upgrade popular 3rd party vbx but there were many that had no upgrade path.

  12. #12
    Frenzied Member
    Join Date
    Dec 2008
    Location
    Melbourne Australia
    Posts
    1,487

    Re: "Unexpected error; quitting" message opening VB 3.0 programs

    Quote Originally Posted by DataMiser View Post
    If memory serves it could only open them when they were saved as text [default for VB3 was binary]
    VB4 supported both 16 and 32bit apps. Those written in VB3 would be loaded as 16 bit. I can't remember if there was an option to have vb4 try and replace all of the vbx files and upgrade to 32 bit, if so it would have issues if 3rd party vbx files were in use. VB4 did include some ocx files to upgrade popular 3rd party vbx but there were many that had no upgrade path.
    I started learning VB with VB3, so I doubt that I changed the default saving method.
    I had no problem loading all of my VB3 projects into VB4.
    Yup, all the extra VB3 controls/dependencies that I had added, had to be replaced with 32bit equivalents, but -
    'Life was not meant to be easy',
    Rob

  13. #13
    PowerPoster
    Join Date
    Feb 2012
    Location
    West Virginia
    Posts
    14,205

    Re: "Unexpected error; quitting" message opening VB 3.0 programs

    It has been a while but I am pretty sure that only VB3 can properly open a VB3 source file that was saved in binary format and am sure binary was the default.
    I changed my copy to always save in text format soon after I saw it was an option. Sometimes is nice to be able to open the mak file with notepad and have a look.

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