Notifications
Clear all

[Closed] Disposing Nested Struct

Hello All,

I have used struct’s to work in OOP fashion for a small tool i am trying to make.

Now the problem is that i really dont know the best way to dispose them.

Example :
struct test(a,b)
struct testa(xy = 10)

temp = test()
temp.a = testa()

now if i just go ahead and set temp = undefined, i run into a very weird problem.

If i try to open,reset or create new file, max gives me “unknown error occured while garabage collection error”

can anyone help me out with this please.

Thanks In Advance.

3 Replies
 lo1

Your code works fine for me.

@lo : can you give your specification’s

I just tried it at my place it and seems to work fine.

I dont know if its anything related to the version or anything, coz i can reproduce this at my work place which has a x86 copy of 3ds max running on x64 Windows 7, and at my place i have both (max and windows) x86.

 lo1

I tested on max2009 x64 on vista