The most recent thing that hurts is that C # calls the Windows API to manipulate a software that automatically handles something. To use the Clipboard copy and paste function, i.e. Clipboard.setdataobject (Filedic, true), etc.
Originally tested, the main thread button clicked to start without any problems. But putting the whole process on a single thread is an error when it's copied,
"Before you can call OLE, you must set the current thread to single-threaded apartment (STA) mode, make sure your main function has a stathreadattribute tag." But look at my main thread next to the win tag on the main function.
Do not know how to do, think is not to be on the thread function is also marked, but I think too much, no. Final Niang Search Multithreading "before you can call OLE, you must set the current thread to single-threaded apartment (STA) mode, and make sure your main function has a stathreadattribute tag"
Error, Degree Niang know thread has a apartmentstate attribute, in fact, I did not understand, I know that there is an STA enumeration type. Think about the problem here. The individual thread is set to _thread. Setapartmentstate (ApartmentState.STA);
There was no such error. Sort of solved the problem. But why is that. And so on later study understood to update the essay.
Before you can call OLE, you must set the current thread to single-threaded apartment (STA) mode, and make sure that your main function has a stathreadattribute tag. Multi-threaded operation when cutting the plate.