[Search for users]
[Overall Top Noters]
[List of all Conferences]
[Download this site]
Title: | ObjectBroker Development - BEA Systems' CORBA |
Notice: | See note 2 for kit locations; note 4 for training |
Moderator: | RECV::GUMBEL d |
|
Created: | Thu Dec 27 1990 |
Last Modified: | Fri Jun 06 1997 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 2482 |
Total number of notes: | 13057 |
2429.0. "String_var(char *) - does it copy the memory?" by CFSCTC::HUSTON (Steve Huston) Wed Feb 05 1997 15:55
If I have a String_var that uses the String_var(char *) constructor,
does the String_var copy the initializer string, or keep the pointer
and release the memory when the String_var is released?
The general T_var spec says it'll keep the pointer, not make a copy
of the char *'s memory, and delete it when the T_var is deleted. The
String_var section didn't say (that I saw).
Thanks,
-Steve
T.R | Title | User | Personal Name | Date | Lines |
---|
2429.1 | It will keep the pointer in that case | RECV::VLATAS | WARNING: Do not swallow the battery door | Thu Feb 06 1997 06:56 | 5 |
|
The String_var constructor for a non-const char * pointer will
keep the pointer and will not copy the data.
Tony
|