I need more infos here:
1) What do you mean by "second black window"? Is there another black window, i.e. a first one, or what do you mean here?!
2) So scripts that don't use @REQUIRE work fine and scripts that use @REQUIRE don't work?
3) When do you get "Error creating surface"?