Notifications
Clear all

[Closed] memory leak

i tried to find a leak in my plugin
but i think max is leaking

try this:

nLoops = 30

for i=1 to nLoops do
(
	resetMaxFile #noPrompt
)

with every reset i’m loosing about 100kB

can anyone confirm this behaviour ? (open taskmanager too see the FX)
max9 32 & 64-bit

thank you
guruware

8 Replies

Have you tried doing a garbage collect?

[left]gc()
[/left]

well…
usually i don’t remove garbage produced by others

but gc() doesn’t change anything

guruware

It seems there are some memory leaks in 3ds Max 9 : http://forums.cgsociety.org/showthread.php?f=98&t=501903&highlight=menu

Have to wait Version 10… But why these fixes/cleanup aren’t in the SPs ? Chris are you here ?

2 Replies
(@alpineman)
Joined: 11 months ago

Posts: 0

Actually a very large screen refresh memory leak was fixed in the first service pack.

(@ypuech)
Joined: 11 months ago

Posts: 0

Thanks for the reply Chris.
I can see that there’s a lot of work done to improve Max speed, eficiency and stability. Very good…
And it seems we’ll get a cool Max 10 version.

Yes I can confirm that leaks big time in Max 9.
And it was a very difficult job to fix it too. However I think I have really fixed most of that problem already. There is still alittle to do, but only some statically allocated memory that is pretty insignificant (i.e. You would need a maginifying glass to find it). More will continue to be done. Trust me.

I’m still interested in any reports of memory leaks though. If any are reported, please log it on the official autodesk site. That is the fastest way for it to hit my desk.

thanks chris for confirmation, was a bit scared if my plugin is leaking

i tried to send another bug report, but after filling in all this infos and clicking “Submit Bug”
–> Server not found: voncount.autodesk.com

so i put it here again:

  • Problem Description
    with each opening of PluginManager
    15 GDI-Objects and 9 User-Objects are lost

  • Steps to Recreate the Problem
    1: Open Taskmanager – ProcessTab
    2: View Collums for User Objects and GDI Objects

  1. Open PluginManager in max
    4: gdi and user object usage is going up
    5: close plugin manager, gdi/user-object usage doesn’t go down
  2. open PluginManager again
  3. another 15 gdi & 9 user-objects are used
  4. repeat step 5 to 8 until you run out of system resources

and sorry to abuse this place for bug-reports
i don’t do it again … promise

guruware

No need to apologize for anything. I pick up some pretty useful repro steps here. Anyways, I tried this and couldn’t reproduce it in the current development release. I looked and nothing has changed for quite a long time, so I’m not sure what to think here. Note this code is in the public SDK, so the entire source code is available for anyone to see.

Chris J.