On 2011/6/16 6:15 PM, James Lampert wrote:
My C is a bit rusty at the moment.

Is there a way, when calling QXXRTVDA, to avoid having it crash your
program if the data area it's looking for isn't there?


The QWCRDTAA API has an error code parameter, and might be easier to use in the long run.

For QXXRTVDA, you could use a direct monitor handler.

#include <except.h>
...

#pragma exception_handler(errLab, 0, 0, _C2_MH_ESCAPE)
{
ok = 0;
QXXRTVDA (parms);
ok = 1;
}
errLab:
#pragma disable_handler

if (ok)
{
process the data area value
}

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.