ParallelGraphics Forums
SDK
You are here:
[Forums]
::
[General]
::
[SDK]
All forums
How to use forums
Favorites
Services
Registration
Registration
Forgot your password?
Help
Help
Support
Quick search
Subscribe to newsletters
email:
password:
 
General
-
SDK
[reply]
[back to forum]
[new message]
[all forums]
Subject:
Re: Memory release
Sender:
dan.vera@gmail.com
3.11.09 10:35
So that anyone can benefits from the answer:
Answer from Cortona:
A PROTO node requires some memory to store its implementation. It explains increased memory allocation.
The problem with memory leak can be caused by the .NET garbage collector, because the node in Cortona will be deleted only when GC releases reference to the created proto instance.
Case2: if I put the geometry in a proto, which I instantiate and load using:
Dim a_nod As VRMLAutomation.VRMLNode = my_cortona.Engine.Protos.Item("test_proto").CreateInstance()
a_nod.Name = "test"
my_Cortona.Engine.RootNodes.Add(a_nod)
Fisrt, the amount of memory occupied is two time the amount used in case 1.
Second, if I use my_Cortona.Engine.RootNodes.Remove("test")
the memory is not released.
I'd be curious to know if this is a bug, or if I am doing something wrong.
Help/support really appreciated, regards
Dan
[reply]
[back to forum]
[new message]
[all forums]
Memory release
/
dan.vera@gmail.com
/ 23.09.09 08:14
Re: Memory release
/
dan.vera@gmail.com
/ 3.11.09 10:35
Messages in thread:
2
[reply]
[back to forum]
[new message]
[all forums]
© 1998-2009
ParallelGraphics
. All rights reserved.
Terms of use
.