Re: Exceptions and Streams




Simon Wright wrote:
"REH" <spamjunk@xxxxxxxxxxx> writes:

I have certainly had trouble streaming ::something to do with
exceptions:: with GNAT, but I'm afraid I can't remember what. The
symptom was an endless recursion, I think. Not much help, I know.

Maybe your exception stream code was generating exceptions? :)


One thought: with 'gnatbind -E', GNAT keeps a traceback in the
occurence, but it's in terms of addresses so may not make a lot of
sense in another address space. This can also cause confusion in
exceptions raised during rendezvous if the traceback is reported from
the caller's point of view!

I am using Green Hills.

You might find it easier to create a stream which could extend itself
on overflow?

I can't. It's in an embedded system that must be certified. I cannot
use dynamic allocation.

Thanks,

REH

.



Relevant Pages

  • RE: Proposed change to BC iterator parameters
    ... Yeah, that works. ... In GNAT it is no less efficient than the boolean parameter approach. ... (Goto haters should consider that exceptions are just like gotos, ...
    (comp.lang.ada)
  • Re: Exceptions and Streams
    ... exceptions:: with GNAT, but I'm afraid I can't remember what. ... with 'gnatbind -E', GNAT keeps a traceback in the ... You might find it easier to create a stream which could extend itself ...
    (comp.lang.ada)
  • Re: GNAT GPL Edition Maintenance and Upgrades
    ... overflow the Integer type without any exceptions at run time. ... The problem is that it's the default behavior with GNAT. ...
    (comp.lang.ada)
  • Re: File handling: The easy and the hard way
    ... > Bushwa. ... I see tracebacks as programmer errors. ... > exceptions you log - unless they've got a problem that they can't figure ... So logging a traceback is a great idea IMHO. ...
    (comp.lang.python)
  • Re: Getting error condition from MySQLdb
    ... > connect to a non existant server, or with the wrong password - how do I get ... Traceback: ... Note that MySQLdb, like the majority of distributed modules, defines its ... standard DB-API exceptions. ...
    (comp.lang.python)