cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/31/15:31:22

From: john kismul <john DOT kismul AT bergen DOT mail DOT telia DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: MOVEDATA question
Date: Wed, 29 Oct 1997 19:50:39 +0100
Organization: Riksnett AS
Lines: 22
Message-ID: <3457857F.2CC2@bergen.mail.telia.com>
Reply-To: john DOT kismul AT bergen DOT mail DOT telia DOT com
NNTP-Posting-Host: t4o204p16.telia.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I've got a question about movedata.

I've allocated some memory and I've got the selector for it. Then I want
to move some of the allocated memory to a variable.


Doing something like this:


	movedata(source_selector,0,_my_ds(),&int_variable,2);

I get an General Protection Fault and a Call frame traceback error, and
my program exits with an error code of 255.

However, if I do something like this:

	movedata(_my_ds(),0,my_ds(),&int_variable,2);

Everything works OK.

Anyone?!!!

- Raw text -


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