What version of ACT!?
Full build from Help | About
Main Topics
Browse All Topicshello, I have a client that has an issue with ActSage.exe crashing on client computers when GDI reaches 10,000 objects. Short of killing the process ActSage.exe and restarting the program is there any other way i can flush out the GDI objects to prevent Act from crashing?
The probles seems to stem from a .net 2.0 running on XP SP3. There is a patch for the issue on XP SP2 but is will not install on XP SP3.
Here is some additonal reference about the issue as it was explained to me.
There is a bug in Microsofts .NET 2.0 program which causes a memory leak (specifically of the GDI objects). When you google the bufferindex error, you can get to sites that talk about it. ACT uses .NET 2.0 to run, which is why you see these errors in ACT. If you had any other program that also uses .NET 2.0, you would see these same errors in that program over time. Here is a screen capture of the GDI objects from your machine when ACT gives that error. Once the GDI objects get to almost 10,000, it crashes:
The memory leak is specific around the graphical interface in other words, the more you move around and do stuff in ACT, the more graphical images are stored and then, at some point, it maxes out and you see the errors. Linda, you could watch this happen by keeping your task manager open as you navigate around ACT and watch the GDI number climb. When the GDI number gets close to 10,000, ACT will crash.
Microsoft developed a hotfix to correct this issue.
Microsoft also included that hotfix in their SP3 (Service Pack 3) release. You are on Service Pack 3. The bad news is that the hotfix doesnt work in the SP3 release. We tried to apply the hotfix separately but that wasnt possible as the hotfix first looked at your system and said, nope, dont need to install the hotfix as you already have it as part of SP3.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
I've dug a bit more deeply.
This is the patch you re referring to - http://support.microsoft.c
I'd be interested in hearing what MS might say if asked about that patch for SP3?
It also only seems to be a problem on some databases and some times... it seems quite inconsistent from the testing I've done and reports I've seen
There is also a default per-process limit of GDI handles. To change this limit, set the following registry value:
HKEY_LOCAL_MACHINE\S
I think the default is 0x2704 (Hex), which is 9,988 in decimal that you see in the task manager. You might want to click the "Decimal" box when making a change to increase it
This value can be set to a number between 256 and 65,536 (Decimal)
This won't solve the problem it just kinda hides it...
Have a look at http://kb.sagesoftwareonli
Changing the GLI Handles to 30k did not help. I tried to contact Microsoft concerning this but am having trouble submitting a business trouble ticket as I am only a registered parter not yet certified. Funny I never had this problem when contacting MS on a server problem. Anyway I have this nice summary of the problem I was ready to submit to Microsoft.
Any other help would be appreciated.
Here is my summary of the problem:
My client is running Windows XP Professional SP3 and is having trouble with ACT! by Sage Premium 2009 (11.0) Version 11.1.183.0, Hotfix 1 working with Office 2003.
ACT! Randomly crashes several times per day with the following error, it also crashes when trying to use the ACT! feature Attaching Emails to Contacts in ACT! 2009 where if you click on an email contact in ACT! It will open a email composer in Outlook and add the content of the email to the ACT! Customer record. The issue is only present on computers running XP SP3. Older computers on XP SP2 are not having this issue.
Error: Act! Has encountered an error. Please shut down the program.
The ACT! Consultant has indicated that there is a bug in .NET 2.0 which is causing a problem and there is a Microsoft hot fix to address the issue, however the hotfix only works on XP SP2. Not XP SP3. Here is the consultants explanation;
I wanted to send you an email with an explanation of the root cause of all of the error messages you have been seeing. Even though you see them in ACT, they are not really because of ACT. Ill try to avoid all of the techno mumbo-jumbo in this explanation&
There is a bug in Microsofts .NET 2.0 program which causes a memory leak (specifically of the GDI objects). When you google the bufferindex error, you can get to sites that talk about it. ACT uses .NET 2.0 to run, which is why you see these errors in ACT. If you had any other program that also uses .NET 2.0, you would see these same errors in that program over time. Here is a screen capture of the GDI objects from your machine when ACT gives that error. Once the GDI objects get to almost 10,000, it crashes:
The memory leak is specific around the graphical interface in other words, the more you move around and do stuff in ACT, the more graphical images are stored and then, at some point, it maxes out and you see the errors. Linda, you could watch this happen by keeping your task manager open as you navigate around ACT and watch the GDI number climb. When the GDI number gets close to 10,000, ACT will crash.
Microsoft developed a hotfix to correct this issue.
Microsoft also included that hotfix in their SP3 (Service Pack 3) release. You are on Service Pack 3. The bad news is that the hotfix doesnt work in the SP3 release. We tried to apply the hotfix separately but that wasnt possible as the hotfix first looked at your system and said, nope, dont need to install the hotfix as you already have it as part of SP3.
I have tried the following to resolve the issue.
Task: upgraded Lindas computer to use .NET 3.3 SP1.
Errors persist
Increased the GDI Objects. Using Linda as test I increased the GDI objects from 10000 to 30000. I also un-installed the .net 3.5 sp1 reverting back to .net 2.0.
Error: An error occurred while attempting to connect to home text/html. Please try again.
Error: ACT! By Sage has encountered a problem and needs to close. We are sorry for the inconvenience.
The ACT! Consultant gives the following as options. I am seeking assistance from Microsoft on this issues to find a better solution that reverting back to XP SP2.
The options are:
- Continue as you have been and when ACT creates the error, close it (which frees up the GDI objects) and then re-open it.
- Do a complete reinstall of Windows XP up to SP2. Then apply the hotfix rather than SP3.
I've run it for ages with SP3, so it's not completely SP3.
Also, if sending the abover to Microsoft, you should include the link to their KB telling them about the Hotfix (I posted that above).
The other thing I'd try is to uninstall ACT!, uninstall SQL, uninstall and clean out .Net (all versions). Then reinstall .Net, re-boot, and finally reinstall ACT! again and any patches/hotfix.
This will fix a lot of .Net related issues
I am going to try what you recomended. Should I apply SP3 or just patch XP SP2 less SP3?
"The other thing I'd try is to uninstall ACT!, uninstall SQL, uninstall and clean out .Net (all versions). Then reinstall .Net, re-boot, and finally reinstall ACT! again and any patches/hotfix.
This will fix a lot of .Net related issues"
It could also be a damaged .Net.
This is a procedure I wrote to get the most clean install possible:
Uninstall any version of ACT! from Windows Control Panel | Add/Remove Programs
Download and run the Uninstaller.exe from the ACT! KB 19338 (the exe, not the manual uninstall)
Uninstall .Net Framework (all versions) - this does NOT apply to Vista users as .Net 2.0 is part of the OS and can't be uninstalled
Use this tool to fully remove .Net - http://blogs.msdn.com/aste
Unins
Uninstall MSXML 6 Services from Control Panel if it's still there
Perform a Selective restart with MSCONFIG as per ACT! KB 14499
Install .Net 3.5 Framework (only 2.0 for ACT! 9/10/11) as per KB 19628 (only XP, not Vista)
Reboot after installing .Net before installing ACT!
Install ACT! full install
Install latest ACT! patch if the previous install was a previous build and then any Hotfix
Check task manager to make sure .Net optimisation is finished (look for the setup, msiexec or ngen) - might take up to 10 minutes
Restore from Selective Startup Mode with MSCONFIG
Reboot
Takes time, but will give the cleanest and most stable install.
For the KB numbers, go here http://tinyurl.com/34xq94 - put the number in "Search Text" and change "Search By" to Answer ID
Business Accounts
Answer for Membership
by: ComputerTechiePosted on 2009-08-12 at 16:29:52ID: 25084167
What happen if you update the dot net to 3.5; have you tried this ?
CT