flat assembler
Message board for the users of flat assembler.
![]() Goto page Previous 1, 2, 3 |
Author |
|
Tomasz Grysztar 13 Jan 2010, 18:59
No, I don't think it is reasonable to expect that someone doesn't use something that is allowed. That exactly the case of bad programming.
|
|||
![]() |
|
revolution 13 Jan 2010, 19:03
Allowed maybe, but certainly not preferred. Why risk having your app blamed for causing problems? For idealistic reasons?
And so easy to solve. |
|||
![]() |
|
Tomasz Grysztar 13 Jan 2010, 19:12
revolution wrote: For idealistic reasons? ![]() But don't be afraid, I won't use ExitThread for main thread in any standard fasm examples. "Preferred" still means something to me. ![]() |
|||
![]() |
|
revolution 13 Jan 2010, 19:19
Tomasz Grysztar wrote: "Preferred" still means something to me. ![]() |
|||
![]() |
|
Borsuc 13 Jan 2010, 22:48
But who said a process with one thread is just the thread either? Maybe it has additional info that, if the system doesn't handle it when the last thread is closed, you should use ExitProcess for that too.
I agree that it is preferred to find out "buggy" threads created, because otherwise you're just using garbage collector without solving the problem, but expecting ExitThread to clean up the process, not just the thread, is also expecting garbage collector to do the job! ![]() |
|||
![]() |
|
Tomasz Grysztar 14 Jan 2010, 08:55
Borsuc wrote: I agree that it is preferred to find out "buggy" threads created, because otherwise you're just using garbage collector without solving the problem, but expecting ExitThread to clean up the process, not just the thread, is also expecting garbage collector to do the job! ![]() ExitThread wrote: If the thread is the last thread in the process when this function is called, the thread's process is also terminated. |
|||
![]() |
|
Borsuc 14 Jan 2010, 15:32
Oops
![]() _________________ Previously known as The_Grey_Beast |
|||
![]() |
|
Goto page Previous 1, 2, 3 < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.