Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Code too fast?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Code too fast?

 Post Reply Post Reply Page  12>
Author
Bluefrog View Drop Down
Senior Member
Senior Member


Joined: 23 October 2002
Location: Korea, South
Status: Offline
Points: 1701
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bluefrog Quote  Post ReplyReply Direct Link To This Post Topic: Code too fast?
    Posted: 04 December 2003 at 2:41am

Has anyone ever had code execute so fast that memory allocation took too long and something was missed?

 

Back to Top
Semikolon View Drop Down
Senior Member
Senior Member


Joined: 09 September 2003
Location: Norway
Status: Offline
Points: 1718
Post Options Post Options   Thanks (0) Thanks(0)   Quote Semikolon Quote  Post ReplyReply Direct Link To This Post Posted: 04 December 2003 at 9:39am
huh?
Back to Top
pmormr View Drop Down
Senior Member
Senior Member


Joined: 06 January 2003
Location: United States
Status: Offline
Points: 1479
Post Options Post Options   Thanks (0) Thanks(0)   Quote pmormr Quote  Post ReplyReply Direct Link To This Post Posted: 04 December 2003 at 3:04pm
i had an asp script once and it took me 3 days to figure out that i had put it into an infinite loop... It was allocating over 5gb of virtual memory (NOT GOOD!!!)
Back to Top
Semikolon View Drop Down
Senior Member
Senior Member


Joined: 09 September 2003
Location: Norway
Status: Offline
Points: 1718
Post Options Post Options   Thanks (0) Thanks(0)   Quote Semikolon Quote  Post ReplyReply Direct Link To This Post Posted: 05 December 2003 at 3:20am
haha.. ive tried that me too.. in under ten seconds it filled all my physical memory (1gb) and all my virtual memory (2.5 GB).. forgot the rs.MoveNext line..
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 05 December 2003 at 3:30am
I do it all the time, which is why on my test server I set the timeout in IIS to under 10 seconds.

Saves waiting ages for IIS to timeout for so long before you can get on with correcting your code.
Back to Top
likedon View Drop Down
Newbie
Newbie


Joined: 26 September 2003
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote likedon Quote  Post ReplyReply Direct Link To This Post Posted: 05 December 2003 at 3:55am

I can beat that:

I made an infinite mail loop tha resulted in that TDC (biggist danish Internet provider) close the mail service for the my webhost - result 22.000 web-hotel was not able to send email, for nearly 2 days, and my hotmail acount got closed  my luck was sending to myself and not a client.
It was funny to se messenger popup with thoose you got mail 10 time a second



Edited by likedon
Back to Top
Leeb65 View Drop Down
Groupie
Groupie


Joined: 05 December 2003
Location: Germany
Status: Offline
Points: 62
Post Options Post Options   Thanks (0) Thanks(0)   Quote Leeb65 Quote  Post ReplyReply Direct Link To This Post Posted: 05 December 2003 at 8:20am

I forgot the move next once in a job interview test.

Fortunately I still got the job, but it was rather embarrassing.

Back to Top
Semikolon View Drop Down
Senior Member
Senior Member


Joined: 09 September 2003
Location: Norway
Status: Offline
Points: 1718
Post Options Post Options   Thanks (0) Thanks(0)   Quote Semikolon Quote  Post ReplyReply Direct Link To This Post Posted: 05 December 2003 at 9:14am

likedon, i have to try that with my host too.. sounds funny

Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.