comp.lang.ada
 help / color / mirror / Atom feed
From: "Patrice Freydiere" <frett27@free.fr>
Subject: Re: Tagged Types ..
Date: Sun, 05 Sep 2004 15:09:14 +0200
Date: 2004-09-05T13:07:36+02:00	[thread overview]
Message-ID: <pan.2004.09.05.13.09.10.851273@free.fr> (raw)
In-Reply-To: pan.2004.09.05.12.54.09.858608@free.fr


one more thing .... 
no exceptions are raised .... ??? the serveur process just stop

Patrice 

On Sun, 05 Sep 2004 14:54:09 +0200, Patrice Freydiere wrote:

> Hi there, 
> 
> i'm using GNAT 3.15p, on linux and i got a strange message in using an
> access to tagged type
> 
> i understand this is a runtime error message ??? 
> 
> 
> (null): Bad address
> 
> here is the context of execution ... 
> 
> 
>          for I in As'Range loop
>             declare
>                Im : Ais.Image.Image_access :=
>                  Ais.Image.Imagecollections.Item_at(Il,I);
> 
>                Ic : Ais.Image.Image'Class := Im.all;
>             begin
>                Ais.Log.Log("Image retreived");
>                if Im=null then
>                  Ais.Log.Log("null address  ");
>                end if;
>                declare
>                Ba : Ada.Streams.stream_element_array
>                  := Ais.image.Create_thumbnail(Ic);
>                S : String( Integer(Ba'first)..Integer(Ba'last) );
>             begin
>                Ais.Log.Log("Add");
>                for J in Ba'Range loop
>                   S(Integer(J)) :=
>                     Character'Val(Ada.Streams.Stream_Element'pos(Ba(J)));
>                end loop;
> 
> 
> on output i saw 
>  9: FileName =>fleur.png<=
>  1: Path =>/<=
>  9: FileName =>fleur.png<=
>  1: Path =>/<=
>  9: FileName =>fleur.png<=
>  1: Path =>/<=
>  9: FileName =>selection<=
> sending ...
> Sending Email
> Getting the Image /file/2001-03/Soiree_Projet/Photo_101-3-11-09.jpg
> Getting the Image /file/2001-03/Soiree_Projet/Photo_101-3-11-10.jpg
> Build attachment
> Image retreived
> (null): Bad address
> [use@villeurbanne]$ 
> 
> 
> i tried to put a log to the called methode (Create_thumbnail) but no log
> appear ..
> is this a compiler pb ... ?? 
> 
> 
> i still had several issues using tagged typed , sometime, the bug was due
> to not using intermediate variables to get tagged type ?? 
> 
> is there something wrong in my development method ? are there some
> recommendation to use tagged type ?
> 
> 
> thank's for your help!
> Patrice




  parent reply	other threads:[~2004-09-05 13:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-05 12:54 Tagged Types Patrice Freydiere
2004-09-05 11:15 ` Simon Wright
2004-09-05 13:09 ` Patrice Freydiere [this message]
2004-09-05 17:37   ` Jeff C r e e.m
2004-09-05 21:08 ` Jeffrey Carter
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox