Compiling to PC/Cannot instantiate

Discussion in 'Questions (Windows Mobile)' started by digitaldon37, Aug 26, 2008.

  1. digitaldon37

    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?
  2. Erel

    Erel Administrator Staff Member Licensed User

    Which version are you running?
    Are you using the optimized compiler? It should fix this.
  3. digitaldon37

    digitaldon37 Active Member Licensed User

    Optimized compiler - fixed

    Thanks Erel, that fixed the compilation.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice