robocoder
17th July 2006 23:27 UTC
File instructions in functions
I am wondering if files added within functions get placed in some special section. I try the SectionGetSize on my only section and it returns a 0 size. If I remove the file statments from my function and put them in the section directly SectionGetSize returns the correct size. Am I missing something?
Thanks,
-=Robo=-
Comm@nder21
17th July 2006 23:39 UTC
nope.
functions are either called by sections, other functions or by special events (callback functions).
the files inside functions are packed just as files inside sections but are not counted to any section because the compiler does not check whether a function is called by exactly one section.
robocoder
18th July 2006 00:10 UTC
Thanks for your reply. That explains it.
So what your saying is that I am unable to find out what the size of these in-function files is. Boy, that sucks. I'd really like to be able to find out. Any ideas?
Seems like a GetNonSectionSize would be a good thing to add. Or create a psuedosection internally so you can get at this.
-=Robo=-
Afrow UK
18th July 2006 11:15 UTC
You shouldn't put them in a Function anyway, because your progress bar won't move unless the File instructions are in your Sections.
Why do you need them in a Function exactly?
-Stu