delphi package - madRes, madTools, madStrings, ...
cool_tester
Posts: 75 Joined: Sun Oct 31, 2004 5:45 am
Post
by cool_tester » Sat Nov 06, 2004 4:37 pm
When updating the icon group with teh option to delete the icon, Madres deletes all resources and the exe becomes unsusable, gives an AV ....
The Following produces a bad exe
Code: Select all
update := BeginUpdateResourceW(StringToOleStr(ExtractFilePath(Application.ExeName) +edit1.text), true);
and it seems to work ok with the flag set to false:
Code: Select all
update := BeginUpdateResourceW(StringToOleStr(ExtractFilePath(Application.ExeName) +edit1.text), false);
Is that a bug?
PS: It works fine when used in Resource Editor....
madshi
Site Admin
Posts: 10766 Joined: Sun Mar 21, 2004 5:25 pm
Post
by madshi » Sun Nov 07, 2004 4:55 pm
I guess that's a bug in madRes. I'll fix it in a later version.
madshi
Site Admin
Posts: 10766 Joined: Sun Mar 21, 2004 5:25 pm
Post
by madshi » Thu Jun 09, 2005 8:11 am
Sorry for the very (very very) late response. I've finally found the time to check this problem out - but for me everything works fine. Can you still reproduce the problem? Maybe the exe crashes because it expects the resources to be there, while you removed them?