cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/31/16:09:40

Message-Id: <m0xRIeA-000S1iC@inti.gov.ar>
Comments: Authenticated sender is <salvador AT natacha DOT inti DOT gov DOT ar>
From: "Salvador Eduardo Tropea (SET)" <salvador AT inti DOT edu DOT ar>
Organization: INTI
To: john kismul <john DOT kismul AT bergen DOT mail DOT telia DOT com>, djgpp AT delorie DOT com
Date: Fri, 31 Oct 1997 18:13:05 +0000
MIME-Version: 1.0
Subject: Re: MOVEDATA question

john kismul <john DOT kismul AT bergen DOT mail DOT telia DOT com> very lost wrote ;-)

> 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.
How did you allocated it, with malloc the dpmi functions?

> 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.
Let me see:
How did you got source_selector? I think your error is there.
 
> However, if I do something like this:
> 	movedata(_my_ds(),0,my_ds(),&int_variable,2);
> Everything works OK.
Ok?! it doesn't work at all, even more, you are using a NULL pointer.

Please give more details on how did you got the memory and selector.
And why you can't use malloc.

SET 
------------------------------------ 0 --------------------------------
Visit my home page: http://www.geocities.com/SiliconValley/Vista/6552/
Salvador Eduardo Tropea (SET). (Electronics Engineer)
Alternative e-mail: set-sot AT usa DOT net - ICQ: 2951574
Address: Curapaligue 2124, Caseros, 3 de Febrero
Buenos Aires, (1678), ARGENTINA
TE: +(541) 759 0013

- Raw text -


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