1. Euphoria and a suspended system
- Posted by Mark Brown <mabrown at SENET.COM.AU>
Mar 17, 2000
-
Last edited Mar 18, 2000
------=_NextPart_000_005E_01BF905C.73CBF2C0
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi everyone again!!
Does anyone know if Euphoria has any problems with a system (windows) =
that has gone into suspended mode? I left a program running and when my =
system went into suspend, nothing would make it recover but a reboot. I =
don't THINK it's the program (the problem seems to be unique to the =
system suspending) and it doesn't happen with an equivalent c++ program. =
The computer also doesn't seem to crash as such.....it just wont wake =
up!! This problem is consistent. It happens every time my computer has a =
snooze with this euphoria program running. Any clues?
Also, does anyone have any advice for me on whether or not I need to =
free memory I have allocated from within a function or procedure. Should =
I free the memory before the functions exits or will Euphoria do that =
anyway?
Thanks in advance
Mark Brown
------=_NextPart_000_005E_01BF905C.73CBF2C0
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>Hi everyone again!!</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=3D2>Does anyone know if Euphoria has any problems with a =
system=20
(windows) that has gone into suspended mode? I left a program running =
and when=20
my system went into suspend, nothing would make it recover but a reboot. =
I don't=20
THINK it's the program (the problem seems to be unique to the system =
suspending)=20
and it doesn't happen with an equivalent c++ program. The computer also =
doesn't=20
seem to crash as such.....it just wont wake up!! This problem is =
consistent. It=20
happens every time my computer has a snooze with this euphoria=20
program running. Any clues?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=3D2>Also, does anyone have any advice for me on whether =
or not I=20
need to free memory I have allocated from within a function or =
procedure. Should=20
I free the memory before the functions exits or will Euphoria do that=20
anyway?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=3D2>Thanks in advance</FONT></DIV>
<DIV> </DIV>
------=_NextPart_000_005E_01BF905C.73CBF2C0--
2. Re: Euphoria and a suspended system
Mark:
Have you tried turning off power management in the bias which can cause
your system to go to sleep. Also in the control panel there is a suspend
feature setting that is called power which will power down your
your hard drive to low power after so many minutes. I know these
don't have anything to do with Euphoria but you maybe fooled into
thinking you are having a problem with your software.
Bernie
3. Re: Euphoria and a suspended system
On Fri, 17 Mar 2000 22:02:14 +1030, Mark Brown <mabrown at SENET.COM.AU> wrote:
>Hi everyone again!!
>
>Does anyone know if Euphoria has any problems with a system (windows) that
has gone into suspended mode? I left a program running and when my system
went into suspend, nothing would make it recover but a reboot. I don't
THINK it's the program (the problem seems to be unique to the system
suspending) and it doesn't happen with an equivalent c++ program. The
computer also doesn't seem to crash as such.....it just wont wake up!! This
problem is consistent. It happens every time my computer has a snooze with
this euphoria program running. Any clues?
>
If I were going to take a wild, off-the-wall guess, I'd say that the
suspend feature is probably undercutting the CauseWay DOS Extender, but
this would only apply if it locks up under ex.exe and not exw.exe (I
think). My other guess would be that you have a Compaq. I've seen
problems like that before, and always been a Compaq bug that's caused it.
>
>Also, does anyone have any advice for me on whether or not I need to free
memory I have allocated from within a function or procedure. Should I free
the memory before the functions exits or will Euphoria do that anyway?
>
Yes. I'm not sure if local allocations are freed automatically at the end
of a procedure (probably not), but it's a bad habit to get into to not free
them yourself. You might end up doing that in a place that causes tons of
problems by accident.
>Thanks in advance
>
>Mark Brown
>
4. Re: Euphoria and a suspended system
Hello,
>Yes. I'm not sure if local allocations are freed automatically at the end
>of a procedure (probably not), but it's a bad habit to get into to not free
>them yourself. You might end up doing that in a place that causes tons of
>problems by accident.
>
> >Thanks in advance
> >
> >Mark Brown
"Local" allocations are NOT automatically freed until the
end of the program. This is why functions like
allocate_string () can work. I think this is correct
anyway.
Lewis Townsend
keroltarr at hotmail.com
http://geocities.com/keroltarr/
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
5. Re: Euphoria and a suspended system
Thanks to all for the tips
I switched off every BIOS and Windows power management feature I could find
and ran that Euphoria program. It ran all night (I had a snooze during it
myself!) and it was still going next morning. I personaly think it was
something to do with the video being suspended. I'll try to track it down
when I get time (curious).
BTW, it was an "exw" program on a made up from bits system (not a Compaq).
I'll also fix all the un-freed memory I've got on this project!!
Thanks
Mark Brown
6. Re: Euphoria and a suspended system
From: Mark Brown
>I switched off every BIOS and Windows power management feature I
>could find and ran that Euphoria program. It ran all night (I had a snooze
>during it myself!) and it was still going next morning. I personaly think it
>was something to do with the video being suspended. I'll try to track it
>down when I get time (curious).
I had similar trouble once when I messed with the BIOS APM settings. Not
just with Euphoria programs, though. After a bit of frustration, I turned
off all BIOS settings and turned on the windows power settings. I think
there may have been some sort of conflict where the BIOS was shutting things
off without Windows knowing...or vice versa.
I also found that when I set it to go off on it's own in 15 minutes or
whatever, it works fine, but when I tried to put it in sleep mode myself
(there used to be a thing on my start menu for that...) it would invariably
hang. Don't know why, so I just removed the thing from my start menu
(somehow, can't find a setting anywhere for it now).