No. Whatever is calling your method is doing so from a thread that is not the GUI thread. It has little to do with objects or namespaces. It can't help you any further since you use non standard controls.