C :: MSVS Has Triggered A Breakpoint

Apr 6, 2013

how to implement calloc, malloc and free. At the end of my program, I keep getting a "windows has triggered a break point" error. Im pretty sure that this error is happening because of the way I am implementing free because this is the error I am getting in free.c - " retval = HeapFree(_crtheap, 0, pBlock);".here is the code which I allocate and free memory:

Code:

int main (){
WORDS userWords[16];
char **board;
int i=0, n=0, numWords=0;
srand(time(NULL));
numWords = enterWords(userWords);
}

[code]....

View 5 Replies


ADVERTISEMENT

C++ :: Execute A Function While In A Breakpoint

Feb 17, 2013

For easier debugging, I would like to execute an own (predefined) function while beeing in a breakpoint (e.g. print some variables to a file).

Does there exists such a feature?

e.g.

- run program to a breakpoint

- a) press a keyboard-function-key (which calls that predefined function)

- b) or hover with cursor over a variable (and modify somehow the routine which shows its content on the screen)?

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved