Results 1 to 8 of 8

Thread: VB6 IDE freezes Windows 7

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2008
    Posts
    12

    Thumbs down VB6 IDE freezes Windows 7

    Oh boy. Am I in trouble!

    I am still using VB6 and recently installed it on a Windows 7 Home computer. I set the compatibility for VB6.exe to Windows XP(service pack 3).

    I have a large program with 37 forms and 8 modules.

    Form 1 is the startup form. It calls form 2. On a button click on form 2, it calls form 3.

    When I put a breakpoint on the first statement in Form_Load in form 3. The VB totally freezes when that statement gets executed. Same with other statements. Nothing works. I have to use TaskMgr.exe to kill Visual Basic. Same with other forms.

    I only got the Windows 7 machine about two months ago and everything worked fine as far as I remember. This freezing just started about two weeks ago and I have no idea why.

    It means IDE is useless and I can not debug the program.

    Can anyone help??

    Peter

  2. #2
    PowerPoster
    Join Date
    Aug 2011
    Location
    B.C., Canada
    Posts
    2,887

    Re: VB6 IDE freezes Windows 7

    Before doing a System Restore (before 2 weeks) try remembering if you did install new service packs? Windows Updates?
    Also you should not run as windows xp... leave it normal (uncheck run as windows xp).

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

    Re: VB6 IDE freezes Windows 7

    Quote Originally Posted by Max187Boucher View Post
    Before doing a System Restore (before 2 weeks) try remembering if you did install new service packs? Windows Updates?
    Wouldn't that stuff be listed in under the uninstall programs section of the control panel if he had installed them?
    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

  4. #4
    PowerPoster
    Join Date
    Aug 2011
    Location
    B.C., Canada
    Posts
    2,887

    Re: VB6 IDE freezes Windows 7

    Yes it should show there. It should also show in the system restore points (dates).

  5. #5
    Banned
    Join Date
    Nov 2012
    Posts
    1,171

    Re: VB6 IDE freezes Windows 7

    clear temp files try again this happen to me also i got this large project when i run ide project runs when i run it again the project crashes without errors and entire project disappears .


    it happens when there is so much codes and forms in 1 project just stupid to have so much but bugger to.

    it can be lack of ram or some code that gets fired makes programme crash

  6. #6

    Thread Starter
    New Member
    Join Date
    Mar 2008
    Posts
    12

    Re: VB6 IDE freezes Windows 7

    Quote Originally Posted by Max187Boucher View Post
    Before doing a System Restore (before 2 weeks) try remembering if you did install new service packs? Windows Updates?
    Also you should not run as windows xp... leave it normal (uncheck run as windows xp).
    -----------------------------------------

    Thanks Max for the response.

    However, the same results occur when I went back to my old XP computer. I even reformatted the hard drive and reloaded Windows XP Service Pack 3 with all the drivers, WinXP updates and Visual Studio w/SP6. Same results.

    So, it can't be Windows or the upgrades.

    Strange, when IDE freezes, I can only use F5 and F8. Everything else is froozen.

  7. #7
    Banned
    Join Date
    Nov 2012
    Posts
    1,171

    Re: VB6 IDE freezes Windows 7

    this user to happen to me allot , uninstall , reinstall / custom directory / make custom dir and install there give it a try on winxp tho

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

    Re: VB6 IDE freezes Windows 7

    I have learned to not stuff with the Form_Load event.
    And I even go further, and I am selective about what code I place in there (Some goes in to Form_Activate, with a wee flag to avoid the code running twice). (Not saying removing some code in this instance will help, since you say that you cannot even break on the first line)
    I would try to avoid placing breaks in the Form_Load (if you can).
    Use Debug.Print instead.

    There will be some (many) that think I am too cautious.
    And there may be some that say I am wrong.
    If they say that to me, then I will say this to you -
    I told the Doctor it hurts when I do this.
    The Doctor replied, well don't do it.

    Rob
    PS I always have Task Manager running, and keep one eye on CPU usage, and one eye on memory usage. That has been informative for me on occasions. Can't do any harm.

Tags for this Thread

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