Hi Ravi,

>>  DirectFBError [>surface->Lock( surface, 
>> (DFBSurfaceLockFlags)(DSLF_READ | DSLF_WRITE), &data, &pitch 
>)]: Resource is locked!
>>  Can you please help me to understand this phenomena?

You will receive this error if you call Lock twice.  Each surface Lock should 
be followed by a subsequent Unlock after you have finished using it and prior 
to subsequent Locks and/or other related IDirectFBSurface graphics operations 
on the surface.

Timothy

--

Timothy Strelchun
CE Software Engineering
Digital Home Group
Intel Corporation 

>-----Original Message-----
>From: directfb-users-boun...@directfb.org 
>[mailto:directfb-users-boun...@directfb.org] On Behalf Of 
>directfb-users-requ...@directfb.org
>Sent: Saturday, December 25, 2010 3:00 AM
>To: directfb-users@directfb.org
>Subject: directfb-users Digest, Vol 70, Issue 22
>

...

>Message: 1
>Date: Fri, 24 Dec 2010 16:39:24 +0530
>From: ravi <ravi...@gmail.com>
>Subject: Re: [directfb-users] accessing the row
>To: Chris Bore <chris_b...@yahoo.co.uk>
>Cc: directfb-users@directfb.org
>Message-ID:
>       <aanlktiksntrnox3x5f=mj1cxsce=259bjnwfuocdd...@mail.gmail.com>
>Content-Type: text/plain; charset="iso-8859-1"
>
>Hello All,
>                    Can anybody help me on this issue please?
>
>On Thu, Dec 23, 2010 at 3:43 PM, ravi <ravi...@gmail.com> wrote:
>
>> Thanks Chris. I've done that exercise. i implemented the 
>function like
>> this:
>> {
>>
>>      surface->Lock(surface, DSLF_READ, &data, &pitch );
>>
>> return (pointer *)data + pitch*row;
>>
>> }
>> I'm unlocking the surface in a different function that caller  will 
>> call after this function.
>> running this function is aborting the program with this message......
>>
>>  DirectFBError [>surface->Lock( surface, 
>> (DFBSurfaceLockFlags)(DSLF_READ | DSLF_WRITE), &data, &pitch 
>)]: Resource is locked!
>>  Can you please help me to understand this phenomena?
_______________________________________________
directfb-users mailing list
directfb-users@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to