[Top][All Lists]

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

Re: Creating jpegs in a separate Thread

From: Adam Fedor
Subject: Re: Creating jpegs in a separate Thread
Date: 18 Nov 2003 16:48:32 -0700

On Tue, 2003-11-18 at 16:48, Stefan Kleine Stegemann wrote:
> Hi,
> i've a problem when trying to create an NSImage from a jpeg file in 
> separate
> thread. I get a core dump that points somewhere into libwraster. So i 
> digged
> deeper, and found that the wraster context is null in the method 
> _initFromWrasterFile
> in XGBitmapImageRep.
> any workarounds for this?

Well, currently the current GSDisplayServer is stored on a per-thread
basis, which is probably a bug.

I think a workaround, would be, in the main thread:

srv = GSCurrentServer()

and in your other thread:

[GSDisplayServer setCurrentServer: srv];

reply via email to

[Prev in Thread] Current Thread [Next in Thread]