[vtkusers] passing pointers to VTK-classes

Jens G. jens-devel at gmx.de
Fri Jan 20 03:20:04 EST 2006


Hi 
Can I be sure that all functions of VTK-classes requesting a "const char*" or 
a "char*" are NOT saving the pointers adress but copying the string to there 
own memory?
I wonder what happens if I pass a "const char*"/"char*" to any VTK-class and  
free that "const char*"/"char*" afterwards. 
How long do I have to make sure that a pointer I passed to a VTK-class stays 
valid?

	Greetings
		Jens

P.S:
I know that I do not have to worry about passing pointers of VTK-classes if I 
use "Delete()" instead of "delete".



More information about the vtkusers mailing list