Hi all,

It appears that I can not execute code in a worker such as the
following:

var img;
img = new Image();

I believe this is because the Image class is actually related to the
global window object, which isn't accessible in a worker context.  But
I couldn't find any documentation relating to Gears that conclusively
said it's not possible.

Should I be able to create an Image object in a worker context?

(My thought in doing this is to perform some off-screen caching of
very large images in a worker context, then alert the main context
that the image has been cached by the browser.)

Thanks
Dave Viner

Reply via email to