ParallelGraphics Forums
SDK
You are here: [Forums]::[General]::[SDK]

Registration 
Registration
Forgot your password?

Help 
Help
Support

Quick search 

Subscribe to newsletters 

Install Cortona VRML Client for FREE!
Outline 3D
3D Page Of the Week
email:  password:
   General - SDK

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


 


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


© 1998-2009 ParallelGraphics. All rights reserved. Terms of use.