forum-msg-id-133557-edit

Original date:2019-01-29 12:01:24 Edited by: irv Subject: Re: Fatal memory error

ctl-z does NOT end your program! It puts it into the background, still running, with files open.

Otherwise: Euphoria is supposed to automatically close open files, but it can't hurt to be sure. I'd start by actually calling close() on the files prior to the abort().

Secondly, you're still using Linux, right? I would open System Monitor and note the memory (and cpu) usage. Let your program load the files and just idle. Once the files are loaded into memory, the memory usage should remain stable, not creep up slowly over time. When the program closes, usage should drop back to pre-run values. If it doesn't, then you can determine where the excess usage is occurring.

If you're using ctl-z to put the program into the background, the System Monitor will show several instances of eui running. Obviously, that will eat up memory.

If the usage creeps up while the program is idle, then you're doing something in a loop that eats memory. By adding

with profile

to the top of your program, you'll get a list showing how many times each line of code is called. Look for one that stands out with thousands of calls.

Not Categorized, Please Help

Search



Quick Links

User menu

Not signed in.

Misc Menu