David Heffernan what is the point on having 7 year old deprecated code? I can understand that if you mark some routine as deprecated you still keep it around a few releases to "not break code". Wait, that code is already broken.
Older references of "Resume" was only to be used for threads created in suspended state and you called Resume to start the thread for the very first time. An easy way to explain why you should never call Suspend in your code: Say you have an open connection to a FTP server and you Suspend your thread....Q: what happens to that connection? A: Nothing good. David's suggestion for event handling is the way to go for 'suspending' an action you have in process.
David Heffernan what is the point on having 7 year old deprecated code? I can understand that if you mark some routine as deprecated you still keep it around a few releases to "not break code". Wait, that code is already broken.
ReplyDeleteMaybe it's time to clean up
David Millington thx for explanation :-)
ReplyDeleteOlder references of "Resume" was only to be used for threads created in suspended state and you called Resume to start the thread for the very first time. An easy way to explain why you should never call Suspend in your code: Say you have an open connection to a FTP server and you Suspend your thread....Q: what happens to that connection? A: Nothing good. David's suggestion for event handling is the way to go for 'suspending' an action you have in process.
ReplyDelete