Compiling to PC/Cannot instantiate

digitaldon37

Active Member
Licensed User
Longtime User
I get the following error message when running a program compiled to the PC platform:

"Active X control xxxxxx-xxx-xxx-x-x-x-x-x-x cannot be instantiated because the current thread is not in a single-threaded apartment"

My program uses the following libraries:
1. webbrowser
2. formlib

It runs ok from within the IDE and PPC, and compiled to the PPC runs ok.

I've googled this error and found a lot of similar problems, but haven't found a solution yet.

A simple "hello" program compiles and runs without problems on the PC.

Any suggestions?
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…