From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7c0437014cb20f71 X-Google-Attributes: gid103376,public From: jsanchor@my-dejanews.com Subject: Re: System.Address_to_Access_Conversions Date: 1998/07/14 Message-ID: <6ofnep$5r0$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 371318355 References: <6odddl$k94$1@nnrp1.dejanews.com> Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Tue Jul 14 13:46:01 1998 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (X11; U; SunOS 5.5.1 sun4u) Date: 1998-07-14T00:00:00+00:00 List-Id: > > I tried casting > > Ptr_to_Data := Ptr_to_Data_Type(Data_Ptr); --It compiled..but when I ran it > > SEGMENTATION FAULT ERROR showed up. > > Can anybody suggest how do I get the correct access type to point to memory. > > You have the correct Ada syntax (that's why it compiled), but the > Operating System is not letting you write to that address (that's what > SEGMENTAION FAULT means). > -- Stephe >Good catch..Stephen. After I sent the mail it hit me. Anyway, I am writing to NVM. Thank you for your responce. Sincerely, Jay S. -----== Posted via Deja News, The Leader in Internet Discussion ==----- http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum