We had to add a bunch of "wait" statements in the win32 version of the code to prevent errors on certain systems. Perhaps it's as simple as doing that in your version of the code?