www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/21/00:39:36

From: "ERKI SAARTS" <erki AT voru DOT pv DOT ee>
Organization: Kagu Piirivalvepiirkond
To: djgpp AT delorie DOT com
Date: Sat, 21 Jun 1997 07:46:08 +2EET
MIME-Version: 1.0
Subject: passing data to conventional memory
Reply-to: ERKI AT voru DOT pv DOT ee
Message-ID: <4C615216502@voru.pv.ee>

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.



- Raw text -


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