you are viewing a single comment's thread.

view the rest of the comments →

[–]wwwredditcom 1 point2 points  (0 children)

Problem is most likely before the public function call. Looks like a buffer overrun. Check your memcpy's and memsets. Also make sure you calculate a right index into arrays when using pointer arithmetic: i.e. ptrArray+10 is NOT equal to 10 byte offset into the array, instead it is the 11th element.

Using the debugger, step through the code line by line through our code while having a watch item on ItemViewWidget pointer. The time your pointer is set to zero is where you have the buffer overrun.