Mail Archives: djgpp/1999/10/19/14:47:50
Hello,
I have a problem with saving/restoring the VESA video state under
Win95/Win98 (in a program using the go32v2 dos extender). The saving
and restoring itself goes fine, but after the restore, WinTop shows the
the thread of the dos box keeps 30% of the processig power of the
system (the same symptom on a K6-2/300 and a 6x86/166).
Also, after the program is run, we loose 216k of XMS in the dos box. It
is not a memory leak in the program though, because running it multiple
times doesn't make you loose extra memory, this only happens after the
first run.
I must be doing something wrong, because running another program that
uses vesa afterwards removes the 30% system usage. No threads or
anything are launched (I couldn't find anything about this on deja.com,
the web nor in Microsoft's knowledge base)
Thanks in advance for any suggestions,
Jonas
PS: if you are interested in the source: it is part of the new graph
unit of the Free Pascal Compiler. To get it, go to
<http://www.freepascal.org>, download the RTL sources from the
development section and have a look at the file vesa.inc in the dir
RTL\GRAPH\INC (procedures SaveStateVesa and RestoreStateVesa).
- Raw text -