Possible Duplicate:
When does invoking a member function on a null instance result in undefined behavior?
The person in this question failed to create a pointer to an object using ‘new’, an then used this wild pointer to call a member function on the object.
The program fails when a member-variable is accessed (at myPoint[i].x = xData;).
Why does it fail at that location and not earlier?
The line in question is the first position where
thisis referenced.