|
-
Oct 16th, 2008, 04:47 PM
#1
Thread Starter
Junior Member
[2008] Infinite loop
Hey all, long time no type
I was in college and our teacher mentioned about the Beep() for the system beeping, and i was like shall i do a do while loop :P
So i made a button on a form and wrote this
Dim count as byte = 1
Do While count = 1
Beep()
Me.visible = False
Loop
Now that was mistake in its self but hey i was bored at college.
Now i know i crash the program etc but what would happen if i just leave the loop to run?
Ben
-
Oct 16th, 2008, 05:17 PM
#2
Re: [2008] Infinite loop
it'd just keep beeping + looping until you shut it down probably
- Coding Examples:
- Features:
- Online Games:
- Compiled Games:
-
Oct 16th, 2008, 05:18 PM
#3
Thread Starter
Junior Member
Re: [2008] Infinite loop
yh but what damage will it do:P if any haha
-
Oct 16th, 2008, 05:26 PM
#4
Re: [2008] Infinite loop
It wont do any damage. There loop isnt recursive so there'll be no stack overflow, and there will not be any memory leaks unless the Beep function was improperly implemented, if thats what you're thinking of.
-
Oct 16th, 2008, 05:55 PM
#5
Re: [2008] Infinite loop
Yeah, the only damage it will do will be to your person when everybody else beats the tar out of you for running that thing.
My usual boring signature: Nothing
 
-
Oct 16th, 2008, 05:56 PM
#6
Re: [2008] Infinite loop
the damage, if any could be to your hearing.... sanity.... and could lead to a life terminating event should it annoy others to the point where there is damage to their hearing or sanity....
-tg
-
Oct 16th, 2008, 05:59 PM
#7
Thread Starter
Junior Member
Re: [2008] Infinite loop
 Originally Posted by Atheist
It wont do any damage. There loop isnt recursive so there'll be no stack overflow, and there will not be any memory leaks unless the Beep function was improperly implemented, if thats what you're thinking of.
How would you make the beep function improperly implemented tho 
 Originally Posted by Shaggy Hiker
Yeah, the only damage it will do will be to your person when everybody else beats the tar out of you for running that thing.
 Originally Posted by techgnome
the damage, if any could be to your hearing.... sanity.... and could lead to a life terminating event should it annoy others to the point where there is damage to their hearing or sanity....
-tg
Haha they are all valid reasons i know and i aint had that happen to me yet?
any one want the beep code for the supermario theme tune?
-
Oct 16th, 2008, 06:01 PM
#8
Re: [2008] Infinite loop
 Originally Posted by irn3rd0987
How would you make the beep function improperly implemented tho 
Since you cant do anything about it, you'll just have to trust the developers at Microsoft
Last edited by Atheist; Oct 16th, 2008 at 06:40 PM.
-
Oct 16th, 2008, 06:04 PM
#9
Re: [2008] Infinite loop
dr who theme tune - pc speaker beeps
- Coding Examples:
- Features:
- Online Games:
- Compiled Games:
-
Oct 16th, 2008, 06:07 PM
#10
Thread Starter
Junior Member
Re: [2008] Infinite loop
cant get the code and lol damn taht Microsoft must be a way:P
-
Oct 16th, 2008, 06:38 PM
#11
Re: [2008] Infinite loop
Can't get what code? What Atheist meant was that the beep function will have no memory leaks or other issues as long as MS implemented it correctly.
My usual boring signature: Nothing
 
-
Oct 17th, 2008, 05:19 AM
#12
Thread Starter
Junior Member
Re: [2008] Infinite loop
 Originally Posted by .paul.
I cant convert the above links downloaded code VS 2008 tries to convert it and it wont work, but my mate tried it on 2005 VS and said the sequence aint that good lol:P
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
|