Re: Rob: More trouble with PD-source

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

Vincent wrote:
> Robert Craig wrote:
> > I just tried a little experiment with NetRadio.exw.
> > If I add a small delay:
> >    for i = 1 to 1000 do
> >    end for
> > before returning from the callback, exw runs NetRadio ok.
> > But if I increase the loop to 10,000 ... 100,000 ... 1,000,000
> > then things become unstable, and eventually it crashes with
> > one of those weird errors. So there is a problem if the callback 
> > takes too long, and maybe also if other processing takes too long. 
> > I'm guessing the PD source (exw eu.ex) is too slow for certain 
> > demanding operations. It doesn't crash when it's simply displaying
> > a GUI. It's when some data is being transferred at high-speed.
> > I think your BASS stuff is requiring a minimum level of speed.
> > 
> 
> It crashes with different random errors each time I click a button in
> NetRadio.exw,
> with EXW and trace(3).
> 
> Can you do anything about this?

No I can't. That's my point. The application seems to
require a certain minimum level of speed from the
interpreter. exw is fast enough. But the instant you
turn on trace(3), it will start writing (and flushing) 
a line of text to a file for every single statement 
that it executes. That slows exw down by at least a 
couple of orders of magnitude, and makes it even
slower than "exw eu.ex", which we know is too slow.
Exactly why it crashes, we don't know, but it could
have something to do with running multiple O/S threads,
something that isn't really supported by Euphoria 
(as you are well aware smile).

By the way, I won two games of Language War last night
using multi *tasking* in the official ex.exe (C backend) interpreter.
So that project is coming along well. Maybe I'll release something
in a week or so.
 
Regards,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

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

Search



Quick Links

User menu

Not signed in.

Misc Menu