Compiling to PC/Cannot instantiate

digitaldon37

Active Member
Licensed 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?
 
Top