PackMemory + PackerCallback
Posted: Thu Jul 24, 2003 8:43 pm
Hello,
I have a program to pack files.
99% of the files are beeing packed within a reasonable time.
The packer / unpacker work good.
But there is always a file which cannot be packed.
My program takes 5-10 minutes to continue with PackMemory result = 0.
I inserted the PackerCallback planning to program some simple algorithm which stops the packer in case of beeing too slow.
But to my surprise, in these situations the PackerCallback also is not called. The docu says: "The time between two call isn't user definable, it will be calculated automatically." But the routine sleeps.
Does someone have an idea how to abort the packer?
Thank's../tomio
Added: There is at least one file, 200KB size, where the Callback won't do anything more after 26% of SourceMemory.
../tomio
I have a program to pack files.
99% of the files are beeing packed within a reasonable time.
The packer / unpacker work good.
But there is always a file which cannot be packed.
My program takes 5-10 minutes to continue with PackMemory result = 0.
I inserted the PackerCallback planning to program some simple algorithm which stops the packer in case of beeing too slow.
But to my surprise, in these situations the PackerCallback also is not called. The docu says: "The time between two call isn't user definable, it will be calculated automatically." But the routine sleeps.
Does someone have an idea how to abort the packer?
Thank's../tomio
Added: There is at least one file, 200KB size, where the Callback won't do anything more after 26% of SourceMemory.
../tomio