By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,972 Members | 1,126 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,972 IT Pros & Developers. It's quick & easy.

why my computer becomes very slow after a small program loaded?

P: 11
Hi there:

I made a very samll windows application program in C++. I found my computer becomes very slow after this program loaded. I checked windows task manager and found this small program takes about 49% system source (memory). Is that the reason for my computer to become slow and how should I do in my program to maintain my computer fast after this program loaded?

thx a lot!
Jun 15 '07 #1
Share this Question
Share on Google+
4 Replies


weaknessforcats
Expert Mod 5K+
P: 9,197
Are to allocating memory and forgetting to release it?
Jun 15 '07 #2

100+
P: 208
Hi there:

I made a very samll windows application program in C++. I found my computer becomes very slow after this program loaded. I checked windows task manager and found this small program takes about 49% system source (memory). Is that the reason for my computer to become slow and how should I do in my program to maintain my computer fast after this program loaded?

thx a lot!
It could be possible that you have a very large loop with a lot of computations. I once had a program that calculated the 6/49 odds. It had nested loops that went through 100billion times. It would chew up my computers memory very quickly. I would check for any loops like this or any infinite loops.
Jun 15 '07 #3

P: 11
Are to allocating memory and forgetting to release it?
I use "Action = caFree;" to release memory after the first form closed. Actually, only two forms in total. I used the same command to release memory when the second form is closed.
Jun 15 '07 #4

weaknessforcats
Expert Mod 5K+
P: 9,197
"Action = caFree;"
is not any C++ I recognize.

Maybe a little larger code sample.
Jun 16 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.