|
| Re: Win98 report a D2006 compiled exe to be corrupt - no problem with D7 |
 |
15 Feb 2007 02:19:08 -0800 |
On 15/02/2007 10:21:41, Gen wrote:
> The problem is that the exe compiled with D2006 does not run on
> Windows98 - it is reported to be corrupt (exe size ~16.5MB).
Windows 98 has a much lower limit on resources per module. The
easiest way around this is to break your project into several
packages.
--
Yorai Aminov (TeamB)
(TeamB cannot answer questions received via email.)
Shorter Path - http://www.shorterpath.com
|
| Post Reply
|
| Win98 report a D2006 compiled exe to be corrupt - no problem with D7 |
 |
Thu, 15 Feb 2007 10:21:41 +020 |
Hello there,
I migrated recently from Delphi 7 to Delphi 2006, because finally there was
a Delphi better than D7.
I managed to convert my project successfully and everything was going pretty
smooth until this strange problem occured.
The problem is that the exe compiled with D2006 does not run on Windows98 -
it is reported to be corrupt (exe size ~16.5MB).
So I decided to take something out of the project - about 90 forms. This
time Windows said there was not enough memory, etc. and didn't start the exe
again (exe size ~15.5MB).
I finally decided to take out a whole module and this time the exe managed
to start (exe size ~13.3MB).
The project is not a small one and is "All in one" type (no dlls, just
one
exe), but there was not a problem with D7 (last exe size ~14.8MB).
After surfing the web for information I managed to find nothing and I am
confused where to start looking for the problem.
The workaround was to make a separate light version of the program for
Windows 98.
Now I have 2 versions and everything is much more complicated.
I would appreciate any help on this matter.
Thank you in advance.
|
| Post Reply
|
| Re: Win98 report a D2006 compiled exe to be corrupt - no problem with D7 |
 |
Wed, 21 Feb 2007 11:34:44 +020 |
"Yorai Aminov (TeamB)" <yaminov@gmail.com> wrote in message
news:xn0f2hkz23lmt49000@newsgroups.borland.com...
> On 15/02/2007 10:21:41, Gen wrote:
>
>> The problem is that the exe compiled with D2006 does not run on
>> Windows98 - it is reported to be corrupt (exe size ~16.5MB).
>
> Windows 98 has a much lower limit on resources per module. The
> easiest way around this is to break your project into several
> packages.
>
> --
> Yorai Aminov (TeamB)
> (TeamB cannot answer questions received via email.)
> Shorter Path - http://www.shorterpath.com
> Yorai's Page - http://www.yoraispage.com
Where can I find detailed info on Windows 98 resource limitations?
I suppose it was just a coincidence that D7 compiled exe worked on Windows98
while a D2006 one didn't.
Probably I have just reached the critical point on resources` size, but I
really need to "prove it scientifically" :))
|
| Post Reply
|
| Re: Win98 report a D2006 compiled exe to be corrupt - no problem with D7 |
 |
21 Feb 2007 12:09:12 -0800 |
On 21/02/2007 11:34:44, Gen wrote:
> Where can I find detailed info on Windows 98 resource limitations?
I don't have a specific link on that issue, but here are a couple
that mention the fact that Windows 9x creates a shadow 16-bit
resource for every 32-bit resource, which makes 32-bit resources
suffer the same limitations as 16-bit resources:
http://support.microsoft.com/kb/q182819/
http://blogs.msdn.com/oldnewthing/archive/2003/08/07/54613.aspx
--
Yorai Aminov (TeamB)
(TeamB cannot answer questions received via email.)
Shorter Path - http://www.shorterpath.com
|
| Post Reply
|
|
|
|
|
|
|
|
|
|