Mail Archives: djgpp/1997/06/21/00:39:36
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 -