whenever i try to run program for example,
if i have to run "frmphonebook" so in
Application.Run(new frmphonebook());
I typed but when i run it it run another form, and it happens to each and every form and it is displaying output as
The thread 'vshost.RunParkingWindow' (0x63c) has exited with code 0 (0x0).
The thread '<No Name>' (0xb24) has exited with code 0 (0x0).
how to solve this ?
A 32-bit signed integer containing the exit code. The default value is 0 (zero), which indicates that the process completed successfully.
To enable or disable Just My Code in Visual Studio, under Tools > Options (or Debug > Options) > Debugging > General, select or deselect Enable Just My Code.
The thread '<No Name>' (0xb24) has exited with code 0 (0x0). how to solve this ? You can give your threads a name it would also help you in your debugging... But in many apps threads are created implicitly and you have no control over the name. So that is not an error message. Code 0 means everything went according to plan.
but, in u r case, the thread exited with code 0 . 0 indicates thread exited successfully means no error. to stop such messages, u can right click debug output window and uncheck "Thread Exit Message" setting. hope this helps... It sounds like you have an unhandled exception in your code, causing something to crash.
"The thread '<No Name>' (0x7c) has exited with code 0 (0x0)." That is not an error message. Code 0 means everything went according to plan. Any non-zero code usually indicates an error. Check out My Blog. Now updated to actually work! That is not an error message. Code 0 means everything went according to plan.
There actually doesn't seem to be a lot of explanation on this subject apparently but the exit codes are supposed to be used to give an indication on how the thread exited, 0 tends to mean that it exited safely whilst anything else tends to mean it didn't exit as expected.
You can give your threads a name it would also help you in your debugging... But in many apps threads are created implicitly and you have no control over the name. So that is not an error message. Code 0 means everything went according to plan. Any non-zero code usually indicates an error.
edit: You can also disable the display of these messages, when debugging, do right click on output, and choose what do you want see.
If a thread has exited with code 0 it ran successfully. On Codeproject is a Beginners-Guide-to-Threading This article on threading might also be helpfull. This question on so could also be of use. A list of System Error Codes
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With