Results 1 to 12 of 12

Thread: VB Bug, (Anyone got a good work-around ??)

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Japan
    Posts
    840

    Thumbs down

    I'm sure you've all had this problem.

    You're in a hurry, you quickly put together an idea and want to test an algorithm. just 10-15 lines of code or so, no interface because you just want to test the output to use in a proper app later.

    You run it and find (for example) that an array was 1 based instead of zero based and your test goes into an infinite loop from the IDE.

    Then, because VB can't recover you have to kill it and recode the F#$%*%G algorithm, because you were not writing a real app you didn't save it.

    Just wondering if anyone has come up with any good work-around to this BUG in VB? a little function you could add in or something to allow a graceful exit.

    (I hope the VB7 IDE can recover!, Borland C++ builder can, you just hit the stop button and it stops because it test the app in a different process to the IDE. VB IDE stalls and you can't hit the stop button)

    ????????????????????????????????????????????????

    Paul

  2. #2
    Lively Member
    Join Date
    May 1999
    Posts
    64
    Just push 'alt+pause' that puts the program on 'break'.

  3. #3
    Hyperactive Member Juan Carlos Rey's Avatar
    Join Date
    Aug 1999
    Location
    Mendoza, Argentina
    Posts
    301

    Question

    Wasn't it really Ctrl-Break???

  4. #4
    Fanatic Member
    Join Date
    Jan 1999
    Location
    UK
    Posts
    554
    I thought it was Ctrl + Break too, but sometimes the damn thing just ignores me.....

    DocZaf
    {;->

  5. #5
    Hyperactive Member
    Join Date
    Jun 1999
    Location
    ma,usa
    Posts
    485
    Not that I'm stupid or even smart, I feel for you Paul282 'cause up untill a year ago I didn't know what the "break" button was. Every time I heard "Just press alt and break" I figured this was a thing I did not have 'cause all the letters were worn of my old used up keypad. When I broke down and spent the $12 for a new one, I found it in the very top row, last on the right. This has changed my life and I can loop all over hell now without a care!

  6. #6
    Addicted Member cwm's Avatar
    Join Date
    Mar 2000
    Posts
    133

    Talking

    sometimes when you're messing with api you have to press ctrl+breakyourgoddamnkeyboardoveryourcomputer...

  7. #7
    Lively Member
    Join Date
    Jul 1999
    Posts
    99

    Smile

    When subclassing a control or a window, pressing ctrl+break sometimes doesn't work if the problem is within the window proc.

  8. #8

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Japan
    Posts
    840

    Thumbs up

    WOW! Really, I'll try it later.

    I always assumed that if the IDE interface hung then hot keys wouldn't respond either (not that I knew what they were anyway)

    Thanks vbDoods

  9. #9

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Japan
    Posts
    840
    It's Ctrl Break, Not Alt Break !!!
    ... and it works



    AAAAAAAARRRRRRRRRRRRGGGGGGGGGGGGGGGGGGHHHHHHHHHHHHH

    Think of all that code I lost unnecessarily !!!!!!!!



    Better still, don't

  10. #10
    Hyperactive Member
    Join Date
    Jan 1999
    Location
    Rotterdam, Netherlands
    Posts
    386
    And to be safe, why not let VB save the project every time before you run it.. at least you never loose code.
    Hope this helps

    Crazy D

  11. #11
    Guest
    Sometimes it takes some time (and a lot of ctrl+break's) to stop your program but most of the time it will stop.

    Also you could add a doevents inside your loop so you can break it ez.


  12. #12
    Hyperactive Member Juan Carlos Rey's Avatar
    Join Date
    Aug 1999
    Location
    Mendoza, Argentina
    Posts
    301

    Talking Just in case

    Keep a good hammer by your keyboard...

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