Re: speed of eu 2.5 + dynamic inclusion

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

On Wed, 24 Nov 2004 10:39:59 +0100, Juergen Luethje <j.lue at gmx.de>
wrote:

>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.
Perhaps something like:
main.exw:
	constanf f=open("inc1.e","rb")
	-- check/reset the contents of inc1
	close(f)
	system("exw.exe realMain.exw")

Pete

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

Search



Quick Links

User menu

Not signed in.

Misc Menu