Error handling with MathLink
- To: mathgroup at smc.vnet.net
- Subject: [mg37287] Error handling with MathLink
- From: "Y.A.Tesiram" <yas at pcomm.hfi.unimelb.edu.au>
- Date: Mon, 21 Oct 2002 02:31:17 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
G'day all,
How do I return errors to Mathematica from a MathLink program?
For e.g.
...
ptr = malloc( HUGE_VAL );
if (ptr == NULL) {
// How do I return an error value to mathematica here?
}
Thanks
Yas