Click here to Skip to main content
15,899,474 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Problem with closing program Pin
Mark Salsbery5-Jun-07 7:43
Mark Salsbery5-Jun-07 7:43 
GeneralRe: Problem with closing program Pin
KellyR5-Jun-07 7:51
KellyR5-Jun-07 7:51 
GeneralRe: Problem with closing program Pin
Mark Salsbery5-Jun-07 7:57
Mark Salsbery5-Jun-07 7:57 
GeneralRe: Problem with closing program Pin
KellyR5-Jun-07 8:04
KellyR5-Jun-07 8:04 
GeneralRe: Problem with closing program Pin
Mark Salsbery5-Jun-07 8:21
Mark Salsbery5-Jun-07 8:21 
QuestionRe: Problem with closing program Pin
David Crow5-Jun-07 10:08
David Crow5-Jun-07 10:08 
AnswerRe: Problem with closing program Pin
Michael Dunn5-Jun-07 19:23
sitebuilderMichael Dunn5-Jun-07 19:23 
QuestionHeap error Pin
simoncoul5-Jun-07 5:27
simoncoul5-Jun-07 5:27 
Hello, I'm trying to allocate some memory but for some reason it keeps giving me a heap error. If I just continue through it in debug mode the function will output the proper number, and any time after that it continues to output numbers without and error, untill I restart visual studio then I get the error again. The error always occurs with h=2, any info on where to get start or how to fix this would be great.

const Complex I(0.0L,1.0L); //imaginary numbers

double **I = (double**)malloc(sizeof(double*)*K);
for ( h =0; h < K; h++){
	I[h] = (double*) malloc(sizeof(double)*K);
}


Thanks
QuestionRe: Heap error Pin
David Crow5-Jun-07 5:37
David Crow5-Jun-07 5:37 
AnswerRe: Heap error Pin
simoncoul5-Jun-07 5:44
simoncoul5-Jun-07 5:44 
QuestionRe: Heap error Pin
David Crow5-Jun-07 10:22
David Crow5-Jun-07 10:22 
AnswerRe: Heap error Pin
Matthew Faithfull5-Jun-07 5:50
Matthew Faithfull5-Jun-07 5:50 
GeneralRe: Heap error Pin
simoncoul5-Jun-07 6:06
simoncoul5-Jun-07 6:06 
GeneralRe: Heap error Pin
Matthew Faithfull5-Jun-07 6:14
Matthew Faithfull5-Jun-07 6:14 
GeneralRe: Heap error Pin
simoncoul5-Jun-07 6:33
simoncoul5-Jun-07 6:33 
AnswerRe: Heap error Pin
simoncoul5-Jun-07 8:10
simoncoul5-Jun-07 8:10 
GeneralRe: Heap error Pin
Matthew Faithfull5-Jun-07 8:55
Matthew Faithfull5-Jun-07 8:55 
GeneralRe: Heap error Pin
simoncoul5-Jun-07 9:53
simoncoul5-Jun-07 9:53 
GeneralRe: Heap error Pin
simoncoul5-Jun-07 9:58
simoncoul5-Jun-07 9:58 
GeneralRe: Heap error Pin
Matthew Faithfull5-Jun-07 10:28
Matthew Faithfull5-Jun-07 10:28 
GeneralRe: Heap error Pin
Michael Sadlon5-Jun-07 12:01
Michael Sadlon5-Jun-07 12:01 
GeneralRe: Heap error Pin
simoncoul6-Jun-07 3:56
simoncoul6-Jun-07 3:56 
GeneralRe: Heap error Pin
simoncoul6-Jun-07 4:03
simoncoul6-Jun-07 4:03 
AnswerRe: Heap error Pin
Stephen Hewitt5-Jun-07 14:33
Stephen Hewitt5-Jun-07 14:33 
GeneralRe: Heap error Pin
simoncoul6-Jun-07 8:41
simoncoul6-Jun-07 8:41 

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.