maybe a bug in MadRes

delphi package - madRes, madTools, madStrings, ...
Post Reply
cool_tester
Posts: 75
Joined: Sun Oct 31, 2004 5:45 am

maybe a bug in MadRes

Post by cool_tester »

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: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

I guess that's a bug in madRes. I'll fix it in a later version.
cool_tester
Posts: 75
Joined: Sun Oct 31, 2004 5:45 am

Post by cool_tester »

Thanks.
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

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?
Post Reply