Well it looks like it may be an Assertion problem (I'm a beginner myself), the page I looked at http://www.cplusplus.com/reference/cassert/assert/ has an example and said it was aborted because of a pointer with a null value, so this may be your problem, try checking your pointers values before this line is called. Hope this helps.