Click here to Skip to main content
15,895,667 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: The exact size of "string" problem Pin
tyftyftyf23-Nov-09 16:55
tyftyftyf23-Nov-09 16:55 
GeneralRe: The exact size of "string" problem Pin
JohnCz23-Nov-09 17:36
JohnCz23-Nov-09 17:36 
Questionrunning time of java pograms Pin
cool_joy222-Nov-09 16:14
cool_joy222-Nov-09 16:14 
AnswerRe: running time of java pograms Pin
Richard MacCutchan22-Nov-09 21:36
mveRichard MacCutchan22-Nov-09 21:36 
GeneralRe: running time of java pograms Pin
cool_joy225-Nov-09 22:34
cool_joy225-Nov-09 22:34 
GeneralRe: running time of java pograms Pin
Richard MacCutchan25-Nov-09 23:49
mveRichard MacCutchan25-Nov-09 23:49 
GeneralRe: running time of java pograms Pin
cool_joy228-Nov-09 1:52
cool_joy228-Nov-09 1:52 
QuestionITextServices::Release() doesn't effect.That causes memory leaking. Pin
hawkgao012922-Nov-09 15:14
hawkgao012922-Nov-09 15:14 
I do call ITextServices::Release() to release that reference. But the allocated memory isn't released. I got following stack trace by "!heap -p -a" in Windbg after ITextServices::Release() is called.
Or, who can tell me what is the offical steps to release ITextServices correctly?
Anybody could help me? Thanks in advance.

0:001> !heap -p -a 027b5360
    address 027b5360 found in
    _HEAP @ 150000
      HEAP_ENTRY Size Prev Flags    UserPtr UserSize - state
        027b5360 0013 0000  [07]   027b5368    00080 - (busy)
        Trace: 02fb
        7c98ee72 ntdll!RtlDebugAllocateHeap+0x000000e1
        7c96b3a2 ntdll!RtlAllocateHeapSlowly+0x00000044
        7c93aa2b ntdll!RtlAllocateHeap+0x00000e64
        7c8099ef kernel32!LocalAlloc+0x00000058
        74de8f78 RICHED20!CW32System::PvReAlloc+0x00000026
        74d9577c RICHED20!CArrayBase::ArAdd+0x00000040
        74d957d1 RICHED20!CArrayBase::ArInsert+0x0000001a
        74da426c RICHED20!CTxtArray::AddBlock+0x0000001c
        74dd90d6 RICHED20!CTxtPtr::InsertRange+0x00000034
        74dd99bf RICHED20!CTxtPtr::ReplaceRange+0x00000110
        74dcb3a6 RICHED20!CRchTxtPtr::ReplaceRange+0x0000039c
        74da7b24 RICHED20!CTxtEdit::SetRichDocEndEOP+0x00000041
        74daa42f RICHED20!CTxtEdit::Init+0x000003be
        74ddd88a RICHED20!CreateTextServices+0x000000a0
*** WARNING: Unable to verify checksum for d:\Build\BooguNT\BooguNote_2009_11_22_datime\BooguNote\Debug\BooguNote.exe
        4b7b40 BooguNote!CBooguNoteText::Init+0x00000260
        4bd4ad BooguNote!CreateHost+0x000000fd
        4bd5f2 BooguNote!CreateTextControl+0x00000062
        4cb745 BooguNote!CBooguNoteView::CreateTextBlock+0x00000085
        4bf801 BooguNote!CBooguNoteView::LoadData+0x00000141
        4bea3b BooguNote!CBooguNoteView::OpenFile+0x0000002b
        4beb5e BooguNote!CBooguNoteView::OnCreate+0x0000008e
        4e7790 BooguNote!CBooguNoteView::ProcessWindowMessage+0x000000a0
        4a786a BooguNote!ATL::CWindowImplBaseT<ATL::CWindow,ATL::CWinTraits<1442840576,0> >::WindowProc+0x0000007a
        77d18734 USER32!InternalCallWinProc+0x00000028
        77d18816 USER32!UserCallWinProcCheckWow+0x00000150
        77d1b4c0 USER32!DispatchClientMessage+0x000000a3
        77d1f9fe USER32!__fnINLPCREATESTRUCT+0x0000008b
        7c92e473 ntdll!KiUserCallbackDispatcher+0x00000013
        77d1fecc USER32!_CreateWindowEx+0x000001ed
        77d1fc58 USER32!CreateWindowExW+0x00000033
        4aa5f2 BooguNote!ATL::CWindowImplBaseT<ATL::CWindow,ATL::CWinTraits<1442840576,0> >::Create+0x00000122
        4f0e29 BooguNote!ATL::CWindowImpl<CBooguNoteView,ATL::CWindow,ATL::CWinTraits<1442840576,0> >::Create+0x000000a9


:001> !heap -p -a 027b53f8
    address 027b53f8 found in
    _HEAP @ 150000
      HEAP_ENTRY Size Prev Flags    UserPtr UserSize - state
        027b53f8 0008 0000  [07]   027b5400    00028 - (busy)
        Trace: 02fe
        7c98ee72 ntdll!RtlDebugAllocateHeap+0x000000e1
        7c96b3a2 ntdll!RtlAllocateHeapSlowly+0x00000044
        7c93aa2b ntdll!RtlAllocateHeap+0x00000e64
        7c8099ef kernel32!LocalAlloc+0x00000058
        74d919fb RICHED20!CW32System::PvAlloc+0x00000011
        74d919e3 RICHED20!operator new+0x0000000f
        74dde615 RICHED20!CTxtEdit::GetDocInfo+0x00000013
        74ddd7e1 RICHED20!CTxtEdit::TxSetText+0x0000001b
        4b7bc5 BooguNote!CBooguNoteText::Init+0x000002e5
        4bd4ad BooguNote!CreateHost+0x000000fd
        4bd5f2 BooguNote!CreateTextControl+0x00000062
        4cb745 BooguNote!CBooguNoteView::CreateTextBlock+0x00000085
        4bf801 BooguNote!CBooguNoteView::LoadData+0x00000141
        4bea3b BooguNote!CBooguNoteView::OpenFile+0x0000002b
        4beb5e BooguNote!CBooguNoteView::OnCreate+0x0000008e
        4e7790 BooguNote!CBooguNoteView::ProcessWindowMessage+0x000000a0
        4a786a BooguNote!ATL::CWindowImplBaseT<ATL::CWindow,ATL::CWinTraits<1442840576,0> >::WindowProc+0x0000007a
        77d18734 USER32!InternalCallWinProc+0x00000028
        77d18816 USER32!UserCallWinProcCheckWow+0x00000150
        77d1b4c0 USER32!DispatchClientMessage+0x000000a3
        77d1f9fe USER32!__fnINLPCREATESTRUCT+0x0000008b
        7c92e473 ntdll!KiUserCallbackDispatcher+0x00000013
        77d1fecc USER32!_CreateWindowEx+0x000001ed
        77d1fc58 USER32!CreateWindowExW+0x00000033
        4aa5f2 BooguNote!ATL::CWindowImplBaseT<ATL::CWindow,ATL::CWinTraits<1442840576,0> >::Create+0x00000122
        4f0e29 BooguNote!ATL::CWindowImpl<CBooguNoteView,ATL::CWindow,ATL::CWinTraits<1442840576,0> >::Create+0x000000a9
        4ef8d8 BooguNote!CMainFrame::OpenFileByName+0x00000158
        4e900c BooguNote!CMainFrame::OnDropFiles+0x0000013c
        4e10b7 BooguNote!CMainFrame::ProcessWindowMessage+0x000003a7
        5166ca BooguNote!ATL::CWindowImplBaseT<ATL::CWindow,ATL::CWinTraits<114229248,262400> >::WindowProc+0x0000007a
        77d18734 USER32!InternalCallWinProc+0x00000028
        77d18816 USER32!UserCallWinProcCheckWow+0x00000150


0:001> !heap -p -a 027b5438
    address 027b5438 found in
    _HEAP @ 150000
      HEAP_ENTRY Size Prev Flags    UserPtr UserSize - state
        027b5438 001b 0000  [07]   027b5440    000c0 - (busy)
        Trace: 02ff
        7c98ee72 ntdll!RtlDebugAllocateHeap+0x000000e1
        7c96b3a2 ntdll!RtlAllocateHeapSlowly+0x00000044
        7c93aa2b ntdll!RtlAllocateHeap+0x00000e64
        7c8099ef kernel32!LocalAlloc+0x00000058
        74de8f78 RICHED20!CW32System::PvReAlloc+0x00000026
        74d9577c RICHED20!CArrayBase::ArAdd+0x00000040
        74da202d RICHED20!CDisplayML::RecalcLines+0x000000a3
        74da2ba2 RICHED20!CDisplayML::RecalcView+0x00000033
        74d9ee4e RICHED20!CDisplay::RecalcView+0x00000029
        74ddb211 RICHED20!CTxtEdit::OnTxInPlaceActivate+0x00000066
        4b7c7c BooguNote!CBooguNoteText::Init+0x0000039c
        4bd4ad BooguNote!CreateHost+0x000000fd
        4bd5f2 BooguNote!CreateTextControl+0x00000062
        4cb745 BooguNote!CBooguNoteView::CreateTextBlock+0x00000085
        4bf801 BooguNote!CBooguNoteView::LoadData+0x00000141
        4bea3b BooguNote!CBooguNoteView::OpenFile+0x0000002b
        4beb5e BooguNote!CBooguNoteView::OnCreate+0x0000008e
        4e7790 BooguNote!CBooguNoteView::ProcessWindowMessage+0x000000a0
        4a786a BooguNote!ATL::CWindowImplBaseT<ATL::CWindow,ATL::CWinTraits<1442840576,0> >::WindowProc+0x0000007a
        77d18734 USER32!InternalCallWinProc+0x00000028
        77d18816 USER32!UserCallWinProcCheckWow+0x00000150
        77d1b4c0 USER32!DispatchClientMessage+0x000000a3
        77d1f9fe USER32!__fnINLPCREATESTRUCT+0x0000008b
        7c92e473 ntdll!KiUserCallbackDispatcher+0x00000013
        77d1fecc USER32!_CreateWindowEx+0x000001ed
        77d1fc58 USER32!CreateWindowExW+0x00000033
        4aa5f2 BooguNote!ATL::CWindowImplBaseT<ATL::CWindow,ATL::CWinTraits<1442840576,0> >::Create+0x00000122
        4f0e29 BooguNote!ATL::CWindowImpl<CBooguNoteView,ATL::CWindow,ATL::CWinTraits<1442840576,0> >::Create+0x000000a9
        4ef8d8 BooguNote!CMainFrame::OpenFileByName+0x00000158
        4e900c BooguNote!CMainFrame::OnDropFiles+0x0000013c
        4e10b7 BooguNote!CMainFrame::ProcessWindowMessage+0x000003a7
        5166ca BooguNote!ATL::CWindowImplBaseT<ATL::CWindow,ATL::CWinTraits<114229248,262400> >::WindowProc+0x0000007a

QuestionError during compilation that I dont understand. [Solved] Pin
stianhh22-Nov-09 0:59
stianhh22-Nov-09 0:59 
AnswerRe: Error during compilation that I dont understand. Pin
Richard MacCutchan22-Nov-09 1:11
mveRichard MacCutchan22-Nov-09 1:11 
GeneralRe: Error during compilation that I dont understand. Pin
stianhh22-Nov-09 9:37
stianhh22-Nov-09 9:37 
GeneralRe: Error during compilation that I dont understand. Pin
Richard MacCutchan22-Nov-09 11:41
mveRichard MacCutchan22-Nov-09 11:41 
AnswerRe: Error during compilation that I dont understand. Pin
Cedric Moonen22-Nov-09 3:58
Cedric Moonen22-Nov-09 3:58 
QuestionCode snippet for searching a file in directory (directory can have subdirectories in it) Pin
V K 221-Nov-09 19:16
V K 221-Nov-09 19:16 
AnswerRe: Code snippet for searching a file in directory (directory can have subdirectories in it) Pin
22491721-Nov-09 19:47
22491721-Nov-09 19:47 
AnswerRe: Code snippet for searching a file in directory (directory can have subdirectories in it) Pin
breezes2008_22-Nov-09 0:35
breezes2008_22-Nov-09 0:35 
AnswerRe: Code snippet for searching a file in directory (directory can have subdirectories in it) Pin
T210222-Nov-09 12:28
T210222-Nov-09 12:28 
QuestionConverting "C++" language code code to "C" language code. [modified] Pin
hivicky21-Nov-09 17:55
hivicky21-Nov-09 17:55 
AnswerRe: Converting "C++" language code code to "C" language code. Pin
Rajesh R Subramanian21-Nov-09 18:29
professionalRajesh R Subramanian21-Nov-09 18:29 
AnswerRe: Converting "C++" language code code to "C" language code. Pin
Richard MacCutchan22-Nov-09 1:58
mveRichard MacCutchan22-Nov-09 1:58 
AnswerRe: Converting "C++" language code code to "C" language code. Pin
tyftyftyf22-Nov-09 17:44
tyftyftyf22-Nov-09 17:44 
QuestionHow to initialize a modal dialog's controls? Pin
timbk21-Nov-09 11:38
timbk21-Nov-09 11:38 
AnswerRe: How to initialize a modal dialog's controls? Pin
timbk21-Nov-09 13:07
timbk21-Nov-09 13:07 
QuestionNumber Matching Pin
Humayun Kabir Hemoo21-Nov-09 0:19
Humayun Kabir Hemoo21-Nov-09 0:19 
AnswerRe: Number Matching Pin
Rozis21-Nov-09 1:49
Rozis21-Nov-09 1:49 

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.