Re: memory?
- Posted by Igor Kachan <kinz at peterlink.ru> Jun 13, 2001
- 376 views
Hi again John, > Let me see if I understand this: > If I run my euphoria program with windows in the background I > can't use all my system's memory, just whatever windows allotted > my program. To use all my memory I must reboot in msdos mode, no > windows. Correct? And I still don't know how much memory I have > available using a euphoria dos program under (over) windows. There is one trick in the Euphoria Programming System, which allow to lull Windows's vigilance to sleep and use system swap-file with the commands of dos32 interpreter You just must to have two programs, the first is prog.ex and the second is prog.exw ---- prog.ex integer i i=system_exec("exw.exe prog.exw", 0) ---- end of prog.ex ---- prog.exw sequence S atom N S={} N=0 while 1 do N+=1 S=append(S,N) end while ---- end of prog.exw So, if your dos32 program run out of memory, you can write critical part as .exw program, call this .exw program from .ex program, save data, return into .ex program and so on. Try example above, it works for me and uses all system memory, i.e. all RAM + all disk space. Regards, Igor Kachan kinz at peterlink.ru