Results 1 to 7 of 7

Thread: VB6 Closes when trying to run in IDE or Compile exe

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2023
    Posts
    3

    Exclamation VB6 Closes when trying to run in IDE or Compile exe

    I have been using VB6 on Windows 10 for three years without issue.
    Today it will not Run in the IDE or compile an exe, it does not matter what project (I have many) they all do the same so it ii is not a coding error.
    I have tried:
    system restore
    DISM.exe
    SFC.exe
    There are no Windows updates since VB6 was last working (One day ago)
    Event viewer is not very helpful....
    *******************************************************************
    Faulting application name: vb6.exe, version: 6.0.97.82, time stamp: 0x403acf6c
    Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
    Exception code: 0xc0000005
    Fault offset: 0x0a773cc4
    Faulting process ID: 0x69c
    Faulting application start time: 0x01da2231f75ad9c7
    Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio\VB98\vb6.exe
    Faulting module path: unknown
    Report ID: 09317eb0-7102-461e-8d63-403ad200284a
    Faulting package full name:
    Faulting package-relative application ID:
    ********************************************************************
    I do have a dump file which seems to point to ntdll.dll but I don't profess to understand the log
    I really am at my wits end with this, I can usually solve things like this but it is a complete mystery, worked one day then not the next!
    Last edited by AndrewVB6; Nov 30th, 2023 at 11:24 AM.

  2. #2
    PowerPoster
    Join Date
    Jul 2010
    Location
    NYC
    Posts
    5,552

    Re: VB6 Closes when trying to run in IDE or Comple exe

    Might have to bite the bullet and reinstall VB6. At the point you're at, that will almost always be quicker than a potentially endless rabbit hole trying to find the exact issue and fix it.

  3. #3
    Member Dragokas's Avatar
    Join Date
    Aug 2015
    Location
    Ukraine
    Posts
    740

    Re: VB6 Closes when trying to run in IDE or Comple exe

    Did you run as elevated user?
    If you already checked with sfc/dism, are logs report no problems? Are there items restored?
    Check there are no write permission issue in folders %Temp% and C:\Program Files (x86)\Microsoft Visual Studio\VB98
    Uninstall VB6.
    Delete C:\Program Files (x86)\Microsoft Visual Studio\VB98 completely.
    Delete HKEY_CURRENT_USER\Software\Microsoft\VBA to ensure all settings by default and none 3rd party plugins installed.
    Re-Install VB6 and SP6.
    If no luck, check with Process Monitor are there unknown modules in address space of VB6.exe (double click on vb.exe in list)
    If problem still persists, provide the crash dump.
    Also, it wouldn't hurt to ask for checking your PC for viruses for free here.
    Malware analyst, VirusNet developer, HiJackThis+ author || my CodeBank works

  4. #4
    New Member
    Join Date
    Nov 2023
    Posts
    1

    Re: VB6 Closes when trying to run in IDE or Comple exe

    I had similar symptoms a long time ago and what cured it was to ensure that all forms are unloaded and each of the forms is set to "Nothing" like the below.
    "unload Form1"
    "Set form1 = Nothing"

    Also, if you have recently used a COM, explicitly set to it nothing at the end of use.

    I was informed that "Unload" alone doesn't guarantee memory recovery. Try it perhaps it might work.

  5. #5

    Thread Starter
    New Member
    Join Date
    Nov 2023
    Posts
    3

    Re: VB6 Closes when trying to run in IDE or Compile exe

    Thank you for your suggestions, all have been tried to no avail.
    I have made the simplest project
    One form with one button, press the button and a message box "Hello"
    Run in the IDE, press button, VB6 crashes, no errors or message
    It will build an exe, the exe runs fine

    In trying to find a solution, I have used WinDBG it is much above my knowledge but the interesting thing I did find was that if you ran 'Launch exe with TimeLine' in WinDBG, VB6 works OK?

  6. #6

    Thread Starter
    New Member
    Join Date
    Nov 2023
    Posts
    3

    Re: VB6 Closes when trying to run in IDE or Compile exe

    Eventually had to reinstall windows 10 (keeping apps and Files)

  7. #7

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