Click here to Skip to main content
15,919,121 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
AnswerRe: Creating Custom True type fonts Pin
Nish Nishant8-Jan-06 4:37
sitebuilderNish Nishant8-Jan-06 4:37 
Question.net Pin
bikshamaiah.g6-Jan-06 4:31
bikshamaiah.g6-Jan-06 4:31 
AnswerRe: .net Pin
Nish Nishant6-Jan-06 4:51
sitebuilderNish Nishant6-Jan-06 4:51 
QuestionC++ Pin
S.E5-Jan-06 21:54
S.E5-Jan-06 21:54 
AnswerRe: C++ Pin
Yuwraj5-Jan-06 23:00
Yuwraj5-Jan-06 23:00 
AnswerRe: C++ Pin
Nish Nishant6-Jan-06 4:11
sitebuilderNish Nishant6-Jan-06 4:11 
GeneralRe: C++ Pin
Nish Nishant6-Jan-06 4:12
sitebuilderNish Nishant6-Jan-06 4:12 
QuestionQuestion on Hashtables Pin
jblau5-Jan-06 17:43
jblau5-Jan-06 17:43 
My understanding of Hashtables is this: If I declare a Hashtable like so: Hashtable *hashMyHashtable = new Hashtable; I don't need to have a corresponding DELETE after having used the NEW for the Hashtable. The reason being that the Hashtable is a Managed object and so I don't need to Delete it in my destructor.


My question is this: If I store an object that was declared with a NEW, and store it in the hashtable, do I need to go back through the hashtable and delete those objects, or does the managed code do that as well?

Example:
MyObject *tempObject = new MyObject;
Hashtable *hashObjects = new Hashtable;

hashObjects->Add(key, tempObject);


So if I store several tempObjects in my hashtable, do I need to traverse through the hashtable and DELETE the tempObjects, or does the garbage collector handle this as well as the hashtable itself?

If I do need to delete them, will a call to hashObjects->clear(); delete the objects?


Thanks,

Jody Blau
AnswerRe: Question on Hashtables Pin
J. Dunlap5-Jan-06 18:53
J. Dunlap5-Jan-06 18:53 
GeneralRe: Question on Hashtables Pin
Nish Nishant6-Jan-06 2:43
sitebuilderNish Nishant6-Jan-06 2:43 
AnswerRe: Question on Hashtables Pin
Michael Dunn5-Jan-06 22:53
sitebuilderMichael Dunn5-Jan-06 22:53 
GeneralRe: Question on Hashtables Pin
Nish Nishant6-Jan-06 2:44
sitebuilderNish Nishant6-Jan-06 2:44 
QuestionHow to use "graphic.h" in visual C++? Pin
m-khansari5-Jan-06 10:02
m-khansari5-Jan-06 10:02 
AnswerRe: How to use "graphic.h" in visual C++? Pin
Nish Nishant5-Jan-06 10:37
sitebuilderNish Nishant5-Jan-06 10:37 
AnswerRe: How to use "graphic.h" in visual C++? Pin
m-khansari6-Jan-06 19:37
m-khansari6-Jan-06 19:37 
AnswerRe: How to use "graphic.h" in visual C++? Pin
Sheng Jiang 蒋晟6-Jan-06 8:15
Sheng Jiang 蒋晟6-Jan-06 8:15 
QuestionMOVED Pin
tj_cts5-Jan-06 8:28
tj_cts5-Jan-06 8:28 
AnswerRe: Get Status of Comm Port Pin
Nish Nishant5-Jan-06 8:42
sitebuilderNish Nishant5-Jan-06 8:42 
GeneralRe: Get Status of Comm Port Pin
tj_cts5-Jan-06 8:59
tj_cts5-Jan-06 8:59 
QuestionHow to create a CFileDialog appearance resource? Pin
doctorpi2-Jan-06 22:02
doctorpi2-Jan-06 22:02 
AnswerRe: How to create a CFileDialog appearance resource? Pin
Nish Nishant3-Jan-06 6:08
sitebuilderNish Nishant3-Jan-06 6:08 
GeneralRe: How to create a CFileDialog appearance resource? Pin
doctorpi3-Jan-06 21:03
doctorpi3-Jan-06 21:03 
Questionsubmission Pin
thekeralite2-Jan-06 15:56
thekeralite2-Jan-06 15:56 
AnswerRe: submission Pin
Nish Nishant3-Jan-06 6:09
sitebuilderNish Nishant3-Jan-06 6:09 
Questionthreads and Managed c++ Pin
Roy K2-Jan-06 15:02
Roy K2-Jan-06 15:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.