CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - delphi exception
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - delphi exception - List
[
Process-Thread
]
ThreadSyncExample
DL : 0
在多线程中操作VCL对象时,需Synchronize到主线程,否则可能引起“Canvas does not allow drawing”异常。这是一个的线程同步例子,同时放了2种代码,可对照理解Synchronize的作用。-It s an example about how to operate VCL object in multithread. Use "Synchronize" To avoid "Canvas does not allow drawing" exception.
Date
: 2025-12-27
Size
: 197kb
User
:
waters
[
Process-Thread
]
asynccalls-thread-pool-example
DL : 1
利用多线程异步函数调用。 {版本:2.98(2011年10月22日)} {添加:德尔福XE264位的支持} {} {版本:2.97(2011-05-21)} {修正:线程的优先级恢复正常新AsyncCall任务。 } {修正:代替暂停/恢复代码,以防止竞争条件,在所有线程} {暂停但他们FSuspended标志是假的。 } {修正:异常处理TAsyncCall.InternExecuteSyncCall。退出()后不叫AN} {引发异常。 } -Asynchronous function calls utilizing multiple threads. { Version: 2.98 (2011-10-22) } { Added: Support for Delphi XE2 64bit } { } { Version: 2.97 (2011-05-21) } { Fixed: The thread priority wasn t reset to Normal for new AsyncCall tasks. } { Fixed: Replaced Suspend/Resume code to prevent a race condition where all threads are } { suspended but their FSuspended flag is false. } { Fixed: Exception handling in TAsyncCall.InternExecuteSyncCall. Quit() wasn t called after an } { exception was raised. }
Date
: 2025-12-27
Size
: 104kb
User
:
xkyzmr
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.