[vtkusers] IntPtr for ActiViz.Net

Jochen K. jochen.kling at email.de
Sat Jun 23 10:52:15 EDT 2012


Hi all,

don't forget to free memory if you allocate memory from the unmanaged memory

System.IntPtr p = Marshal.AllocHGlobal(s); 
...
...

// Frees memory previously allocated from the unmanaged memory
Marshal.FreeGlobalH(p)

with kind regards

Jochen

--
View this message in context: http://vtk.1045678.n5.nabble.com/IntPtr-for-ActiViz-Net-tp4759068p5714173.html
Sent from the VTK - Users mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120623/5774f475/attachment.htm>


More information about the vtkusers mailing list