Print Page | Close Window

10.4 Static Link Compile Error

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=5962
Printed Date: 19 June 2025 at 5:32am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: 10.4 Static Link Compile Error
Posted By: KFournier
Subject: 10.4 Static Link Compile Error
Date Posted: 02 January 2007 at 12:45pm
I just switched over to 10.4 using Visual C++ 6.0. I get the following compiler error (or similar) for every file referencing the toolkit:
 
c:\program files\microsoft visual studio\vc98\mfc\include\afxtempl.h(1276) : fatal error C1076: compiler limit : internal heap limit reached; use /Zm to specify a higher limit
        c:\program files\codejock software\mfc\xtreme toolkitpro v10.4\source\common\xtpsmartptrinternalt.h(110) : while compiling class-template member function 'struct CMap<struct _TREEITEM *,struct _TREEITEM *,int,int>::CAssoc *__thiscall CMap<struct _TREEITEM *,struct _TREEITEM *,int,int>::NewAssoc(void)'
 
Any ideas? It says I can increase the internal heap limit, but I am leary of this since I've never had a problem before.


-------------
Kevin R. Fournier
SRP Computer Solutions, Inc.



Replies:
Posted By: KFournier
Date Posted: 02 January 2007 at 12:53pm

I went ahead and took the error's advice of setting /Zm. It seems to work, so I won't freak out about it. Still, if anyone has any thoughts on whether or not it's better to avoid using /Zm, I'd sure like to know.



-------------
Kevin R. Fournier
SRP Computer Solutions, Inc.


Posted By: Oleg
Date Posted: 02 January 2007 at 4:14pm
Thanks for sharing solution.

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Suyambu2002
Date Posted: 30 April 2007 at 8:42am

Hi

I do have the same problem.
How to change /zm option?



-------------
Best Regards
Suyambu


Posted By: Oleg
Date Posted: 01 May 2007 at 1:02am
Hi,
 
Add /Zm200 in your C++ settings.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Suyambu2002
Date Posted: 02 May 2007 at 6:02am
Hi Oleg

Thanks.

It works fine.


-------------
Best Regards
Suyambu


Posted By: Suyambu2002
Date Posted: 02 May 2007 at 6:03am
Hi Oleg

Thanks.

It works fine. Have a doubt, why do we have to change our /zm option only for XTreme toolkit 10.4 version?
Any idea?


-------------
Best Regards
Suyambu


Posted By: Oleg
Date Posted: 02 May 2007 at 9:12am
Hi,
Toolkit grows - compiller failed to create precompilled headers for all our includes - see description of error ("compiler limit : internal heap limit reached;")
 
You can help compiller to exclude some modules that you don't use in your application - add for example
 
#define _XTP_EXCLUDE_CALENDAR
before you include toolkit
 
 


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Suyambu2002
Date Posted: 02 May 2007 at 1:23pm
Thanks oleg
Appreciate your immediate replies on any topic.


-------------
Best Regards
Suyambu


Posted By: Suyambu2002
Date Posted: 22 May 2007 at 1:12am
Hi Oleg
 
When I compile my other workspace with 10.4 XT - am getting the same error.
 
"c:\program files\microsoft visual studio\vc98\mfc\include\afxtempl.h(1278) : fatal error C1076: compiler limit : internal heap limit reached; use /Zm to specify a higher limit
        c:\program files\codejock software\mfc\xtreme toolkitpro v10.4.2\source\common\xtpsmartptrinternalt.h(110) : while compiling class-template member function 'struct CMap<unsigned int,unsigned int,class CXTPImageManagerIcon *,class CXTPImageMa
nagerIcon *>::CAssoc *__thiscall CMap<unsigned int,unsigned int,class CXTPImageManagerIcon *,class CXTPImageManagerIcon *>::NewAssoc(void)'"
 
I have tried giving /zm200 but it doesn't help out.
Can you please help me out to solve this problem.


-------------
Best Regards
Suyambu


Posted By: Oleg
Date Posted: 22 May 2007 at 7:42am
Hi,
 
What about /zm300 ?
 
Also please try to add
 
#define _XTP_EXCLUDE_CALENDAR
#define _XTP_EXCLUDE_REPORTCONTROL
before include toolkit.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Suyambu2002
Date Posted: 23 May 2007 at 3:21am
Hi Oleg
 
It works now.
 
Thanks.


-------------
Best Regards
Suyambu



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net