Jump to content

Did you fix this


Recommended Posts

Guest Adam Saunders
Posted

Mate,

 

I have the exact same problem, but on a much larger scale...

 

Did you work out how to fix this problem..???

 

Thanks

 

 

EggHeadCafe - .NET Developer Portal of Choice

http://www.eggheadcafe.com

  • Replies 1
  • Created
  • Last Reply

Popular Days

Posted

Re: GDI Object leak when connected using mstsc?

 

Re: GDI Object leak when connected using mstsc?

 

Hi,

 

When connected via Remote Desktop a different video

driver is active. When you disconnect the active desktop

is switched to the Disconnect desktop object, which is a

dummy object that prevents rendering.

 

Does this issue occur if your application is running on Vista?

 

Have you tested the two hotfixes below:

 

A GDI handle leak occurs in Windows XP and in Windows

Server 2003 when an application frequently calls the

CreateRectRgn function

 

http://support.microsoft.com/kb/939884

 

MFC applications leak GDI objects on computers that are

running Windows XP

 

http://support.microsoft.com/kb/319740

 

The article below may assist you in tracking down the source

of the leak:

 

Detect and Plug GDI Leaks in Your Code with Two Powerful

Tools for Windows XP

 

http://msdn.microsoft.com/msdnmag/issues/03/01/GDILeaks

 

I recommend contacting PSS for help solving this issue. If

you are an MSDN subscriber you could use one of your

included technical support incidents. If not and this turns

out to be a bug in windows you will not be charged.

 

Another newsgroup you may want to consider is:

 

microsoft.public.win32.programmer.gdi

 

-TP

 

Adam Saunders wrote:

> Mate,

>

> I have the exact same problem, but on a much larger scale...

>

> Did you work out how to fix this problem..???

>

> Thanks

>

>> QSIDeveloper wrote:

>> I hope I'm in the right area to post this. if not, I apologize and please

>> help me to get it right... Anyway, I have a process that basically loads a

>> TIF page into a DIB, manipulates the DIB, and writes it back to a TIF file.

>> I've discovered that if I run this program on the physical pc, the GDI

>> objects remain constant (usually a value of 5). If someone connects to this

>> pc using "mstsc -v:pcname /F -console", suddenly the GDI Objects start to

>> increase on this process. As soon as the mstsc connection is terminated, it

>> stops growing. Upon reconnect, it begins to grow again. I am only seeing

>> this on my W2K3 Server pc. I do have the latest updates and SP2 installed.

>> Any ideas?


×
×
  • Create New...