Note that there are some explanatory texts on larger screens.

plurals
  1. POActiveX control cannot be instantiated because thread is in a single-threaded apartment. Happens after waking PC from sleep
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. COThis is typically induced by a problem with the startup of your program. Remove any custom splashscreen you made and make sure the very first window that is created is initialized on the main thread. This ensures that the SystemEvents class is properly initialized.
      singulars
    2. COHi Hans, thank you for the reply. The first window created is initialized on the main thread. However, the first/main form is not the one that errors. The browser window that is opened by the main form is the one that is giving me the error. Additionally, I believe it's important to note that the error only happens after the computer is put into sleep mode and then woken. OnPowerChange the forms are closed and on resume the forms run again like they do on the initial load.
      singulars
    3. COWell, unclear but a browser would certainly generate this kind of error. Note how your question title is wrong, it complains because it is **not** being created on an STA thread. No idea what OnPowerChange might be but indications are that whatever event you use is running on the wrong thread and thus triggering the complaint.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload