Hi,
it is not a good solution, it is a desperate one. Try to kill all running processes one after one to find out where is the problem (task manager). First kill every suspicious process (if you can) and then check datawindow painter. Teamviewer is just another process we've found as problematic. It could be another one in your computer. I suspect there is a calling some function/s from .NET whose are shared PowerBuilder <-> another application / process.
It will turn out where is the problem (maybe).