Heiko
New Member
Posts: 18
|
Post by Heiko on Apr 10, 2004 9:36:22 GMT -5
Hi Kevin,
I'm Heiko formerly known as Heiko Schrder
Some users of my software get the following error: (output of EurekaLog)
---------------------------------------------------------------------------------- |Address |Module |Unit |Class |Procedure/Method |Line| ---------------------------------------------------------------------------------- |004C5331|mobackup.exe|VCLZip.pas |TVCLZip |ExpandForWildCards |906 | |004C5250|mobackup.exe|VCLZip.pas |TVCLZip |ExpandForWildCards |894 | |004C6D50|mobackup.exe|VCLZip.pas |TVCLZip |ProcessFiles |1467| |004C6BE0|mobackup.exe|VCLZip.pas |TVCLZip |ProcessFiles |1439| |004C4EA4|mobackup.exe|VCLZip.pas |TVCLZip |Zip |791 | |004C4E7C|mobackup.exe|VCLZip.pas |TVCLZip |Zip |788 | ----------------------------------------------------------------------------------
On the line 906 on VCLZip.pas you check the last letter of the filelist. What can be the problem?
Best regards Heiko
|
|
|
Post by Kevin on Apr 10, 2004 9:53:24 GMT -5
What is the error?
And what is the wildcard that is causing the problem?
|
|
Heiko
New Member
Posts: 18
|
Post by Heiko on Apr 12, 2004 2:36:50 GMT -5
I dont use wildcards to add files. I use the method FilesList.Add and allot the exact filename. There are not empty directories.
Here is my code in Delphi 5:
---- CheckListBox : TCheckListBox; Zip : TVCLZip; -----
And here is the error. The error not ever occur. But if the error occurs always the adress is changed.
On the list at my first message you can see on which lines the VCLZip functions will be entered. You have to read it from bottom to top.
|
|
|
Post by Kevin on Apr 14, 2004 20:06:25 GMT -5
Sorry for the delay. I finally got a chance to look at the code in question here...
Line 906 simply checks the last character of the FilesList entry (as you noticed too) to see if it is a directory. I can't think of a reason for an exception unless there is no entry at that index, or a null was entered at that position in the FilesList array. Is there any chance that your program is entering a null, or some corrupted string?
Also, out of curiosity, do you know if this always happens on the first, or last entry in the FilesList array, or some pattern such as this?
Kevin
|
|
Heiko
New Member
Posts: 18
|
Post by Heiko on Apr 17, 2004 13:00:45 GMT -5
Also sorry for the delay ;-)
Now I can force the problem. If I add an empty string to the filelist the error occurs. So the problem has to be solved in my routines.
To improve VCLZip it should check and react to the empty filename.
Have a nice day.
|
|