Re: workaround for exec err dialog?

2004-05-03 Thread Wouter
workaround for exec err dialog?
Richard Gaskin ambassador at fourthworld.com
Mon May 3 11:33:38 EDT 2004

I may have found a workaround for the engine issue in which the error
data param sent with errorDialog contains erroneous information:

I've found that for each erroneous entry the line and column items (#s 2
and 3 respectively) contain 0 (zero).

Can you think of any valid circumstances in which that would be the case?

Yes by test.

I don't think it's a good idea to take out all lines where item 2 and 3 are zero.
A faulty testhandler  placed in a button and on stacklevel can show this:

on mouseup ### opencard
repeat with i = 1 to 100 step 2
put i into foo[i]
end repeat
set the innards of me to foo
end mouseup ### opencard

The errordialog handler got 1 extra line of code to put its parameter.

the which parameter contains (when the reported error is correct):
openstack  called from a button:
620,0,0
90,5,19
449,5,3
535,5,1
241,5,1,openstack
353,0,0,stack "/Volumes/MacOS9/Dev Folder/Teststacks/metacard_error_tester.mc"
573,2,1,openstack
241,2,1,mouseUp
353,0,0,button id 1007 of card id 1002 of stack "/Volumes/MacOS9/Dev Folder/Teststacks/metacard_error_tester.mc"

mouseup in a button:
620,0,0
90,5,19
449,5,3
535,5,1
241,5,1,mouseUp
353,0,0,button id 1009 of card id 1002 of stack "/Volumes/MacOS9/Dev Folder/Teststacks/metacard_error_tester.mc"

Line 620 of field "Messages" of stack "Execution Error" indicates a "Array: bad index expression"
Line 353 of field "Messages" provides "Object Name:"

If these lines are taken out by:

###!
if item 2 of line i of ee = 0 AND item 3 of line i of ee = 0 then
next repeat
###!

then the error dialog displayed won't be complete

Though it is not very constructive, I hope this is helpful.
Greetings,
WA
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


Re: workaround for exec err dialog?

2004-05-03 Thread Richard Gaskin
Wouter wrote:

workaround for exec err dialog?
Richard Gaskin ambassador at fourthworld.com
Mon May 3 11:33:38 EDT 2004
I may have found a workaround for the engine issue in which the error
data param sent with errorDialog contains erroneous information:
I've found that for each erroneous entry the line and column items
(#s 2
and 3 respectively) contain 0 (zero).
Can you think of any valid circumstances in which that would be the
case?
Yes by test.

I don't think it's a good idea to take out all lines where item 2 and 3 
are zero.
A faulty testhandler placed in a button and on stacklevel can show this:

on mouseup ### opencard
repeat with i = 1 to 100 step 2
put i into foo[i]
end repeat
set the innards of me to foo
end mouseup ### opencard
The errordialog handler got 1 extra line of code to put its parameter.

the which parameter contains (when the reported error is correct):
openstack called from a button:
620,0,0
90,5,19
449,5,3
535,5,1
241,5,1,openstack
353,0,0,stack "/Volumes/MacOS9/Dev 
Folder/Teststacks/metacard_error_tester.mc"
573,2,1,openstack
241,2,1,mouseUp
353,0,0,button id 1007 of card id 1002 of stack "/Volumes/MacOS9/Dev 
Folder/Teststacks/metacard_error_tester.mc"

mouseup in a button:
620,0,0
90,5,19
449,5,3
535,5,1
241,5,1,mouseUp
353,0,0,button id 1009 of card id 1002 of stack "/Volumes/MacOS9/Dev 
Folder/Teststacks/metacard_error_tester.mc"

Line 620 of field "Messages" of stack "Execution Error" indicates a 
"Array: bad index expression"
Line 353 of field "Messages" provides "Object Name:"

If these lines are taken out by:

###!
if item 2 of line i of ee = 0 AND item 3 of line i of ee = 0 then
next repeat
###!
then the error dialog displayed won't be complete
I've gone further in my revision to only excluding those lines where ite 
ms 2 and 3 are zero AND where the error message corrresponding to item 1 
does not start with "Object Name:".

It's interesting that lines of code causing errors with arrays are not 
noted in the error data. That should be easily accounted for as well.

Any others?

Unfortunately I don't have code from the Exec Err dialog to post for 
this, as I gave up on it and wrote my own (which I needed to do for 
client deliverables anyway; the current one is too ugly to include in 
standalones ).

--
 Richard Gaskin
 Fourth World Media Corporation
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


workaround for exec err dialog?

2004-05-03 Thread Richard Gaskin
I may have found a workaround for the engine issue in which the error
data param sent with errorDialog contains erroneous information:
I've found that for each erroneous entry the line and column items (#s 2
and 3 respectively) contain 0 (zero).
Can you think of any valid circumstances in which that would be the case?

If not, the following fix (see the line between "##!" will correct the
issue:
- from cd script of stack "execution error" -
on refresh
  local lc, em, tei, teo, ter, tec
  put empty into ei
  put empty into eo
  put empty into er
  put empty into ec
  put empty into et
  put empty into field "Error Message"
  put the executionerror of me & cr after ee
  put the number of lines in ee into lc
  if lc > 100
  then delete line 100 to lc of ee
  if lc < 2 or the number of items in ee < 6 then
hide button "Script..."
hide button "Debug..."
put "thrown error" & cr into field "Error Message"
  end if
  repeat with i = the number of lines in ee down to 1
get item 1 of line i of ee
put line it of field "Messages" into em
if em is "Object Name:" then
  put item 4 of line i of ee into tei
  put the long name of tei into teo
else
  ###!
  if item 2 of line i of ee = 0 AND item 3 of line i of ee = 0 then
next repeat
  ###!
  put em & cr before field "Error Message"
  if item 2 of line i of ee is not 0 then
put item 2 of line i of ee into ter
put item 3 of line i of ee into tec
  end if
  put tei & cr before ei
  put teo & cr before eo
  put ter & cr before er
  put tec & cr before ec
  put item 4 of line i of ee & cr before et
end if
  end repeat
  delete last char of field "Error Message"
  seterror 1
  set the hilitedLines of field 1 to 1
end refresh


--
 Richard Gaskin
 Fourth World Media Corporation
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com


___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


Re: MetaCard icon

2004-05-03 Thread Richard Gaskin
Signe Marie Sanne wrote:

Working on engine 2.6 with 2.6b4 IDE

When I make a standalone on Mac Classic, I get the original MC icon 
writing "APPL" in the "Creator" box.

When on Windows XP the Revolution icon appears automatically. Is there a 
way to get the MC icon without having to buy a .ico program?
The ico is embedded in the engine, so to overwrite it you'll need to 
supply another ico in the Standalone Builder.

v2.6 now supports a wider range of icon depths for Win32, so maybe one 
of the folks here will be able to put together a nifty ico package to 
send you.

But better still would be your own custom icon.  There are plenty of 
ico-generating tools available with trial periods sufficient for a 
single icon, and for most the fee is low enough to make it a good 
bargain (after paying $995 for a development system; I bought Axialis 
IconWorkshop for $35 and have been very pleased with it: 
).

--
 Richard Gaskin
 Fourth World Media Corporation
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


Missing email

2004-05-03 Thread Kevin Miller
Hi,

As I mentioned before recently my mail database crashed a little while back
with the loss of a number of emails.  Most of you resent items that were
outstanding and I recovered most of the rest from a backup.  However I'm
fairly sure there were a few fairly important items that I saw and
subsequently lost, that haven't had replies.  So, if you're waiting for a
response from me on something, please resend your message.  Sorry for any
inconvenience.

Thanks,

Kevin

Kevin Miller ~ [EMAIL PROTECTED] ~ http://www.runrev.com/
Runtime Revolution - User-Centric Development Tools

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


MetaCard icon

2004-05-03 Thread Signe Marie Sanne
Working on engine 2.6 with 2.6b4 IDE

When I make a standalone on Mac Classic, I get the original MC icon writing 
"APPL" in the "Creator" box.

When on Windows XP the Revolution icon appears automatically. Is there a 
way to get the MC icon without having to buy a .ico program?

Regards
Signe Marie Sanne
1. amanuensis Signe Marie Sanne  e-mail: [EMAIL PROTECTED]
Romansk Institutttel:  +47 55 58 21 27
Øisteins gt. 1
5007 Bergen http://www.hf.uib.no/hfolk/mlab/hjem/default.html
Norway
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


Re: black menus with MC 2.6

2004-05-03 Thread Klaus Major
Hi Richard,

Klaus Major wrote:
Do you have the latest version of your video driver?
As Scott's old ReadMe used to say, "MetaCard is very good at 
exposing bugs in video drivers."
I will give this a try, thanks...
But, on the other hand, RR works, MC 2.5.1 works, too...?
Bloody Murphy ;-)
When you say "MC 2.5.1", do you mean the IDE or the engine?
I did not change the IDE since MC version 2.5 on my pc and never had 
problems,
so i mean the latest engine...

That's what puzzling me...

Same machine:
Rev 2.1.2 OK
Rev 2.2 OK
MC (engine) 2.5 OK
MC 2.5.1 OK
MC 2.6 Black menus
No probs if i just swap the engines...?

I also replaced my old IDE with the new 2.6b4 IDE -> Black menus
MC 2.5.1 with the new 2.6b4 IDE -> OK
I just tried the Rev 2.2 engine on Win XP with MC IDE 2.6b4 and the 
menu colors seem normal.
Congrats ;-)

I'll keep on trying, thanks...

--
 Richard Gaskin
 Fourth World Media Corporation
Regards

Klaus Major
[EMAIL PROTECTED]
www.major-k.de
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard