Re: speed of eu 2.5 + dynamic inclusion

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

Alexander Toresson wrote:

> Juergen Luethje wrote:
>>> The only way I can think of is the program reads the include file, and
>>> if wrong, rewrites it and restarts the whole program from scratch.
>>
>> Yes, that will probably work, too.
>>
>
> But what if the wrong include file causes the program to crash?

This should preferably be avoided. smile
Maybe the safest way would be, that the include file initially dosn't
contain any code at all. The file must exist, but it has a size of 0,
or only contains a comment. Then the program dynamically writes the
actual include file as intended, and restarts itself.

Or if a wrong include file causes the program to crash (A include file
dynamically written by the program also can contain a bug!), maybe this
problem can be solved using the new crash_routine() in Eu 2.5? The
crash_routine() writes a new include file, and then restarts the program?
I haven't tetsted it myself yet, but there might be some interesting
possibilities.

Regards,
   Juergen

-- 
Have you read a good program lately?

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

Search



Quick Links

User menu

Not signed in.

Misc Menu