delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/04/18/09:26:03

Date: Mon, 18 Apr 94 09:18:16 -0400
From: dj AT ctron DOT com (DJ Delorie)
To: gordon AT yrd DOT chem DOT washington DOT edu
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: Fatal DOS Memory error using _go32_simulate_int

You must *ALWAYS* preinitialize dpmi's register structure will zeros:

	write_char_gen(...)
	{
	  _go32_dpmi_registers r;
	  memset(&r, 0, sizeof(r));

Some fields MUST be initialized, like the STACK.  I don't know for
sure if this is the cause of your problem, but it could be the cause
of other problems...


- Raw text -


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