Results 1 to 17 of 17

Thread: VB6 IDE closing down upon app execution???

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Jan 2004
    Location
    Southern California
    Posts
    5,034

    VB6 IDE closing down upon app execution???

    Anyone have any idea why my VB6 IDE would close upon trying to execute code?

    I have an application that when I get into the source code and try and run it....VB6 just shuts down. The code was pulled out of sourcesafe and this has never happened before.

    Thanks,
    Blake

  2. #2
    Discovering Life Siddharth Rout's Avatar
    Join Date
    Feb 2005
    Location
    Mumbai, India
    Posts
    12,001

    Re: VB6 IDE closing down upon app execution???

    Does it give any error message? If yes then what is the error message?
    A good exercise for the Heart is to bend down and help another up...
    Please Mark your Thread "Resolved", if the query is solved


    MyGear:
    ★ CPU ★ Ryzen 5 5800X
    ★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
    ★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
    ★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
    ★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
    ★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
    ★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
    ★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
    ★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
    ★ Keyboard ★ TVS Electronics Gold Keyboard
    ★ Mouse ★ Logitech G502 Hero

  3. #3
    PowerPoster Fazi's Avatar
    Join Date
    Aug 2005
    Location
    Underworld
    Posts
    2,525

    Re: VB6 IDE closing down upon app execution???

    Code contain any subclassing

  4. #4
    PowerPoster isnoend07's Avatar
    Join Date
    Feb 2007
    Posts
    3,237

    Re: VB6 IDE closing down upon app execution???

    i had that happen and don't remember the fix, but heres how i narrowed it down:
    Remember it did not even go to my error handlers
    I sprinkled through out my load procedures
    MsgBox "Check Point1"
    MsgBox "Check Point2"
    etc
    Waiting for a full featured smart phone with out marrying a provider
    Go Android
    Go raiders

  5. #5

    Thread Starter
    PowerPoster
    Join Date
    Jan 2004
    Location
    Southern California
    Posts
    5,034

    Re: VB6 IDE closing down upon app execution???

    no messages or anything...it just ended. I am opening a .vbg though. It's an app that has several large classes called by a gui.
    Blake

  6. #6

    Thread Starter
    PowerPoster
    Join Date
    Jan 2004
    Location
    Southern California
    Posts
    5,034

    Re: VB6 IDE closing down upon app execution???

    any ideas on this? This project actually contains 3 *.vbp files. So essentially it's 3 projects in one. I haven't worked with VB6 for awhile and never worked with a VBG project. Am I missing anything?

    Thanks,
    Blake

  7. #7
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: VB6 IDE closing down upon app execution???

    You appear to be missing posts #3 and #4, and debugging.

  8. #8

    Thread Starter
    PowerPoster
    Join Date
    Jan 2004
    Location
    Southern California
    Posts
    5,034

    Re: VB6 IDE closing down upon app execution???

    I did try debugging it. I hit F8 to start debugging and it just quit out of the IDE. As far as sub-classing...what exactly is that? I have Class Modules in the Project if that's what you mean....
    Blake

  9. #9
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: VB6 IDE closing down upon app execution???

    Quote Originally Posted by blakemckenna View Post
    I did try debugging it. I hit F8 to start debugging and it just quit out of the IDE.
    Is that how you are starting the code, or are you doing it after having pressed F5 or the 'start' button?

    As far as sub-classing...what exactly is that? I have Class Modules in the Project if that's what you mean....
    It is nothing to do with Class Modules, it is intercepting the messages that Windows sends (also known as Hooking).

    If you are using it, you will have the keyword AddressOf in your code.

  10. #10

    Thread Starter
    PowerPoster
    Join Date
    Jan 2004
    Location
    Southern California
    Posts
    5,034

    Re: VB6 IDE closing down upon app execution???

    There are NO AddressOf statements so I guess I'm not sub-classing. I press F8 to start debugging (basically stepping into the very first line of code), however, that doesn't work either, The program just quits the IDE.
    Blake

  11. #11
    PowerPoster isnoend07's Avatar
    Join Date
    Feb 2007
    Posts
    3,237

    Re: VB6 IDE closing down upon app execution???

    Can you run other projects in the ide ?
    What is the first line of code ?
    Waiting for a full featured smart phone with out marrying a provider
    Go Android
    Go raiders

  12. #12

    Thread Starter
    PowerPoster
    Join Date
    Jan 2004
    Location
    Southern California
    Posts
    5,034

    Re: VB6 IDE closing down upon app execution???

    If I open a completely new project...I can do everything with it. It's just this particular project. As I said...it's 3 separate projects in 1 group. It consists of a Data tier, Business tier, and a User tier. All 3 compiled together make up the executable.
    Blake

  13. #13
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: VB6 IDE closing down upon app execution???

    Try each of the sub-projects independently, the "start up" (the one that is shown in bold) last.

    A Group is usually just so that you can debug the interaction between the projects.


    What user level is your Windows login? (Admin/PowerUser/...) and what version of Windows are you using?

  14. #14
    PowerPoster isnoend07's Avatar
    Join Date
    Feb 2007
    Posts
    3,237

    Re: VB6 IDE closing down upon app execution???

    Sounds as if something is corrupted or misconfigured and you are stuck.
    I would try this:
    Start a new project and save to a new folder then add all the files except for the vbp and vbg and save as a new vbp project and not use the .vbg
    Waiting for a full featured smart phone with out marrying a provider
    Go Android
    Go raiders

  15. #15
    Fanatic Member
    Join Date
    Jan 2007
    Location
    Middletown, CT
    Posts
    948

    Re: VB6 IDE closing down upon app execution???

    Everyone has prettymuch been saying the same thing, but check the startup form. You say you put messageboxes in the Form_Load event, but if that project isn't the project that starts first, the form_load event won't matter for that project...

  16. #16
    PowerPoster isnoend07's Avatar
    Join Date
    Feb 2007
    Posts
    3,237

    Re: VB6 IDE closing down upon app execution???

    Quote Originally Posted by drag0n_45 View Post
    Everyone has prettymuch been saying the same thing, but check the startup form. You say you put messageboxes in the Form_Load event, but if that project isn't the project that starts first, the form_load event won't matter for that project...
    Find the startup Object in project properties to find what loads first
    Waiting for a full featured smart phone with out marrying a provider
    Go Android
    Go raiders

  17. #17
    Frenzied Member
    Join Date
    Mar 2009
    Posts
    1,182

    Re: VB6 IDE closing down upon app execution???

    Have you tried to compile this project group? I'm betting that you will get many errors and these need to be addressed. The only other thing that may happen from this is something you have already experienced (IDE shutting down).

    Good Luck
    Option Explicit should not be an Option!

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