![]() |
|
[console]Threading problem - Printable Version +- Sinisterly (https://sinister.ly) +-- Forum: Coding (https://sinister.ly/Forum-Coding) +--- Forum: Visual Basic & .NET Framework (https://sinister.ly/Forum-Visual-Basic-NET-Framework) +--- Thread: [console]Threading problem (/Thread-console-Threading-problem) |
[console]Threading problem - 1llusion - 03-17-2011 Hi, well, I'm making a console app, and my console doesn't want to work with this code: Code: Dim t As New Threading.Thread(AddressOf check)
t.IsBackground = True
t.Start()Every time it comes to this line, the console closes. Can anybody please help me to fix this? Thanks a lot ![]() Have a great day
[console]Threading problem - 1llusion - 03-17-2011 Hi, well, I'm making a console app, and my console doesn't want to work with this code: Code: Dim t As New Threading.Thread(AddressOf check)
t.IsBackground = True
t.Start()Every time it comes to this line, the console closes. Can anybody please help me to fix this? Thanks a lot ![]() Have a great day
RE: [console]Threading problem - Coder-san - 03-18-2011 I'm not sure if you can do Multi-threading in a console App. In Project options, change the project to a Forms Project. There will be no Forms added, but life would get easier.
RE: [console]Threading problem - Coder-san - 03-18-2011 I'm not sure if you can do Multi-threading in a console App. In Project options, change the project to a Forms Project. There will be no Forms added, but life would get easier.
RE: [console]Threading problem - 1llusion - 03-18-2011 (03-18-2011, 06:00 AM)Coder-san Wrote: I'm not sure if you can do Multi-threading in a console App. In Project options, change the project to a Forms Project. There will be no Forms added, but life would get easier. well, I wanna try to learn console, since it seems cool for me But didn't think of switchingthanks ![]() Anyway, solved the problem by doing a simple loop ![]() Also, I use the console, since I can just c/p the code from there to my CodeDom compiler and test it
RE: [console]Threading problem - 1llusion - 03-18-2011 (03-18-2011, 06:00 AM)Coder-san Wrote: I'm not sure if you can do Multi-threading in a console App. In Project options, change the project to a Forms Project. There will be no Forms added, but life would get easier. well, I wanna try to learn console, since it seems cool for me But didn't think of switchingthanks ![]() Anyway, solved the problem by doing a simple loop ![]() Also, I use the console, since I can just c/p the code from there to my CodeDom compiler and test it
|