联合开发网   搜索   要求与建议
                登陆    注册
排序按匹配   按投票   按下载次数   按上传日期
按分类查找All 进程与线程(21) 
按平台查找All Delphi(21) 

[进程与线程] uSendStrMsg

多线程编程的时候,有时候会向界面发送大量日志信息,但是在线程里操作界面会造成死锁等怪现象,基于此,开发了此类,用来在线程里发送字符串信息,支持扩展信息。使用时SendMsg为发送消息,Pointer可传入扩展信息的内存指针,TStringMsgObj的创建函数传入显示消息回调及释放扩展信息回调,没有扩展信息可不传释放回调
Multi-threaded programming, sometimes a lot of log information sent to the interface, but in the user interface thread will result in deadlock and other strange phenomena, based on this, the development of such, used to thread the string to send information to support expansion information. SendMsg for sending messages when used, Pointer extended information can be passed in memory pointer, TStringMsgObj incoming message to create a callback function and callback release expansion information, did not extend the release of information from time to pass callback (2011-10-11, Delphi, 1KB, 下载13次)

http://www.pudn.com/Download/item/id/1665635.html
12
总计:21