Click here to Skip to main content
15,917,538 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: percentile in C Pin
Sumit Kapoor4-Jul-04 14:32
Sumit Kapoor4-Jul-04 14:32 
GeneralRe: percentile in C Pin
Antti Keskinen4-Jul-04 22:02
Antti Keskinen4-Jul-04 22:02 
GeneralIXMLDOMxxx functions Pin
CaesarCZ4-Jul-04 13:16
CaesarCZ4-Jul-04 13:16 
GeneralRe: IXMLDOMxxx functions Pin
Sumit Kapoor4-Jul-04 13:57
Sumit Kapoor4-Jul-04 13:57 
GeneralDesparate: OLE Drag&Drop ClistCtrls Bombs Pin
otrcomm4-Jul-04 12:30
otrcomm4-Jul-04 12:30 
GeneralRe: Desparate: OLE Drag&Drop ClistCtrls Bombs Pin
Anonymous7-Jul-04 14:17
Anonymous7-Jul-04 14:17 
GeneralRe: Desparate: OLE Drag&Drop ClistCtrls Bombs Pin
otrcomm7-Jul-04 20:17
otrcomm7-Jul-04 20:17 
GeneralRe: Desparate: OLE Drag&Drop ClistCtrls Bombs Pin
SRV8-Jul-04 3:49
SRV8-Jul-04 3:49 
One definite problem is this part of CPopListCtrl::OnBegindrag():

//since this is a pointer to the string, we need a new pointer to a new string on the heap
pItem->plvi->pszText = new char;

It should be: new char[SOME_NUMBER];

I assume you want SOME_NUMBER to be 255, as the next line of code indicates:

pItem->plvi->cchTextMax = 255;

This error could easily explain the somewhat sporadic nature of your crash: it all depends what memory is being overwritten when the next line of code, GetItem(pItem->plvi), causes data to be written to the address pointed to by pItem->plvi->pszText.

Try fixing this problem and let us know if things are cool. If not, we'll keep digging.
GeneralRe: Desparate: OLE Drag&Drop ClistCtrls Bombs Pin
otrcomm8-Jul-04 10:18
otrcomm8-Jul-04 10:18 
Generalunsigned convert Pin
Scozturk4-Jul-04 8:33
professionalScozturk4-Jul-04 8:33 
GeneralRe: unsigned convert Pin
Michael Dunn4-Jul-04 8:51
sitebuilderMichael Dunn4-Jul-04 8:51 
Questionhow to get dial-up connection status Pin
J.Z4-Jul-04 7:15
J.Z4-Jul-04 7:15 
AnswerRe: how to get dial-up connection status Pin
Scozturk4-Jul-04 8:32
professionalScozturk4-Jul-04 8:32 
GeneralIncludes Pin
Dennis Gourjii4-Jul-04 7:12
Dennis Gourjii4-Jul-04 7:12 
GeneralRe: Includes Pin
J.B.4-Jul-04 7:29
J.B.4-Jul-04 7:29 
GeneralRe: Includes Pin
Dennis Gourjii4-Jul-04 8:44
Dennis Gourjii4-Jul-04 8:44 
GeneralRe: Includes Pin
Ravi Bhavnani4-Jul-04 8:53
professionalRavi Bhavnani4-Jul-04 8:53 
GeneralRe: Includes Pin
Dennis Gourjii5-Jul-04 5:16
Dennis Gourjii5-Jul-04 5:16 
GeneralBOOL to bool conversion Pin
J.B.4-Jul-04 6:39
J.B.4-Jul-04 6:39 
GeneralRe: BOOL to bool conversion Pin
User 66584-Jul-04 7:07
User 66584-Jul-04 7:07 
GeneralRe: BOOL to bool conversion Pin
Tim Smith4-Jul-04 7:12
Tim Smith4-Jul-04 7:12 
GeneralRe: BOOL to bool conversion Pin
J.B.4-Jul-04 7:19
J.B.4-Jul-04 7:19 
GeneralRe: BOOL to bool conversion Pin
User 66584-Jul-04 7:34
User 66584-Jul-04 7:34 
GeneralRe: BOOL to bool conversion Pin
A T I F4-Jul-04 22:14
A T I F4-Jul-04 22:14 
GeneralRe: BOOL to bool conversion Pin
User 66585-Jul-04 0:54
User 66585-Jul-04 0:54 

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.