Hung Ta Viet
2011-01-25 14:59:06 UTC
Hi omniORB friends,
You're the experts of omniORB, I think you're expert in C++, also.
I have a question, who knows is very welcome:
Assume we have a fragment of code:
typedef char String [46];
String* pStr = new String[10];
A question are:
1. How is memory allocated for the pointer pStr?
2. If we use delete pStr; , is the memory allocated for the pointer deleted
completely?
Regards,
Hung
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20110125/5be0e1d2/attachment.htm
You're the experts of omniORB, I think you're expert in C++, also.
I have a question, who knows is very welcome:
Assume we have a fragment of code:
typedef char String [46];
String* pStr = new String[10];
A question are:
1. How is memory allocated for the pointer pStr?
2. If we use delete pStr; , is the memory allocated for the pointer deleted
completely?
Regards,
Hung
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20110125/5be0e1d2/attachment.htm