BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

delphi 7 program with Win98 memory error

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.misc
View previous topic :: View next topic  
Author Message
amber_michelle
Guest





PostPosted: Tue Mar 01, 2005 6:44 pm    Post subject: delphi 7 program with Win98 memory error Reply with quote



I have been posting this message around on serveral different
newsgroups hoping to find the guru who knows the answer. Any
suggestions on a solution or a better place to post would be greatly
appreciated. Thanks.

We have created a program, with Delphi 7, that is approx. 9.8 MB and
our
problem is that it can not open on Win98. It works on XP and 2000 just
fine. The errors are below what appears on the screen. The system has
512
MB of Ram, so it must not be that memory it is talking about. We did a
little playing around with the software and removed 1 data module and
then
it seemed to work. I then readded that module and removed another one
and
that seemed to work too. So, we are not sure if it is related to the
number
of data modules we have in the package. We probably has approx. 10.
It
seems strange the software can not even open. As far as we know we are
not
trying to open or call anything on the initial opening of the software.
I
do auto create 2 forms, but the rest should be created on demand. Any
ideas
would be great. Thank you for your time.

Amber

Error Messages:
There is not enough memory to start C:Program Files ........
Quit some programs, and then try again

There is not enough free memory to run this program. Quit one or more
programs, and then try again.

Delphi 7 BDE 5.11

Back to top
Bruce Roberts
Guest





PostPosted: Tue Mar 01, 2005 7:10 pm    Post subject: Re: delphi 7 program with Win98 memory error Reply with quote




"amber_michelle" <amber (AT) pcpoll (DOT) com> wrote


Quote:
We have created a program, with Delphi 7, that is approx. 9.8 MB and
our
problem is that it can not open on Win98. It works on XP and 2000 just

Error Messages:
There is not enough memory to start C:Program Files ........
Quit some programs, and then try again

There is not enough free memory to run this program. Quit one or more
programs, and then try again.

There is a known problem with W95/98 and D3 executables. Apparently the D3
linker sets something incorrectly in the exe header. I had thought that the
problem was fixed in later Delphi releases, but this, IIRC, was the message
that error caused.

You don't indicate what your virtual memory settings are. Nor do you provide
any information on how much data space is being used by the app. These might
be factors.



Back to top
amber_michelle
Guest





PostPosted: Tue Mar 01, 2005 8:07 pm    Post subject: Re: delphi 7 program with Win98 memory error Reply with quote



Virtual memory started at letting Windows manage the file with 5 GB
free and 512 MB RAM. Other settings tried are 768 both min and max
settings and also 3 GB min and max.

Please let me know what you mean by data space. We are just trying to
display the main menu screen. The software app. links to databases in
DBISam to display the data values when the databases are accessed.

Your post is very interesting. Our previous verision of our software
was designed with D3 and paradox and we had the same problem when we
created apps. around 10 MB. On D3 we found that if we removed forms
or reused forms by changing lables, db editbox links, etc. on the fly
we were able to add things to the program. We were not expecting to
encounter this error with D7, so we are trying to figure out what we
can do to fix things. Thank you again for your time and insight.

Amber

Back to top
delphied dude
Guest





PostPosted: Thu Mar 03, 2005 11:28 pm    Post subject: Re: delphi 7 program with Win98 memory error Reply with quote

don't know if this helps but i was reading somewhere that if you have
image resources embedded in your exe then it might be worth considering
creating a seperate DLL for them to keep the exe size down.

Back to top
Markku Nevalainen
Guest





PostPosted: Fri Mar 04, 2005 10:18 pm    Post subject: Re: delphi 7 program with Win98 memory error Reply with quote

amber_michelle wrote:
Quote:

little playing around with the software and removed 1 data module and
then it seemed to work. I then readded that module and removed another one
and that seemed to work too. So, we are not sure if it is related to the
number of data modules we have in the package. We probably has approx. 10.

You are asking us, what is it that is kneeling your app on W98 machines.

Well, I would like to bounce the question back: "While you above have
proved that it's not the number of Datamodules, then what is it? Which
Form or Unit it is, that actually will kneel it down?"

I once tried to load one commercial application that was designed for
W2k/XP to a W98 machine and got error "This application does not run in
DOS mode", so also you may face just about anything.
I can also slightly quess that your problem on W98 may related to some
NT specific API call or something. Third party libraries, designed for
XP platform, are always suspectible.

But I do not have your application, so I could start ripping down the
9.8 MB package. And check at which point the error messages will
disappear.
I am pretty sure that at some point the errors will disappear, and you
are able to locate the critical Form.

You suspected that EXE size alone would do it. I would not bet on that,
I have succesfully run 7 MB D6 apps on W98 machines for years. Even old
16-bit WINWORD.EXE that was planned for Win 3.11 had some 6.2 MB
executable etc.

Quote:
There is not enough memory to start C:Program Files ........
Quit some programs, and then try again

That is a common error message if you for instance try to load a broken
EXE file to a W9x machine. Maybe some call inside your EXE bangs the
file location pointer and makes W98 to re-load something or some parts
endlessly.

It could also be a known W9x Out of Resources problem. If you have for
instance hundreds of nice 32k colour depth, XP-decorated controls on
your MainForm. And also some other applications open on the background.

I am sorry, but I do not have better advice or suggestion than this.
Just plain work, ripping it down until, you have located some smaller
chunk where the final bug or incompatibility lies.

Markku Nevalainen

Back to top
pr
Guest





PostPosted: Sat Mar 05, 2005 4:31 am    Post subject: Re: delphi 7 program with Win98 memory error Reply with quote


"amber_michelle" <amber (AT) pcpoll (DOT) com> wrote

Quote:
Virtual memory started at letting Windows manage the file with 5 GB
free and 512 MB RAM. Other settings tried are 768 both min and max
settings and also 3 GB min and max.

Please let me know what you mean by data space. We are just trying to
display the main menu screen. The software app. links to databases in
DBISam to display the data values when the databases are accessed.

Your post is very interesting. Our previous verision of our software
was designed with D3 and paradox and we had the same problem when we
created apps. around 10 MB. On D3 we found that if we removed forms
or reused forms by changing lables, db editbox links, etc. on the fly
we were able to add things to the program. We were not expecting to
encounter this error with D7, so we are trying to figure out what we
can do to fix things. Thank you again for your time and insight.


My guess is that you are somehow running out of resources.
With Win98 there is a 64kb limit, no matter how much memory
of any other kind you have. This is a legacy of its 16 bit DOS origin.
XP and 2000 have no such limit.
Load the resource meter and use it to check this theory.

PR




Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.misc All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.