Mail Archives: djgpp/1996/12/06/10:36:53
isjolly AT aol DOT com wrote:
>
> Hi,
>
> I need to access a binary file which has been loaded into memory. When
> references to data is made in the code, using pointers to structures DJGPP
> v2 exits without crashing with the error message:
You can't do direct memory access under DJGPP because of PROTECTED
mode. There are a number of ways to do it, however, besides just
writing a pointer to a specific location. Please download the DJGPP
Frequently Asked Questions list (v2/faq202b.zip) and read section 10.2
there.
Also, what method are you using to load the file into memory? Some
sample code might be nice.
Finally, those numbers that DJGPP programs post when they crash are a
stack traceback of the program. To find out exactly where your program
crashed, make sure the dump is still on the screen, and type 'symify
<progname>', where <progname> is the name of your program. You can use
the resulting information to trace what you did wrong.
--
---------------------------------------------------------------------
| John M. Aldrich, aka Fighteer I | fighteer AT cs DOT com |
| Plan: To find ANYONE willing to | http://www.cs.com/fighteer |
| play Descent 2 on DWANGO! | Tagline: <this space for rent> |
---------------------------------------------------------------------
- Raw text -