Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2002
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2002

[Date Index] [Thread Index] [Author Index]

Search the Archive

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: Tue, 22 Oct 2002 04:47:04 -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




  • Prev by Date: RE: Bad Alignment of Y Axes
  • Next by Date: Good idea to use ArcTan[x,y] in Solve[], Integrate[] etc?
  • Previous by thread: Error handling with MathLink
  • Next by thread: Re: Error handling with MathLink