From: nikki AT gameboutique DOT co (nikki) Newsgroups: comp.os.msdos.djgpp Subject: weird dosmemput problem Date: 4 Mar 1997 12:27:49 GMT Organization: GameBoutique Ltd. Lines: 26 Message-ID: <5fh4g5$mo1@flex.uunet.pipex.com> NNTP-Posting-Host: www.gameboutique.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp 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. when i use dosmemput as above is correctly copies the contents of sendbuf into dos memory, but tends to corrupt memory and cause an emm fault at the same time. if i use &sendbuf it doesn't cause any problems - but doesn't copy the buffer either ;( presumably i've made some silly mistake here but i can't see it - can anyone else spot the bug? regards, nik -- Graham Tootell nikki AT gameboutique DOT com