![]() |
10.4 Static Link Compile Error |
Post Reply ![]() |
Author | |
KFournier ![]() Groupie ![]() ![]() Joined: 17 August 2004 Location: United States Status: Offline Points: 15 |
![]() ![]() ![]() ![]() ![]() 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. |
|
![]() |
|
KFournier ![]() Groupie ![]() ![]() Joined: 17 August 2004 Location: United States Status: Offline Points: 15 |
![]() ![]() ![]() ![]() ![]() |
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. |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Thanks for sharing solution.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Suyambu2002 ![]() Newbie ![]() ![]() Joined: 28 April 2006 Location: India Status: Offline Points: 15 |
![]() ![]() ![]() ![]() ![]() |
Hi I do have the same problem. |
|
Best Regards
Suyambu |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Add /Zm200 in your C++ settings.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Suyambu2002 ![]() Newbie ![]() ![]() Joined: 28 April 2006 Location: India Status: Offline Points: 15 |
![]() ![]() ![]() ![]() ![]() |
Hi Oleg
Thanks. It works fine.
|
|
Best Regards
Suyambu |
|
![]() |
|
Suyambu2002 ![]() Newbie ![]() ![]() Joined: 28 April 2006 Location: India Status: Offline Points: 15 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
Suyambu2002 ![]() Newbie ![]() ![]() Joined: 28 April 2006 Location: India Status: Offline Points: 15 |
![]() ![]() ![]() ![]() ![]() |
Thanks oleg
Appreciate your immediate replies on any topic.
|
|
Best Regards
Suyambu |
|
![]() |
|
Suyambu2002 ![]() Newbie ![]() ![]() Joined: 28 April 2006 Location: India Status: Offline Points: 15 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
Suyambu2002 ![]() Newbie ![]() ![]() Joined: 28 April 2006 Location: India Status: Offline Points: 15 |
![]() ![]() ![]() ![]() ![]() |
Hi Oleg
It works now.
Thanks.
|
|
Best Regards
Suyambu |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |