delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/07/09/12:31:24

Xref: news2.mv.net comp.os.msdos.djgpp:5775
From: Matthew Brendan Grantz <brendan AT jove DOT acs DOT unt DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: dosmemput...Am I doing something wrong?
Date: 9 Jul 1996 15:27:45 GMT
Organization: University of North Texas
Lines: 17
Message-ID: <4rttph$ao6@hermes.acs.unt.edu>
NNTP-Posting-Host: pppm1-2.dialup.unt.edu
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I'm trying to set up a real mode function to use with some 
software interrupts. I allocate the memory with 
__dpmi_allocate_dos_memory, and I get a return value. But when I 
try to copy data/code into the allocated space, the DOS shell I'm 
working under crashes. Every time. I have used the __dpmi and the 
_go32_dpmi versions, and I have tried using dosmemput, memcopy 
with nearptr, and a byte-by-byte farptr copy of the info. If I'm 
programming out of a Win95 shell, the crash dumps me back into 
the desktop, and if I'm in DOS, it just reboots the computer. 
I've checked for NULL pointers, etc, and while the error message 
that flashes on the screen blinks off too fast for me to be sure, 
I think it's a page fault. Surely I'm not the only one to ever 
have this prob. Any suggestions?

Matthew Grantz
brendan AT jove DOT acs DOT unt DOT edu

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019