From: john kismul 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 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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?!!!