Click here to Skip to main content
16,020,706 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CListCtrl::FindItem crashes Pin
Naveen24-Sep-09 20:08
Naveen24-Sep-09 20:08 
GeneralRe: CListCtrl::FindItem crashes Pin
Maxwell Chen24-Sep-09 20:38
Maxwell Chen24-Sep-09 20:38 
GeneralRe: CListCtrl::FindItem crashes Pin
Naveen24-Sep-09 21:48
Naveen24-Sep-09 21:48 
GeneralRe: CListCtrl::FindItem crashes Pin
Maxwell Chen24-Sep-09 22:12
Maxwell Chen24-Sep-09 22:12 
Naveen wrote:
You have to pass flAllocationType as MEM_COMMIT|MEM_RESERVE


I did, too. And it crashed as well ... Sigh | :sigh:
TCHAR* pBuffer = NULL;
pBuffer = (TCHAR*)::VirtualAllocEx(m_hCplProcess, NULL, MAX_PATH, MEM_COMMIT | MEM_RESERVE, PAGE_READWRITE);
if(!pBuffer) {
    return;
}


I also tried to VirtualAllocEx a LVFINDINFO object to replace the local one. It crashed too but at different line. Not at FindItem call but at the line
LVFINDINFO* pInfo = NULL;
// Do VirtualAllocEx for pInfo  ...
pInfo->flags = LVFI_PARTIAL | LVFI_STRING; // <-- crash.


  Maxwell Chen

GeneralRe: CListCtrl::FindItem crashes Pin
Naveen24-Sep-09 22:32
Naveen24-Sep-09 22:32 
GeneralRe: CListCtrl::FindItem crashes Pin
Maxwell Chen24-Sep-09 22:48
Maxwell Chen24-Sep-09 22:48 
QuestionHow to judge if left button down in OnMouseMove while it is a SDI derived from CListView? Pin
Syouki_kou24-Sep-09 17:30
Syouki_kou24-Sep-09 17:30 
AnswerRe: How to judge if left button down in OnMouseMove while it is a SDI derived from CListView? Pin
babu_mcet4-Apr-11 23:38
babu_mcet4-Apr-11 23:38 
QuestionHow to call telnet script (commands) inside C/C++ code? Pin
Jun Du24-Sep-09 16:22
Jun Du24-Sep-09 16:22 
AnswerRe: How to call telnet script (commands) inside C/C++ code? Pin
«_Superman_»24-Sep-09 17:03
professional«_Superman_»24-Sep-09 17:03 
QuestionHow can I copy a multidimensional array? [modified] Pin
Paul Belikian24-Sep-09 15:39
Paul Belikian24-Sep-09 15:39 
AnswerNevermind - it works as is Pin
Paul Belikian24-Sep-09 18:19
Paul Belikian24-Sep-09 18:19 
QuestionC++ new operator Global Process storage ??? Pin
ForNow24-Sep-09 13:08
ForNow24-Sep-09 13:08 
AnswerRe: C++ new operator Global Process storage ??? Pin
Rajesh R Subramanian24-Sep-09 17:11
professionalRajesh R Subramanian24-Sep-09 17:11 
GeneralRe: C++ new operator Global Process storage ??? Pin
CPallini24-Sep-09 20:56
mveCPallini24-Sep-09 20:56 
AnswerRe: C++ new operator Global Process storage ??? Pin
«_Superman_»24-Sep-09 17:12
professional«_Superman_»24-Sep-09 17:12 
GeneralRe: C++ new operator Global Process storage ??? Pin
ForNow24-Sep-09 17:32
ForNow24-Sep-09 17:32 
GeneralRe: C++ new operator Global Process storage ??? Pin
«_Superman_»24-Sep-09 17:42
professional«_Superman_»24-Sep-09 17:42 
GeneralRe: C++ new operator Global Process storage ??? Pin
ForNow24-Sep-09 17:56
ForNow24-Sep-09 17:56 
GeneralRe: C++ new operator Global Process storage ??? Pin
«_Superman_»24-Sep-09 20:39
professional«_Superman_»24-Sep-09 20:39 
GeneralRe: C++ new operator Global Process storage ??? Pin
ForNow25-Sep-09 1:03
ForNow25-Sep-09 1:03 
AnswerRe: C++ new operator Global Process storage ??? Pin
Rajesh R Subramanian25-Sep-09 0:57
professionalRajesh R Subramanian25-Sep-09 0:57 
QuestionFont Pin
viliam24-Sep-09 10:39
viliam24-Sep-09 10:39 
QuestionRe: Font Pin
David Crow24-Sep-09 10:57
David Crow24-Sep-09 10:57 
AnswerRe: Font Pin
viliam24-Sep-09 11:32
viliam24-Sep-09 11:32 

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.