multithreading - delphi zip file within a thread (using TZipMaster) -


I want to zip a file within a thread using the TZipMaster component. The problem is, when I run the program with IDE, I get the error (from Windows)

"The program no longer answers. -> Search Online for a solution -> Programs Close ""

(I do not know the correct message in English like somehting. "

However, zip files were created successfully. Last debugger output Delphi 2009 From:

Unload Module: DelZIp179.dll

When I go directly to .exe It works fine and I do not get this error, although I am not sure whether I can ignore this error or it is better to fix it?

For your answer Thank you!

You get this error because your application is doing some heavy processing (zipping) in the main thread And it is not processing Windows messages.

This is better to fix this - Either you should process Windows messages while zipping (if Tizp supports the booster) or should move the zip in the background thread

More information: I inspect the TZipMaster source and there is a OnTick is the event that is called regular.

Write an OnTick event handler and make an application call. This should solve your problem.


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -