只能说碰碰运气了。环境:EHLIB5.0 / DELPHI2007 虽然大多人都用DBGRIDEH,但刚好遇到我这个问题的应该不多。
SaveDBGridEhToExportFile(TDBGridEhExportAsRTF,frmdm2.DBGridEh1,FileName,true) 就这一句,如果放入线程中执行,死锁。 但如果将TDBGridEhExportAsRTF改成, AsText 或者 asCSV 都没问题。 因为量大,所以只能放入线程中执行,而且我又要的是rtf,因为我要生成的文件保留我DBGRideh中的背景。 不知是否有高手可以解决这个问题!
SaveDBGridEhToExportFile(TDBGridEhExportAsRTF,frmdm2.DBGridEh1,FileName,true) 就这一句,如果放入线程中执行,死锁。 但如果将TDBGridEhExportAsRTF改成, AsText 或者 asCSV 都没问题。 因为量大,所以只能放入线程中执行,而且我又要的是rtf,因为我要生成的文件保留我DBGRideh中的背景。 不知是否有高手可以解决这个问题!
解决方案 »
- Delphi Tquery insert 问题?
- 急求F1Book编程指南,搞定马上结帖.
- 请问QuickRep预览后为何,按打印按钮为何不打印?
- 新人请教各位前辈,delphi中的'四舍五入'函数和'取整'函数 怎么写的呀?
- 懂Web Service技术的请进!参与有分!
- 邮件群发软件?
- 谁有winroute4.1.25 的序列号?? 马上给分!!在线等...
- 控件问题,控件高手,看您的了....?
- 我用Database、Session、Table连接数据库,每个模块打开时打开相应的Table,退出时关闭Table,但有时在打开时会出Access voilent的异常,这是什么回事?
- CRM是什么东西?有人知道吗?
- 请教下高手们,"最小化"、"最大化"、"关闭"这三个按钮怎么做成像QQ或MSN一样的风格
- SQL语句出错。请问?
或者你可以在用过后调用一下Application.ProcessMessages试试
procedure Synchronize(Method: TThreadMethod);ParametersMethod: TThreadMethodTThreadMethod VCL method to be executed.
DescriptionSynchronize is used to avoid multi-threading conflicts that can arise from accessing object properties or methods that are not thread-safe, or using resources not in the main thread of execution.
Execution of the thread is suspended while Synchronize completes the call to Method.
Note: Methods can also be protected using critical sections or the multi-read exclusive-write synchronizer.
Note: Synchronize is redeclared as a public method in TIdThread.