delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/10/09:33:12

From: Andrew Crabtree <andrewc AT typhoon DOT rose DOT hp DOT com>
Message-Id: <199703101417.AA263213463@typhoon.rose.hp.com>
Subject: Re: RMCB Help
To: billc AT blackmagic DOT tait DOT co DOT nz
Date: Mon, 10 Mar 1997 6:17:42 PST
Cc: djgpp AT delorie DOT com
In-Reply-To: <33239AC5.7564@blackmagic.tait.co.nz>; from "Bill Currie" at Mar 10, 97 5:23 pm

> 
> You don't seem to have locked the memory touched by your callback.  The
> reason you are crashing under dos is cwsdpmi detects unlocked memory
> when inside a hardware interrupt and spits the dummy (otherwise dos
> itself could barf).
> 
> Check the faq (where you got djgpp) for details on locking memory.
> 
> Bill
> -- 
> Leave others their otherness.
> 



I thought the 

#include <crt0.h>
int _crt0_startup_flags = _CRT0_FLAG_LOCK_MEMORY

did lock memory.  Are you saying I need to explicitly call lock for the
functions and variables?  Or is it the real mode memory I alloced that
its complaining about?

Thanks,

Andrew


- Raw text -


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