Results 1 to 9 of 9

Thread: On Error resume next

  1. #1

    Thread Starter
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181

    On Error resume next

    Hi Everyone
    well I just added an on error resume next into a function that was running in a loop
    my program slowed down by a factor of two! is that normal behaviour? any way to get around that?
    Sanity is a full time job

    Puh das war harter Stoff!

  2. #2
    Frenzied Member markman's Avatar
    Join Date
    Nov 2000
    Location
    Florida.
    Posts
    1,197
    if there is an error in the loop, it would start from the next step (taking time to process where to go) then do it however many times in the loop. In conclusion, possibly
    retired member. Thanks for everything

  3. #3

    Thread Starter
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    there was no error I ran it without it...
    Sanity is a full time job

    Puh das war harter Stoff!

  4. #4
    Addicted Member
    Join Date
    Apr 2000
    Location
    England
    Posts
    246
    Yes, On Error is one of the worst things in VB, its wy they got rid of it in VB.net
    Some Days, i just get this feeling that i'm helping to write dozens of Viruses...

  5. #5

    Thread Starter
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    alright
    thanks
    Sanity is a full time job

    Puh das war harter Stoff!

  6. #6
    PowerPoster beachbum's Avatar
    Join Date
    Jul 2001
    Location
    Wollongong, NSW, Australia
    Posts
    2,274
    Originally posted by Nirces
    Yes, On Error is one of the worst things in VB, its wy they got rid of it in VB.net
    Pffffft!! Don't believe that for a minute... show me the numbers.
    Stuart Laidlaw
    Brightspark Financial Software
    http://www.gstsmartbook.com

  7. #7

    Thread Starter
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    well I had it in a loop doing some pixel manipulation
    they were going real smooth on my 1400Mhz Pc. When I put the on error thing it slowed down a lot. Everything started hm well I guess the word would be jerking...? (not a native speaker)
    Sanity is a full time job

    Puh das war harter Stoff!

  8. #8
    Tygur
    Guest
    Try moving it outside the loop. Put it right before the loop starts.

  9. #9

    Thread Starter
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    the loop's in a loop
    well I don't use it anyways, since I did not get errors anyways
    just wanted to know...
    Sanity is a full time job

    Puh das war harter Stoff!

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