Yes, when using your own threads, stay away from every engine function that creates something. Or at least perform those operations on the main thread.
Shitlord by trade and passion. Graphics programmer at Laminar Research. I write blog posts at feresignum.com