delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/25/01:16:18

Date: Fri, 24 Oct 1997 22:12:54 -0700 (PDT)
Message-Id: <199710250512.WAA07707@adit.ap.net>
Mime-Version: 1.0
To: john DOT kismul AT bergen DOT mail DOT telia DOT com, djgpp AT delorie DOT com
From: Nate Eldredge <eldredge AT ap DOT net>
Subject: Re: Movedata

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 -


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