From: "ERKI SAARTS" Organization: Kagu Piirivalvepiirkond To: djgpp AT delorie DOT com Date: Sat, 21 Jun 1997 07:46:08 +2EET MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: passing data to conventional memory Reply-to: ERKI AT voru DOT pv DOT ee Message-ID: <4C615216502@voru.pv.ee> Precedence: bulk I get segmentation fault when trying to pass data to dos memory i have allocated using _go32_dpmi_allocate_dos_memory. Can i use movedata in this case ? piece of code: _go32_dpmi_seginfo send_info; struct DATA my_send; send_info.size=256; _go32_dpmi_allocate_dos_memory(&send_info); (allocation succeeds) [..filling my_send] movedata((unsigned)_my_ds,(unsigned)&my_send,send_info.pm_selector, send_info.pm_offset,sizeof(my_send)); (this line faults) Size of my_send is about 1200 bytes while i allocate 4 kbytes so size is not the problem.