Click here to Skip to main content
15,899,754 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
AnswerRe: Memory leak problem. Pin
Stephen Hewitt4-Sep-11 1:33
Stephen Hewitt4-Sep-11 1:33 
GeneralRe: Memory leak problem. Pin
sirtimid4-Sep-11 10:19
sirtimid4-Sep-11 10:19 
QuestionGetting AppData Directory Path Pin
jwalker3432-Sep-11 17:02
jwalker3432-Sep-11 17:02 
AnswerRe: Getting AppData Directory Path Pin
Richard Andrew x643-Sep-11 10:19
professionalRichard Andrew x643-Sep-11 10:19 
GeneralRe: Getting AppData Directory Path Pin
jwalker3435-Sep-11 9:52
jwalker3435-Sep-11 9:52 
GeneralRe: Getting AppData Directory Path Pin
Richard Andrew x645-Sep-11 10:13
professionalRichard Andrew x645-Sep-11 10:13 
AnswerRe: Getting AppData Directory Path Pin
MicroVirus6-Sep-11 1:28
MicroVirus6-Sep-11 1:28 
GeneralRe: Getting AppData Directory Path Pin
jwalker3436-Sep-11 5:44
jwalker3436-Sep-11 5:44 
it did help significantly, i appreciate the explanation rather than a code dump...

I'm still a bit confused about the TCHAR and WCHAR definitions... they seem to convert themselves... i guess these are one of those "C++ Macros" that i've been reading about?

i figured i could just strcat() the strings in the same line, but i'm still trying to figure out C++




i've made the changes stated above, but i am now getting a "Debug Assertion Error" on my line:

C++
delete [] strPath


i've figured out that an assertion error is similar to a conditioned break point... i've found the line of code in one of the C++ files:

dbgdel.cpp
C++
void operator delete(
        void *pUserData
        )
{
        _CrtMemBlockHeader * pHead;

        RTCCALLBACK(_RTC_Free_hook, (pUserData, 0));

        if (pUserData == NULL)
            return;

        _mlock(_HEAP_LOCK);  /* block other threads */
        __TRY

            /* get a pointer to memory block header */
            pHead = pHdr(pUserData);

             /* verify block type */
            _ASSERTE(_BLOCK_TYPE_IS_VALID(pHead->nBlockUse));

            _free_dbg( pUserData, pHead->nBlockUse );

        __FINALLY
            _munlock(_HEAP_LOCK);  /* release other threads */
        __END_TRY_FINALLY

        return;
}

#endif  /* _DEBUG */



the code looks like i've passed an invalid param to the delete function... should i not be disposing of this variable, it is not used anywhere else in my code as of yet? or is there another method for disposing of this var?
GeneralRe: Getting AppData Directory Path Pin
MicroVirus6-Sep-11 15:31
MicroVirus6-Sep-11 15:31 
GeneralRe: Getting AppData Directory Path Pin
jwalker3437-Sep-11 16:03
jwalker3437-Sep-11 16:03 
Questionhelp me!!! Pin
zz526335731-Aug-11 5:30
zz526335731-Aug-11 5:30 
QuestionHow to use forms / dialog boxes with an ATL Project / BHO? Pin
abetterword23-Aug-11 4:22
abetterword23-Aug-11 4:22 
AnswerRe: How to use forms / dialog boxes with an ATL Project / BHO? Pin
MicroVirus6-Sep-11 2:06
MicroVirus6-Sep-11 2:06 
QuestionFailure to Recognise Base Class [modified] Pin
Bram van Kampen19-Aug-11 13:47
Bram van Kampen19-Aug-11 13:47 
AnswerRe: Failure to Recognise Base Class Pin
Richard MacCutchan20-Aug-11 0:23
mveRichard MacCutchan20-Aug-11 0:23 
GeneralRe: Failure to Recognise Base Class Pin
Bram van Kampen20-Aug-11 15:47
Bram van Kampen20-Aug-11 15:47 
GeneralRe: Failure to Recognise Base Class Pin
Richard MacCutchan20-Aug-11 23:32
mveRichard MacCutchan20-Aug-11 23:32 
AnswerRe: Failure to Recognise Base Class Pin
«_Superman_»22-Aug-11 13:14
professional«_Superman_»22-Aug-11 13:14 
QuestionCommon Controls Issue Pin
Tracy Software16-Aug-11 2:55
Tracy Software16-Aug-11 2:55 
Questioniterator default value [modified] Pin
liquid_5-Aug-11 1:34
liquid_5-Aug-11 1:34 
AnswerRe: iterator default value Pin
Stephen Hewitt6-Aug-11 20:40
Stephen Hewitt6-Aug-11 20:40 
GeneralRe: iterator default value Pin
liquid_7-Aug-11 9:18
liquid_7-Aug-11 9:18 
QuestionSOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\ Pin
VeganFanatic24-Jul-11 8:44
VeganFanatic24-Jul-11 8:44 
QuestionRe: SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\ Pin
Richard MacCutchan24-Jul-11 21:09
mveRichard MacCutchan24-Jul-11 21:09 
AnswerRe: SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\ Pin
VeganFanatic25-Jul-11 2:25
VeganFanatic25-Jul-11 2:25 

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.