Click here to Skip to main content
15,899,679 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How do I declare global variable? Pin
Toubou1-Jan-06 1:23
Toubou1-Jan-06 1:23 
GeneralRe: How do I declare global variable? Pin
Dominik Reichl1-Jan-06 1:43
Dominik Reichl1-Jan-06 1:43 
GeneralRe: How do I declare global variable? Pin
Toubou1-Jan-06 2:02
Toubou1-Jan-06 2:02 
AnswerRe: How do I declare global variable? Pin
Jörgen Sigvardsson1-Jan-06 10:11
Jörgen Sigvardsson1-Jan-06 10:11 
GeneralRe: How do I declare global variable? Pin
Stephen Hewitt9-Jan-06 2:38
Stephen Hewitt9-Jan-06 2:38 
GeneralRe: How do I declare global variable? Pin
Jörgen Sigvardsson9-Jan-06 3:37
Jörgen Sigvardsson9-Jan-06 3:37 
GeneralRe: How do I declare global variable? Pin
Stephen Hewitt9-Jan-06 11:29
Stephen Hewitt9-Jan-06 11:29 
QuestionHashtables Pin
jblau31-Dec-05 18:10
jblau31-Dec-05 18:10 
I'm a beginner programmer with a question about hashtables.

when I create a hashtable like so:
Hashtable *hashTable = new Hashtable;

Do I need to delete the hastahble in my destructor?

It was my understanding from the stuff I read that you should always have a DELETE for every NEW that you use.

But when I try to delete the hashtable, I receive an error message about an illegal delete.

So do I need to delete them somehow to avoid a memory leak?

Thanks,


Jody Blau
AnswerRe: Hashtables Pin
RChin31-Dec-05 18:57
RChin31-Dec-05 18:57 
GeneralRe: Hashtables Pin
John R. Shaw31-Dec-05 20:13
John R. Shaw31-Dec-05 20:13 
AnswerRe: Hashtables Pin
Michael Dunn31-Dec-05 19:04
sitebuilderMichael Dunn31-Dec-05 19:04 
GeneralRe: Hashtables Pin
Prakash Nadar31-Dec-05 19:39
Prakash Nadar31-Dec-05 19:39 
GeneralRe: Hashtables Pin
Michael Dunn1-Jan-06 8:00
sitebuilderMichael Dunn1-Jan-06 8:00 
AnswerRe: Hashtables Pin
John R. Shaw31-Dec-05 20:43
John R. Shaw31-Dec-05 20:43 
AnswerRe: Hashtables Pin
Prakash Nadar31-Dec-05 20:56
Prakash Nadar31-Dec-05 20:56 
AnswerRe: Hashtables--More Info on Original Question Pin
jblau31-Dec-05 21:23
jblau31-Dec-05 21:23 
GeneralRe: Hashtables--More Info on Original Question Pin
John R. Shaw31-Dec-05 22:22
John R. Shaw31-Dec-05 22:22 
GeneralRe: Hashtables--More Info on Original Question Pin
Gary R. Wheeler1-Jan-06 1:51
Gary R. Wheeler1-Jan-06 1:51 
GeneralRe: Hashtables--More Info on Original Question Pin
John R. Shaw1-Jan-06 9:02
John R. Shaw1-Jan-06 9:02 
GeneralRe: Hashtables--More Info on Original Question Pin
Prakash Nadar1-Jan-06 4:25
Prakash Nadar1-Jan-06 4:25 
GeneralRe: Hashtables--More Info on Original Question Pin
Michael Dunn1-Jan-06 8:07
sitebuilderMichael Dunn1-Jan-06 8:07 
AnswerRe: Hashtables--One More Follow Up Pin
jblau1-Jan-06 9:49
jblau1-Jan-06 9:49 
GeneralRe: Hashtables--One More Follow Up Pin
Prakash Nadar1-Jan-06 17:44
Prakash Nadar1-Jan-06 17:44 
QuestionCButton displayes dark edge after first click Pin
spiritofklanawa31-Dec-05 14:23
spiritofklanawa31-Dec-05 14:23 
AnswerRe: CButton displayes dark edge after first click Pin
Prakash Nadar31-Dec-05 16:55
Prakash Nadar31-Dec-05 16:55 

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.