How to find out amount of free resources (gdi resources, handles, system resources) 
Author Message
 How to find out amount of free resources (gdi resources, handles, system resources)

My MFC-program sometimes crashes, because Windows is out off  resources
(handles and/or gdi-resources).
I can watch this using the "resource-monitor" RSRCMTR.EXE from outside my
program (I don't know whether RSRCMTR.EXE  comes with Win98 or with
MSVisualC++ - it's "just there" on my computer)

But how can I find out the amount of avaliable resources at runtime?

Thanks

Gert



Sat, 26 Oct 2002 03:00:00 GMT  
 How to find out amount of free resources (gdi resources, handles, system resources)
Use GetFreeSystemResources (unfortunately 16-bit)
if you are familiar with VB MSDN Article ID: Q190217 will help
or see "Q155763 : HOWTO: Call 16-bit Code from 32-bit Code on Windows
95"

Dmitri



Quote:
> My MFC-program sometimes crashes, because Windows is out off
resources
> (handles and/or gdi-resources).
> I can watch this using the "resource-monitor" RSRCMTR.EXE from
outside my
> program (I don't know whether RSRCMTR.EXE  comes with Win98 or with
> MSVisualC++ - it's "just there" on my computer)

> But how can I find out the amount of avaliable resources at runtime?

> Thanks

> Gert

Sent via Deja.com http://www.deja.com/
Before you buy.


Sun, 27 Oct 2002 03:00:00 GMT  
 How to find out amount of free resources (gdi resources, handles, system resources)
Use
        GlobalMemoryStatus(..) for 32-bit apps.

Cheers
Check Abdoul
------------------

Quote:

> Use GetFreeSystemResources (unfortunately 16-bit)
> if you are familiar with VB MSDN Article ID: Q190217 will help
> or see "Q155763 : HOWTO: Call 16-bit Code from 32-bit Code on Windows
> 95"

> Dmitri



> > My MFC-program sometimes crashes, because Windows is out off
> resources
> > (handles and/or gdi-resources).
> > I can watch this using the "resource-monitor" RSRCMTR.EXE from
> outside my
> > program (I don't know whether RSRCMTR.EXE  comes with Win98 or with
> > MSVisualC++ - it's "just there" on my computer)

> > But how can I find out the amount of avaliable resources at runtime?

> > Thanks

> > Gert

> Sent via Deja.com http://www.deja.com/
> Before you buy.



Sun, 27 Oct 2002 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. How to find out amount of free rsyste/user-resources

2. Free GDI Resources (went to the wrong thread :-( )

3. System Resource CPU/MEM/GDI

4. System & GDI resource problems

5. Counting GDI objects or System resources

6. Q: System Resource CPU/MEM/GDI

7. finding free system, GDI, and User

8. error handling and freeing resources using setjmp/longjmp

9. Free System Resources

10. Get Free System Resources

11. Checking System Resources Free

12. Large amounts of resources

 

 
Powered by phpBB® Forum Software