1. Error Window Disappears Too Quickly

--part1_86.206ebc2d.2ab9aa34_boundary

Hi All,
If my prog gets an error and comes to an abort(1) command the dos window 
flashes so quickly I can't read it. I know I should be trapping the errors 
but am lazy at the moment and reading the error would be all I need.

I use something like
puts(2, "Error message \n")
abort(1)

how can I make the dos window wait for me?

Thanks
Tony

--part1_86.206ebc2d.2ab9aa34_boundary
Content-Type: text/html; charset="US-ASCII"
Content-Transfer-Encoding: 7bit

<HTML><FONT FACE=arial,helvetica><FONT  SIZE=2 FAMILY="SANSSERIF" FACE="Arial"
LANG="0">Hi All,<BR>
If my prog gets an error and comes to an abort(1) command the dos window flashes
so quickly I can't read it. I know I should be trapping the errors but am lazy at
the moment and reading the error would be all I need.<BR>
<BR>
I use something like<BR>
puts(2, "Error message \n")<BR>
abort(1)<BR>
<BR>
how can I make the dos window wait for me?<BR>
<BR>
Thanks<BR>

--part1_86.206ebc2d.2ab9aa34_boundary--

new topic     » topic index » view message » categorize

2. Re: Error Window Disappears Too Quickly

Tony Steward wrote:
>Hi All,
>If my prog gets an error and comes to an abort(1) command the dos window
>flashes so quickly I can't read it. I know I should be trapping the errors
>but am lazy at the moment and reading the error would be all I need.
>
>I use something like
>puts(2, "Error message \n")
>abort(1)
>
>how can I make the dos window wait for me?

How about a simple while loop?

puts(2, "Error Message \n")
while get_key() = -1 do end while  -- Wait for a Keypress
abort(1)

Euphoria Instant Messenger
Have YOU Joined?
http://groups.yahoo.com/group/euim/

new topic     » goto parent     » topic index » view message » categorize

3. Re: Error Window Disappears Too Quickly

--0-409804045-1032468779=:28068


I am also lazy =)  Maybe too lazy.
A cheap and easy way to pause and turn warnings on and define a variable which
you never use.  Euphoria will pause and display this as a warning.
with warning
atom break
 
Don Phillips




Tony Steward wrote:
>Hi All,
>If my prog gets an error and comes to an abort(1) command the dos window
>flashes so quickly I can't read it. I know I should be trapping the errors
>but am lazy at the moment and reading the error would be all I need.
>
>I use something like
>puts(2, "Error message \n")
>abort(1)
>
>how can I make the dos window wait for me?




<P>I am also lazy =)&nbsp; Maybe too lazy.
<P>A cheap and easy way to pause and turn warnings on and define a variable
which you never use.&nbsp; Euphoria will pause and display this as a warning.
<P>with warning
<P>atom break
<P>&nbsp;
<P>Don Phillips
<P>&nbsp;<B><I>Elliott Sales de Andrade <QUANTUM_ANALYST at
HOTMAIL.COM></I></B>wrote:
--0-409804045-1032468779=:28068--

new topic     » goto parent     » topic index » view message » categorize

4. Re: Error Window Disappears Too Quickly

On Thu, 19 Sep 2002 13:52:59 -0700 (PDT), Don Phillips wrote:
>
>
>I am also lazy =3D)  Maybe too lazy.
>A cheap and easy way to pause and turn warnings on and define a
>variable which you never use.  Euphoria will pause and display=
 this
>as a warning.
>with warning
>atom break
>
>Don Phillips
>
My favorite was to just put the word 'pause' at the end of my=
 source.

Karl Bochert

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu