Article View: borland.public.cppbuilder.nativeapi
Article #3222Pointers in Protected Memory BCB-6
From: BeyondEngineering
Date: Wed, 02 Aug 2006 20:03
Date: Wed, 02 Aug 2006 20:03
21 lines
1643 bytes
1643 bytes
Hi, At this time I'm working with this piece of code using C++ Builder 6.0: /*-------------------------------*/ PCHAR info; info=(char*)(0xFFFF5); //Memory location 0xFFFF5 char p = *info p stores the byte at the location pointed by info /*----------------------------------*/ But when the program reaches the third line of code (char p = *info) an Exception occurs saying: "Acces violation Read of address 0FFFF5" Does anyone know how can I solve this issue?? Any answer is really appreciated. Regards, Elkin.
Technical Details
Message-ID:
<1154548999.818248.234850@i42g2000cwa.googlegroups.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!i42g2000cwa.googlegroups.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,369d18d8b2706941,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!i42g2000cwa.googlegroups.com!not-for-mail From: "BeyondEngineering" <elkin.enigma@gmail.com> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Pointers in Protected Memory BCB-6 Date: 2 Aug 2006 13:03:19 -0700 Organization: http://groups.google.com Lines: 22 Message-ID: <1154548999.818248.234850@i42g2000cwa.googlegroups.com> NNTP-Posting-Host: 200.25.224.130 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1154549004 31352 127.0.0.1 (2 Aug 2006 20:03:24 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 2 Aug 2006 20:03:24 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: i42g2000cwa.googlegroups.com; posting-host=200.25.224.130; posting-account=RFTtWA0AAAAsCaTrF5RYZZvKxsv-8ICX