Chilkat HOME .NET Core C# Android™ AutoIt C C# C++ Chilkat2-Python CkPython Classic ASP DataFlex Delphi ActiveX Delphi DLL Go Java Lianja Mono C# Node.js Objective-C PHP ActiveX PHP Extension Perl PowerBuilder PowerShell PureBasic Ruby SQL Server Swift 2 Swift 3,4,5... Tcl Unicode C Unicode C++ VB.NET VBScript Visual Basic 6.0 Visual FoxPro Xojo Plugin
(Visual Basic 6.0) VB6 Finalize Thread Pool on Program Exit (or Crash)VB6 programs must call FinalizeThreadPool on exit if using any Async methods. If your code is calling asynchronous Chilkat methods (i.e. methods having names ending with "Async"), then it is necessary to call FinalizeThreadPool when your program is about to exit. The VB6 IDE will crash unless all background threads are cleanly terminated.
' Asynchronous Chilkat methods are run in background threads managed ' by a thread pool manager thread, which is also a background thread. ' Prior to exiting, it is required in VB6 to ensure all asynchronous methods ' have completed or are aborted/cancelled, and that the thread pool manager ' thread is also shutdown. ' ' The FinalizeThreadPool method should be called just before the application exits ' to ensure all background threads, including the thread pool manager thread, are ' cleanly shutdown. ' This is how to do it: Dim glob As New ChilkatGlobal success = glob.FinalizeThreadPool() |
© 2000-2024 Chilkat Software, Inc. All Rights Reserved.