Where can I find the error message from an external

Marco Bönig mb at bkohg.com
Mon Nov 28 08:39:39 EST 2005


I am writing an external and it works fine. But I can not get the error 
message.

The C-source inside the external looks like this:

*pass = False;
*error = True;
*retstring = istrdup ("This is my error message");
return;

In Revolution I programed this:

on mouseUp
   lock error dialogs
   ErrorReturnValueTestCommand 1
end mouseUp

on errorDialog myError
   put myError into field "errorResultTextField"
end errorDialog

But the contents of myError is this, instead of the error text I 
generated inside the external:

573,3,1,ErrorReturnValueTestCommand
241,3,1,mouseUp
353,0,0,button id 1023 of card id 1002 of stack 
"/Users/marco/Desktop/Revolution External/Revolution 
2.6.1/SUSBTest.rev"

How can I get a message from an external when *error=True ?

I am not very familiar with Revolution. I am only writing an external 
for OSX. But after examining the complete mailing archive and the 
revolution Documentaion, I can't find out what's going wrong. It seems 
that I am the single external programmer with this problem.

best regards
Marco




More information about the use-livecode mailing list