ILOG CPLEX 11.0 User's Manual > Programming Considerations > Developing CPLEX Applications > Eliminating Common Programming Errors > Check Return Values

Most methods and routines of the Component Libraries return a value that indicates whether the routine failed, where it failed, and why it failed. This return value can help you isolate the point in your application where an error occurs.

If a return value indicates failure, always check whether sufficient memory is available.