Click here to Skip to main content
14,356,194 members

ATL / WTL / STL

 
Questioncannot get text of __DATE__ (resolved) Pin
bkelly1322-Apr-15 10:24
memberbkelly1322-Apr-15 10:24 
AnswerRe: cannot get text of __DATE__ Pin
Richard MacCutchan23-Apr-15 0:19
protectorRichard MacCutchan23-Apr-15 0:19 
GeneralRe: cannot get text of __DATE__ Pin
bkelly1324-Apr-15 3:01
memberbkelly1324-Apr-15 3:01 
Questionfunction to delete a class (resolved) Pin
bkelly1321-Apr-15 4:42
memberbkelly1321-Apr-15 4:42 
AnswerRe: function to delete a class Pin
Richard MacCutchan21-Apr-15 22:11
protectorRichard MacCutchan21-Apr-15 22:11 
GeneralRe: function to delete a class Pin
bkelly1322-Apr-15 5:08
memberbkelly1322-Apr-15 5:08 
QuestionRe: function to delete a class Pin
Richard MacCutchan22-Apr-15 7:27
protectorRichard MacCutchan22-Apr-15 7:27 
AnswerRe: function to delete a class Pin
bkelly1322-Apr-15 10:15
memberbkelly1322-Apr-15 10:15 
I do not have a delete function. The parens were used in an attempt to tell the standard delete operation that I want to delete the object pointed to by the pointer. An indirect delete rather than a direct delete.
class widget{ ... }

p_widget = new widget;
...
delete_stuff( L"widget", p_widget );
...
void delete_stuff( WCHAR * name, void * item )
{
  delete *item;
  ... logging code not shown.
}

The destructor of widget has a breakpoint that was never hit. I presume that widget was not deleted.

Because that did not work, I tried dereferencing and grouping the pointer as in:
delete *item;
and
delete (*item);

I am unable to get the breakpoint in the destructor so presume I am doing something wrong.
Thank you for your time
If you work with telemetry, please check this bulletin board: www.irigbb.com


modified 22-Apr-15 15:25pm.

GeneralRe: function to delete a class Pin
Richard MacCutchan22-Apr-15 23:27
protectorRichard MacCutchan22-Apr-15 23:27 
GeneralRe: function to delete a class Pin
bkelly1323-Apr-15 17:16
memberbkelly1323-Apr-15 17:16 
GeneralRe: function to delete a class Pin
Richard MacCutchan23-Apr-15 22:11
protectorRichard MacCutchan23-Apr-15 22:11 
GeneralRe: function to delete a class Pin
Richard MacCutchan23-Apr-15 0:15
protectorRichard MacCutchan23-Apr-15 0:15 
QuestionAlways on top (Task Manager) C# Pin
Rainsey Long25-Mar-15 6:45
memberRainsey Long25-Mar-15 6:45 
AnswerRe: Always on top (Task Manager) C# Pin
Richard MacCutchan25-Mar-15 7:33
protectorRichard MacCutchan25-Mar-15 7:33 
GeneralRe: Always on top (Task Manager) C# Pin
Rainsey Long25-Mar-15 8:01
memberRainsey Long25-Mar-15 8:01 
GeneralRe: Always on top (Task Manager) C# Pin
Richard MacCutchan25-Mar-15 8:58
protectorRichard MacCutchan25-Mar-15 8:58 
Questionwhere is WINVER set (resolved) Pin
bkelly1323-Mar-15 9:43
memberbkelly1323-Mar-15 9:43 
AnswerRe: where is WINVER set Pin
Richard MacCutchan23-Mar-15 23:27
protectorRichard MacCutchan23-Mar-15 23:27 
AnswerRe: where is WINVER set Pin
Theo Buys2-Apr-15 1:27
memberTheo Buys2-Apr-15 1:27 
GeneralRe: where is WINVER set Pin
bkelly134-Apr-15 10:11
memberbkelly134-Apr-15 10:11 
QuestionUnicode and codeproject article Pin
bkelly1325-Feb-15 11:30
memberbkelly1325-Feb-15 11:30 
AnswerRe: Unicode and codeproject article Pin
Daniel Pfeffer25-Feb-15 22:02
professionalDaniel Pfeffer25-Feb-15 22:02 
GeneralRe: Unicode and codeproject article Pin
bkelly1326-Feb-15 4:34
memberbkelly1326-Feb-15 4:34 
GeneralRe: Unicode and codeproject article Pin
bkelly1328-Feb-15 11:36
memberbkelly1328-Feb-15 11:36 
GeneralRe: Unicode and codeproject article Pin
Daniel Pfeffer28-Feb-15 12:52
professionalDaniel Pfeffer28-Feb-15 12:52 

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.