|
-
Mar 16th, 2002, 05:36 PM
#1
Thread Starter
Frenzied Member
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!
-
Mar 16th, 2002, 06:09 PM
#2
Frenzied Member
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 
-
Mar 16th, 2002, 08:41 PM
#3
Thread Starter
Frenzied Member
there was no error I ran it without it...
Sanity is a full time job
Puh das war harter Stoff!
-
Mar 16th, 2002, 08:48 PM
#4
Addicted Member
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...
-
Mar 17th, 2002, 05:58 AM
#5
Thread Starter
Frenzied Member
Sanity is a full time job
Puh das war harter Stoff!
-
Mar 17th, 2002, 07:47 AM
#6
PowerPoster
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.
-
Mar 17th, 2002, 07:54 AM
#7
Thread Starter
Frenzied Member
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!
-
Mar 17th, 2002, 11:47 AM
#8
Try moving it outside the loop. Put it right before the loop starts.
-
Mar 17th, 2002, 01:05 PM
#9
Thread Starter
Frenzied Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|