Sometimes i get the message "Not enough Windows GDI memory for this
operation".
I have two questions regarding this message:
1. does the toolbook send this message or Windows?
2. Can i know before the message appears that it goes to happened? if yes
how?
3. What can be done to avoid the situation?
Thanks a lot,
Ronen.
-------------------------------------
E-mail: rone...@mail.netvision.net.il
Date: 21/1/97
Time: 10:51:14 AM
This message was sent by Chameleon
-------------------------------------
Ronen,
Some questions to your questions :
- what version of Toolbook do you use ? I faced sometimes this message
with the 3.0, but far less with the 4.0.
- what kind of images, and in which amount, do you display ?
some answers
1) To my humble opinion, its a Toolbook message.
2) You can control call the user.dll to get the GDI memory level (in
percentage).
Ask more if you need some code.
3) reduce the objects number of size. Buy some VRAM ?
--
Arnaud Lacaze-Masmonteil
InfoTronique SARL
Multimedia Publishing
6, passage Tenaille
75014 PARIS FRANCE
call us : 143956208
fax us : 143956207
Visit our site : http://www.infotronique.fr
mail us : mailto:ecrive...@infotronique.fr (commercial and personnal
mails) or
mailto:infotr...@infotronique.fr (technical mails)
1. I think Windows does
2. I use the following script to detect my GDI resources (for example in
my enterpage handler)
linkDLL "USER"
WORD GetFreeSystemResources(WORD)
end
put GetFreeSystemResources(1) & "%" into commandwindow
unlinkDLL "USER"
if some page takes up a lot of GDI resources and those resources are not
released. Then you
know which pages have problems.
3. You might have some corrupted graphics on some pages. Use the script
above to find those pages
and delete the corrupted graphics. You can try to replace the deleted
graphics with something new.
-hope this helped
-Ilpo-
Ronen,
We had the same problem when we used to use Ver 3.0 and I'll bet that's
what you have. It wasn't a small problem (we were going to switch
development programs). Our programs are very graphic intensive and I think
that had a lot to do with it.
Version 4 took care of that in our case. (we may have updated Windows at
that time too).
There are several programs (Shareware Included that have system monitors in
them. We use to run these and flip through the book. You will notice a
page or maybe a background that has a large affect on GDI.
Try going through your book and look for any pages or background that are
at Zero %. Have you ever done this? We once had a book that had 232
objects beyond the 0%. This seems to affect GDI. We never got a good
answer on this, but that was the first thing we checked with ver 4.
What ver of Windows are you using? As I remember this also had a large
affect. The later the better.
Don't give up this can now be Whipped!
Ron Cawood
The CaHill Company
>> 3. What can be done to avoid the situation?
>>
I think this can happen when you call another book(s) & don't close the
calling book.
May also be worth looking at your graphics drivers particularly if you are
using Win 3.1. Try changing to the standard VGA driver & see if the problem
goes away.
Geoff Pearson
I.Q. Tech.
If you're running win31 try to free up some memory below the 640K barrier.
Part of the GDI memory is allocated there if my momory is correct..
-------
mvg Wim van der Vegt / Open universiteit
> > Ronen Zivli wrote:
> > >
> > > Hi,
> > >
> > > Sometimes i get the message "Not enough Windows GDI memory for this
> > > operation".
> > >
> > > I have two questions regarding this message:
> > > 1. does the toolbook send this message or Windows?
> > > 2. Can i know before the message appears that it goes to happened? if
> yes
> > > how?
> > > 3. What can be done to avoid the situation?
> > >
> > > Thanks a lot,
> > > Ronen.