Forum: C Sep 1st, 2007 |
| Replies: 7 Views: 4,528 Similar to goto statements, I've found multiple return paths are as equally problematic. If line 25 is executed then hFile is still open |
Forum: C Sep 1st, 2007 |
| Replies: 7 Views: 4,528 The only thing I can think of is that another process or instance of this application already has the file open, and because you are not sharing the file this would not allow the handle to be... |
Forum: C Aug 31st, 2007 |
| Replies: 8 Views: 1,197 Set a soft break at CreateRawDataBUFR then a watchpoint at rdi, or set the same softbreak and a watchpoint to the location where rdi is stored and another at the contents that rdi points too. Then... |
Forum: C Mar 10th, 2005 |
| Replies: 13 Views: 4,256 Yes you will eventually run out of memory by continuously allocating with malloc and never freeing.
In the second case, theroetically you shouldn't run out of memory by freeing each time, but... |
Forum: C Mar 8th, 2005 |
| Replies: 18 Views: 6,295 As defined in stdlib.h and malloc.hfree (q);will do the trick. Assure only pointers that were created with malloc, calloc or realloc are passed to free (), otherwise other calls to get memory may... |