Date: Tue, 4 Mar 1997 17:21:36 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: nikki <nikki AT gameboutique DOT co>
cc: djgpp AT delorie DOT com
Subject: Re: weird dosmemput problem
In-Reply-To: <5fh4g5$mo1@flex.uunet.pipex.com>
Message-ID: <Pine.SUN.3.91.970304171943.12717C-100000@is>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII


On 4 Mar 1997, nikki wrote:

> static _go32_dpmi_seginfo pktout;
> static unsigned char sendbuf[64];
> 
> void main (etc...
> 
>         pktout.size=(16*1024L+15)/16;
>         _go32_dpmi_allocate_dos_memory(&pktout);
> 
>         dosmemput(sendbuf,60,pktout.rm_segment*16);
> 
> this snippet of code causes all number of weird problems for me.

The snippet as it is shown seems perfectly OK to me.  So it probably is
something else that causes the problems.  Can you post a short program
that uses this snippet and bombs?