logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: (NS_ERROR_NOT_AVAILABLE) [jsdIStackFrame.isNative]: msg#00024

Subject: Re: (NS_ERROR_NOT_AVAILABLE) [jsdIStackFrame.isNative]
John J. Barton wrote:
I wrote:
---
if (frame.isNative) return "(native)";
--
And I got
Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [jsdIStackFrame.isNative]" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)"

How can I know before issuing frame.isNative that it will fail?

Thanks,
John.

See:

http://lxr.mozilla.org/seamonkey/source/js/jsd/idl/jsdIDebuggerService.idl#772

Use 'isValid' on the inherited jsdIEphemeral interface.

You can, or course, also use exception handling to catch errors after-the-fact as appropriate.

John.


<Prev in Thread] Current Thread [Next in Thread>