From: | Andreas Kuessner |
Date: | 24 Sep 2000 at 19:18:58 |
Subject: | Re: AMIOPEN: Error while opening/closing Pixmap |
Hi Jarno,
> On Sat, 23 Sep 2000, Andreas Kuessner wrote:
>> out_pixmap=ave_avo_pix_open(width,height,32);
> I think you're missing a parameter here:
> ave_avo_pix_open(buffer,width,height,depth)
> It seems that most of the time you're lucky, and p0 (in which the buffer
> pointer will be passed) is zero. Some of the time, you're unlucky and p0
> contains some garbage. AVE thinks you're passing in a block of memory for
> the buffer, and WHAM! it tries to access some random memory address.
Where did you get this from? In the ave/avo/pixmaps docs there is written
that there are only the inputs width, height, depth. The pointer will
be passed in P0 only as RESULT.
"Memory is allocated by this constructor" is written there, no matter
what number/address is placed in p0
Bye, Andreas.
.oO---------------------------------------------------------------Oo.
Andreas K�ssner E-Mail: ak@wk-artworks.de HP: www.wk-artworks.de
Wildfire and Taifun Project Manager
.oO---------------------------------------------------------------Oo.
Subscribe/Unsubscribe: open-request@amiga.com
Amiga FAQ: http://www.amiga.com/faq.html