Re: 'trace(1)' doesnt work under Eu 2.5 Source?

new topic     » goto parent     » topic index » view thread      » older message » newer message

Hi again Matt,


Track:Events[ID][onGetMinMaxInfo] is set to the default routine id at program
startup.  This is always zero.  In every demo provided there is a note that
the include statement:

include GlobalVars.ew

must be the first statement in the program after normal Eu includes.
This guarantees that zero (0) is assigned to DefRID so that when
the system issues a windows message that is not handled by the user
it's routed to the "DefWindowProc()" allowing the system to provide
default handling.

You're of course correct in that this isnt the best way to 
handle this on my part, but as long as GlobalVars.ew is included
first there's no problem.  It wouldnt take much to change this to
allow whatever RID happens to be next to take on the default call,
but Rob already said he would update the Source.  Im also interested
to see how Rob handles this task, since it's not that different
from when you would need to access a sequence using x=s[0] but you're
stuck with using x=s[0+1], which takes longer and is more complex;
another issue though, i know, which can wait.

Also, what i was saying before about this is that since a routine
id which must have been much higher than zero HAD to have been called
in order to get to that particular function call (and hence the error).
This of course means that RID=0 had to have been declared SOMEWHERE,
even if it wasnt the correct function call.  If that zero^th function
had failed, no routine id would have been issued right?  It's also
very unlikely that ALL the functions that needed routine id's failed...
that's the only way there could be no zero^th routine id in existance.

Also, you'll note that the program runs just fine under the standard
PD v2.5, so why wouldnt you want to blame the 'Source' code?


Using the 'Source' code it takes a good 4 seconds to parse and load
that program on a 650MHz machine.


Did i understand your comments this time?


Take care,
Al

And, good luck with your Euphoria programming!

My bumper sticker: "I brake for LED's"

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu