Page 1 of 1

Program dies without any message, heap overflow

Posted: 2009-06-26 11:43:28
by rgbigel
I find this error consistently when I open the program and then try to insert file names (leftmost button) on a directory containing 600+ files (movies and short descriptions, in this case). I'm sending you some helpful data in case you have time to fix it.

If I select and drag the items I want to rename out of explorer to ant renamer (a much smaller number of files), there is no problem.

Rolf
----------------------- error data -------------------
There is no application log entry most of the time, but when I open a debugger there is this:
------------ Visual Studio Debugger ------------
Unhandled exception at 0x77002cd3 in Renamer.exe: 0xC0000374: Ein Heap wurde beschädigt.
(Translation: a Heap was damaged)
------------ Application Log ------
Protokollname: Application
Quelle: Application Error
Datum: 2009-06-26 13:32:33
Ereignis-ID: 1000
Aufgabenkategorie:(100)
Ebene: Fehler
Schlüsselwörter:Klassisch
Benutzer: Nicht zutreffend
Computer: FoxConnI
Beschreibung:
Name der fehlerhaften Anwendung: Renamer.exe, Version: 2.1.0.0, Zeitstempel: 0x2a425e19
Name des fehlerhaften Moduls: ntdll.dll, Version: 6.1.7100.0, Zeitstempel: 0x49eea66e
Ausnahmecode: 0xc0000374
Fehleroffset: 0x000c2cd3
ID des fehlerhaften Prozesses: 0x1474
Startzeit der fehlerhaften Anwendung: 0x01c9f651c37cdfea
Pfad der fehlerhaften Anwendung: C:\Program Files\Ant Renamer\Renamer.exe
Pfad des fehlerhaften Moduls: C:\Windows\SYSTEM32\ntdll.dll
Berichtskennung: 09c6cdfe-6245-11de-9860-8000600fe800
Ereignis-XML:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Application Error" />
<EventID Qualifiers="0">1000</EventID>
<Level>2</Level>
<Task>100</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2009-06-26T11:32:33.000000000Z" />
<EventRecordID>71465</EventRecordID>
<Channel>Application</Channel>
<Computer>FoxConnI</Computer>
<Security />
</System>
<EventData>
<Data>Renamer.exe</Data>
<Data>2.1.0.0</Data>
<Data>2a425e19</Data>
<Data>ntdll.dll</Data>
<Data>6.1.7100.0</Data>
<Data>49eea66e</Data>
<Data>c0000374</Data>
<Data>000c2cd3</Data>
<Data>1474</Data>
<Data>01c9f651c37cdfea</Data>
<Data>C:\Program Files\Ant Renamer\Renamer.exe</Data>
<Data>C:\Windows\SYSTEM32\ntdll.dll</Data>
<Data>09c6cdfe-6245-11de-9860-8000600fe800</Data>
</EventData>
</Event>

Posted: 2009-06-26 16:14:19
by antp
Windows file dialog does not seem very reliable to handle large amount of files. Or maybe it is due to the way it is implemented in Delphi. But I also encountered problems with that before. So in such case I think that the best is to use drag & drop or adding whole folders. Is there a reason for using the "add files" window for so many files actually?

Posted: 2009-06-26 17:11:40
by rgbigel
The reason is that I have previously selected an initial directory, which happens to be large. I normally then use the pattern matching provided, ie I am using the file *_* to get all those not renamed before. That set is much smaller, but before I get there, the bug occurs. This was different when I had fewer files....
The trouble is that the normal explorer does not support patterns like *_*. I hate picking them out manually.
Thanks for your quick reply,

Posted: 2009-06-28 12:41:04
by antp
Indeed I did not think to that possibility, as the file manager that I use allows filters (Altap Salamander).
Filters when adding files is one of the features that I should add to Ant Renamer, but in the meantime I do not really know how you could bypass this problem :/