flat assembler
Message board for the users of flat assembler.

Index > Main > Bug (?) with resources

Author
Thread Post new topic Reply to topic
WiESi



Joined: 15 May 2006
Posts: 14
Location: Austria
WiESi
Hello!

I made a simple Win32-application without resource section, but when I add an empty resource section the program doesn't run anymore. When I fill the resource section with data it runs again. Is this a bug in fasm or is this just my mistake?

WiESi

_________________
JavaAmp
Post 15 May 2006, 16:59
View user's profile Send private message Visit poster's website Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3170
Location: Denmark
f0dder
I wouldn't be surprised if it's a windows issue - windows is VERY picky about the resource section of a PE file. Which windows version did you try?

I guess adding an empty resource section will make FASM set the resource PE directory entry to point at the empty section. The empty section will (obviously) not hold a correct resource tree, and some windows versions will bitch terribly at this.
Post 15 May 2006, 17:30
View user's profile Send private message Visit poster's website Reply with quote
WiESi



Joined: 15 May 2006
Posts: 14
Location: Austria
WiESi
I tried it under Windows XP Home Edition SP 1. I think you could be right with your explanation as I observed other strange behaviours under Windows.
Post 15 May 2006, 20:06
View user's profile Send private message Visit poster's website Reply with quote
UCM



Joined: 25 Feb 2005
Posts: 285
Location: Canada
UCM
There was another topic about this, empty resource sections defined with "section '.blah' data resource readable" just dont work well with Windows.
Post 15 May 2006, 21:20
View user's profile Send private message Reply with quote
Reverend



Joined: 24 Aug 2004
Posts: 408
Location: Poland
Reverend
I once had similar problem. I just forgot that in fasm you have to specify all sections' characteristics yourself. Check if it's readable
Post 25 May 2006, 18:08
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.