|
-
Mar 31st, 2005, 05:20 PM
#1
Thread Starter
Not NoteMe
Memory leaks?!?
I've got a managed DX program, and somewhere when i grab the form, and cause rendering to happen memory gets allocated. The more the form's repainted the more memory is used up (seen in the process list).
What's very odd is that i've commented out everything in my paint event function and all mouse/key events.
Thanks a lot for any help, this has got be stumped, as i'm pretty new to c#
Last edited by SLH; Mar 31st, 2005 at 05:31 PM.
Quotes:
"I am getting better then you guys.." NoteMe, on his leet english skills.
"And I am going to meat her again later on tonight." NoteMe
"I think you should change your name to QuoteMe" Shaggy Hiker, regarding NoteMe
"my sweet lord jesus. I've decided never to have breast implants" Tom Gibbons
Have I helped you? Please Rate my posts. 
-
Apr 2nd, 2005, 02:12 PM
#2
Sleep mode
I don't know but it's hard to say what's making mem clog without looking at the code . The main problem could be with creating objs and never disposing them after you're done . Like bitmaps and other GDI+ obj .
-
Apr 4th, 2005, 02:38 PM
#3
Thread Starter
Not NoteMe
Re: Memory leaks?!?
Thanks for the reply.
That's the thing though, i've commented out absolutely all code in all events for my controls. (no rendering, or anything).
When i drag the form around the memory usage (as seen by the process list) creeps up.
Quotes:
"I am getting better then you guys.." NoteMe, on his leet english skills.
"And I am going to meat her again later on tonight." NoteMe
"I think you should change your name to QuoteMe" Shaggy Hiker, regarding NoteMe
"my sweet lord jesus. I've decided never to have breast implants" Tom Gibbons
Have I helped you? Please Rate my posts. 
-
Apr 5th, 2005, 12:19 PM
#4
Re: Memory leaks?!?
Do you make any objects or structs or anything in the WM_PAINT message that you are not deleting?
-
Apr 5th, 2005, 12:52 PM
#5
Thread Starter
Not NoteMe
Re: Memory leaks?!?
I'm not using the message queue, i'm using the onpaint event. There's no code in the function for that even (i commented it ALL out).
Quotes:
"I am getting better then you guys.." NoteMe, on his leet english skills.
"And I am going to meat her again later on tonight." NoteMe
"I think you should change your name to QuoteMe" Shaggy Hiker, regarding NoteMe
"my sweet lord jesus. I've decided never to have breast implants" Tom Gibbons
Have I helped you? Please Rate my posts. 
-
Apr 6th, 2005, 03:31 AM
#6
Sleep mode
This has been pain for all of us . Usually , .NET apps (even small ones) are memory-greedy . The main reason is behind the concept of JIT compiler and the security check which CLR does that requires both memory and CPU time .
-
Apr 6th, 2005, 04:33 AM
#7
Thread Starter
Not NoteMe
Re: Memory leaks?!?
Oh ok. Thanks for the explanation.
Quotes:
"I am getting better then you guys.." NoteMe, on his leet english skills.
"And I am going to meat her again later on tonight." NoteMe
"I think you should change your name to QuoteMe" Shaggy Hiker, regarding NoteMe
"my sweet lord jesus. I've decided never to have breast implants" Tom Gibbons
Have I helped you? Please Rate my posts. 
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
|