Mail Archives: djgpp/1997/10/25/01:16:18
At 03:25 10/22/1997 +0100, john kismul wrote:
>When I use "movedata" like this
>
>
>movedata(source_selector,source_offset,dest_selector,dest_offset,length);
>
>
>The program will compile without any problems, however when I run it I
>get an General Protection Fault, what's wrong?
>
>source_selector and dest_selector holds a handle returned with
>__dpmi_allocate_memory
>or should I use another function for allocation memory?
If you just want to allocate memory in general, just use malloc(), and the
usual C functions will work as usual. If you're doing something different,
please post more of your code.
Nate Eldredge
eldredge AT ap DOT net
- Raw text -