last day (14 days later) » 

13:56
.
.
working on that thing now
Yeah still no workeroni
I get a System.Threading.ThreadStateException
When trying to instantiating the activex control
I've read about it and people just recommending putting [STAThread] above the main method
but that only fixes it happening the first time
which I've had for quite some time
14:18
Wait I think I got something
14
Q: Starting an STAThread in C#

Saher AhwalI am still kind of new to C#, and especially threading in C#. I am trying to start a function that requires a single threaded apartment (STAThread) But I am not able to compile the following code: The function looks as follows in a separate class called MyClass: internal static string DoX(stri...

>..
>.>
did it work
it did successfully launch a new isntance
the new instance proceeded to not connect properly but thats probably something i did
I could probably throw this in another class tho
probably the main one
since its more about the program halting
Hmm... the only issue now is if i wanted to close/dispose of the other window already open
Technically it's not a big deal, but I think it would be better to get rid of it
but i get a similar issue of trying to dispose of the objects from a different thread
maybe theres a way around that though lemme create a copy so i dont screw things up

last day (14 days later) »