On 07/29/2010 06:19 AM, pk wrote:
> On 2010-07-29 06:49, Valmor de Almeida wrote:
> 
>> Thanks for the feedback. I posted the same question on the octave users
>> list but no answers.
> 
> Maybe vacation time so most users are offline? I'm on vacation but still
> online... :-)
> 
> If you know C you could check out the semaphore.c file to see what it
> looks like and how whatever function is used should be called... maybe
> it can give you some clue?
> 
> Best regards
> 
> Peter K
> 

For the record, the work around this problem was posted on the octave
users list.

>>>It appears to me to be either initialization problem or race
>>>condition. The workaround that
>>>works for me is to read some file first fith imread, after that
>>>imwrite works fine. I.e.:
>>>
>>>junk1 = imread("some_file.png")
>>>im=ones(2);
>>>imwrite(im, "myfile.png")
>>>
>>>Dmitri.

--
Valmor


Reply via email to