05-21-2010 02:05 AM
Hello, I'm using the function NonLinearFitWithMaxIters, when reaches the maximum number of iterations without reaching a solution, it returns an error. And a error popup that stops execution. How can I handle this error to avoid the popup and not stop the execution?
Thanks in advance!!
05-21-2010 02:28 AM
Sorry! I didn't know that a function to avoid popups exists!!
int oldValue;
oldValue = SetBreakOnLibraryErrors (0);
/* Function calls
that may legitimately return errors. */
SetBreakOnLibraryErrors (oldValue);