It should probably not be static.
Besides that, in what way does it not work.
Exceptions? Error messages?
I get a null pointer somewhere in the code.
And i tried it without a static variable but did not do the trick. It seems the handle it gets is different to the handle it tries to execute.
Very strange stuff