|
Почему ошибка ?....the current thread is not in a single-threaded apartment.
|
|||
---|---|---|---|
#18+
Коллеги, в моем проекте VS есть кусок кода, который вызывает ошибку Код: c# 1.
при создании экземпляра WebBrowser. Примечательно, что в других проектах все работает. С чем это может быть связано? Код: c# 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27.
... |
|||
:
Нравится:
Не нравится:
|
|||
15.10.2013, 14:56 |
|
Почему ошибка ?....the current thread is not in a single-threaded apartment.
|
|||
---|---|---|---|
#18+
Solution: It might be that you are facing the following problem reported on Connect1: .vshost.exe forces wrong threading model used when debugging a .exe if a .dll of the same name exists in same bin directory According to that issue it happens that the hosting process of Visual Studio, i.e. the myprogram.vshost.exe enforces the wrong apartment state when you have both a myprogram.exe and a myprogram.dll file in your output folder. ... |
|||
:
Нравится:
Не нравится:
|
|||
23.11.2013, 18:20 |
|
|
start [/forum/topic.php?fid=20&tid=1403636]: |
0ms |
get settings: |
9ms |
get forum list: |
12ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
39ms |
get topic data: |
14ms |
get forum data: |
3ms |
get page messages: |
41ms |
get tp. blocked users: |
2ms |
others: | 357ms |
total: | 483ms |
0 / 0 |