Re: gtk_image_new_from_file and mmap



Thanks Diego!

I never thought about that. As you guessed, errno
was indeed =2 already before the mmap call.

It works now and I'm very happy.

Regards,

Torbjoern


> 
> > How can gtk_image_new_from_file and mmap be 'colliding'?
> They don't, I think. Just you're using the wrong test. AT LEAST init
> errno to 0 just before the function call, but that's ugly. Better
> testing the CORRECT result first and check errno only when a failure
> gets reported...
> 
> BYtE,
>  Diego.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]