473,387 Members | 1,321 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

eating memory

Hi there,

I want to write a program in vc++ that can read or even delete random
memory addresses. Anyone know how to generate something like this? I
want to make a program that like "eats" the memory from a computer,
not for a virus, but for a AI program and i want it to feed itself
with memory :p.

Me

Mar 15 '07 #1
6 2239
On 15 Mar 2007 07:06:12 -0700
la******@gmail.com wrote:
Hi there,

I want to write a program in vc++ that can read or even delete random
memory addresses. Anyone know how to generate something like this? I
want to make a program that like "eats" the memory from a computer,
not for a virus, but for a AI program and i want it to feed itself
with memory :p.

Me
perhaps something like that?
--
Simon Wollwage <Si************@rwth-aachen.de>
Mar 15 '07 #2
On 15 Mar 2007 07:06:12 -0700
la******@gmail.com wrote:
Hi there,

I want to write a program in vc++ that can read or even delete random
memory addresses. Anyone know how to generate something like this? I
want to make a program that like "eats" the memory from a computer,
not for a virus, but for a AI program and i want it to feed itself
with memory :p.

Me
sry, new try:

perhaps something like that?

void *p = random(100000);
delete p;

--
Simon Wollwage <Si************@rwth-aachen.de>
Mar 15 '07 #3
On Thu, 15 Mar 2007 15:10:31 +0100
Simon Wollwage <Si************@rwth-aachen.dewrote:
On 15 Mar 2007 07:06:12 -0700
la******@gmail.com wrote:
Hi there,

I want to write a program in vc++ that can read or even delete random
memory addresses. Anyone know how to generate something like this? I
want to make a program that like "eats" the memory from a computer,
not for a virus, but for a AI program and i want it to feed itself
with memory :p.

Me
sry, new try:

perhaps something like that?

void *p = random(100000);
delete p;

--
Simon Wollwage <Si************@rwth-aachen.de>
again:

void *p;
p = random(100000);
delete p;

this looks much better ^^
--
Simon Wollwage <Si************@rwth-aachen.de>
Mar 15 '07 #4
la******@gmail.com wrote:
Hi there,

I want to write a program in vc++
So, write it, why don't you?
that can read or even delete random
memory addresses. Anyone know how to generate something like this? I
want to make a program that like "eats" the memory from a computer,
not for a virus, but for a AI program and i want it to feed itself
with memory :p.
'new' allocates memory. Don't release it and your program will own
that memory while it's running. There is nothing in the language
that could help you retain the ownership of that memory _after_ your
program ends, if there is a way it would be system-specific.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Mar 15 '07 #5
Perhaps this function may help you? :

http://msdn2.microsoft.com/en-us/library/ms681674.aspx

Mar 15 '07 #6
la******@gmail.com wrote:
Hi there,

I want to write a program in vc++ that can read or even delete random
memory addresses. Anyone know how to generate something like this? I
want to make a program that like "eats" the memory from a computer,
not for a virus, but for a AI program and i want it to feed itself
with memory :p.

Me
Seriously, you can possibly read from, and write to, a memory address
but what do you mean by deleting it?

Ben
Mar 16 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: kaptain kernel | last post by:
i've got a while loop thats iterating through a text file and pumping the contents into a database. the file is quite large (over 150mb). the looping causes my CPU load to race up to 100 per...
3
by: Bobby Torkington | last post by:
Hi all I'm running version 4.0.16 on solaris 8 as the backend for a web site serving around 12 million pages impressions a month. The performance of the server is monitored using orcollator. ...
1
by: google | last post by:
Hello all- Apologies to everyone for what's probably a very inchoate and uninformed question, but I've been thrust into the position about having to learn more about PHP very quickly. (I'm also...
2
by: gavino | last post by:
REHDAT LINUX 4S PHP 4.3.9 LEGACY APP I MOVED NOW EATS MEMORY CAN ANYONE TAE A LOOK ? I FIXED ONE PARTIALLY BY CHANGING TO here are my apache settings: 1 page laoding for a few seconds eat like...
1
by: gencode | last post by:
I have this bit if javascript and it animates an image well, the problem is that the more it runs the more memory it eats on the client machine. Can anyone help me make this not eat all avaliable...
5
by: Per B. Sederberg | last post by:
Hi Everybody: I'm having a difficult time figuring out a a memory use problem. I have a python program that makes use of numpy and also calls a small C module I wrote because part of the...
1
by: Propertyshowrooms | last post by:
Hi all, I know this is probably an easy problem to fix, or at least I hope so, but for the life of me I can't figure out why the Private Bytes in my w3wp.exe process just keeps climbing until the...
2
by: Extremest | last post by:
I have a picture site. I save the original and a thumbnail of every picture. Now if they click on a thumbnail then they go to the viewer page where they then see an intermediate picture. I have...
2
by: news | last post by:
Hi, I have a C# application (Visual Studio 2005) that invloves reading a large amount of data from SQL server (in this case SQL 2005). Here is what I am trying to do. //declare a data set...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.