Got a weird request from a guy -

Page 4 - Seeking answers? Join the AnandTech community: where nearly half-a-million members share solutions and discuss the latest tech.

Red Squirrel

No Lifer
May 24, 2003
70,648
13,823
126
www.anyf.ca

Code:
while(1)
{
char * pointer = new char[10];
}

Run this program in a batch file, loop it. (it will eventually crash). Set it up in task manager, compile as win32 app so there's no console. Call it wowupdater.exe or something like that.
 

oiprocs

Diamond Member
Jun 20, 2001
3,780
2
0
OP, tell him if his wife just plays, then he should see other girls and fuck them too.

Also, tell him to enjoy this by only bothering his wife when he wants sex.
 

Fenixgoon

Lifer
Jun 30, 2003
33,334
12,916
136
Originally posted by: RedSquirrel

Code:
while(1)
{
char * pointer = new char[10];
}

Run this program in a batch file, loop it. (it will eventually crash). Set it up in task manager, compile as win32 app so there's no console. Call it wowupdater.exe or something like that.

so what does that do
 

Ruptga

Lifer
Aug 3, 2006
10,246
207
106
Originally posted by: vi edit
Or he could you know...just say "You play too much WoW" and not take the passive aggressive bitch approach.

I agree, anything else is really only treating the symptom here. That said, a few of these ideas could be great pranks
 

Leros

Lifer
Jul 11, 2004
21,867
7
81
Originally posted by: Fenixgoon
Originally posted by: RedSquirrel

Code:
while(1)
{
char * pointer = new char[10];
}

Run this program in a batch file, loop it. (it will eventually crash). Set it up in task manager, compile as win32 app so there's no console. Call it wowupdater.exe or something like that.

so what does that do

Looks like it grabs chunks of memory repeatedly. So it should use up all the RAM.
 
Oct 27, 2007
17,009
5
0
Originally posted by: Leros
Originally posted by: Fenixgoon
Originally posted by: RedSquirrel

Code:
while(1)
{
char * pointer = new char[10];
}

Run this program in a batch file, loop it. (it will eventually crash). Set it up in task manager, compile as win32 app so there's no console. Call it wowupdater.exe or something like that.

so what does that do

Looks like it grabs chunks of memory repeatedly. So it should use up all the RAM.

It's a stupid idea, there are much better ways of slowing the system without causing stack / buffer overflows, which will harmlessly crash after a couple of hours.

int main() {
for (int i = 3; ; i++) {
for (int j = 2; j < i; j++) {
int num = i%j;
}
}

return 0;
}

Loads of floating point operations = massive CPU load.