EDIT: mem alloc does go down, i still have memory problems !
Im having some memory management problems with my program.
GCCollect flickers inbetween 500 and an amount depending on the amount of objects I have (about 200 per object)
I look in the task manager, for each time I create an object, the memory usage goes up about 1 MB, never goes down even when they are destroy.
When I say object, I mean a GUI window object I made, I expect them to use about 1 mb of memory each, but not permanently.
Im also passing the windows handle (HandleFromObject) to LUA , and eventually using those handles later (HandleToObject), that probably poses a slight memory leak if I dont release the handles?
Any help here? Thank you :D
(oops, didnt mean it to be in beginners area)
Im having some memory management problems with my program.
GCCollect flickers inbetween 500 and an amount depending on the amount of objects I have (about 200 per object)
I look in the task manager, for each time I create an object, the memory usage goes up about 1 MB, never goes down even when they are destroy.
When I say object, I mean a GUI window object I made, I expect them to use about 1 mb of memory each, but not permanently.
Im also passing the windows handle (HandleFromObject) to LUA , and eventually using those handles later (HandleToObject), that probably poses a slight memory leak if I dont release the handles?
Any help here? Thank you :D
(oops, didnt mean it to be in beginners area)