title: OpenCV: cvWarpAffine unhandled exception
body: <p>The code is:</p>
  
  <pre><code>CvMat *rotMapMat = cvCreateMat(2, 3, CV_32SC1);
  cv2DRotationMatrix(center, angle, 1, rotMapMat);
  cvWarpAffine(image, dst, rotMapMat);
  </code></pre>
  
  <p>First problem: The cv2DRotationMatrix is not correctly computing the matrix. 
  Then I've changed that function by my version cv2DRotationMatrixOwn
  But there is another problem, the second: The cvWarpAffine always fails with unhandled exception error. </p>
  
  <p>And I can't use debugger and call stack doesn't show the needed functions called before the place when an error occured.
  Why does it happen? 
  Size of st image is made big enough.</p>
  
  <p>EDIT1: Opencv version 2.2</p>