All you can do is to find what makes your code so special compared to the other examples that work. Once you've found that, you'll see if a workaround can be found.
Have you tried older versions of the driver? It may be the easiest solution for you, if you can find a version which works.