You have not allocated the memory for appendDate with malloc - that is the cause of the crush. You should have used static arrays instead of dynamic memory allocation as it is inappropriate here.
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 9 of 9
Thread: using free function after mallocThreaded View
|
Click Here to Expand Forum to Full Width |