Click here to Skip to main content
15,926,596 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Getting the sent messages from a game... Pin
Kuniva23-Aug-03 13:22
Kuniva23-Aug-03 13:22 
GeneralRe: Getting the sent messages from a game... Pin
Alexander M.,24-Aug-03 6:33
Alexander M.,24-Aug-03 6:33 
GeneralWSAOVERLAPPEDPLUS :: Winsock Pin
valikac23-Aug-03 9:01
valikac23-Aug-03 9:01 
GeneralRe: WSAOVERLAPPEDPLUS :: Winsock Pin
Beer2623-Aug-03 12:17
Beer2623-Aug-03 12:17 
GeneralRe: WSAOVERLAPPEDPLUS :: Winsock Pin
valikac23-Aug-03 12:39
valikac23-Aug-03 12:39 
QuestionHow to get a list of tables from a access database Pin
King_of_Queens23-Aug-03 8:52
King_of_Queens23-Aug-03 8:52 
AnswerRe: How to get a list of tables from a access database Pin
Manfred Staiger24-Aug-03 22:01
Manfred Staiger24-Aug-03 22:01 
Questionfault on delete[ ] ? Pin
Brian C Hart23-Aug-03 8:49
professionalBrian C Hart23-Aug-03 8:49 
Hello all,

I use VC6. Haven't the funds to bother with VS.NET yet...

I have the weirdest problems happening lately, with this code:

<br />
double* arr = new double[some_length];<br />
<br />
if (arr == NULL) return;  /* validity check */<br />
<br />
//...use arr here ...<br />
<br />
delete[] arr;  /* segmentation fault here -- wtf??? */<br />
arr = NULL;<br />


I have no idea what could be causing this -- I mean, I am behaving myself, and calling delete for arrays of a primitive type that I allocate on the heap, right? The problem is there whether I call either delete[] or just plain delete. The problem goes away when I remove the call to delete[] entirely.

same thing happens using malloc()/free()...what's going on?

This is bizzare. Has anybody else seen this behavior before? Thanks. Confused | :confused:

Sincerely Yours,
Brian Hart
Department of Physics and Astronomy
University of California, Irvine
AnswerRe: fault on delete[ ] ? Pin
Navin23-Aug-03 9:43
Navin23-Aug-03 9:43 
GeneralRe: fault on delete[ ] ? Pin
Brian C Hart23-Aug-03 12:16
professionalBrian C Hart23-Aug-03 12:16 
GeneralRe: fault on delete[ ] ? Pin
armentage25-Aug-03 8:03
armentage25-Aug-03 8:03 
GeneralRe: fault on delete[ ] ? (Solved) Pin
Brian C Hart25-Aug-03 8:39
professionalBrian C Hart25-Aug-03 8:39 
GeneralRe: fault on delete[ ] ? (Solved) Pin
armentage25-Aug-03 8:48
armentage25-Aug-03 8:48 
GeneralRe: fault on delete[ ] ? Pin
JT Anderson25-Aug-03 12:29
JT Anderson25-Aug-03 12:29 
AnswerRe: fault on delete[ ] ? Pin
Neville Franks23-Aug-03 10:09
Neville Franks23-Aug-03 10:09 
GeneralRe: fault on delete[ ] ? (Solved) Pin
Brian C Hart25-Aug-03 8:41
professionalBrian C Hart25-Aug-03 8:41 
AnswerRe: fault on delete[ ] ? Pin
igor196023-Aug-03 16:32
igor196023-Aug-03 16:32 
GeneralRe: fault on delete[ ] ? (Solved) Pin
Brian C Hart25-Aug-03 8:42
professionalBrian C Hart25-Aug-03 8:42 
GeneralMFC problem with templates and VS2003 : plz help!!! Pin
berserker_r23-Aug-03 8:39
berserker_r23-Aug-03 8:39 
GeneralRe: MFC problem with templates and VS2003 : plz help!!! Pin
igor196023-Aug-03 16:47
igor196023-Aug-03 16:47 
GeneralRe: MFC problem with templates and VS2003 : plz help!!! Pin
berserker_r24-Aug-03 0:43
berserker_r24-Aug-03 0:43 
Generalscript blocking Pin
Chen Jiadong23-Aug-03 4:39
Chen Jiadong23-Aug-03 4:39 
QuestionHow can i get the 9th bit in Serial communication? Pin
Cyclist23-Aug-03 4:17
Cyclist23-Aug-03 4:17 
AnswerRe: How can i get the 9th bit in Serial communication? Pin
Ernest Laurentin23-Aug-03 4:39
Ernest Laurentin23-Aug-03 4:39 
GeneralRe: How can i get the 9th bit in Serial communication? Pin
Cyclist23-Aug-03 17:25
Cyclist23-Aug-03 17: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.