![]() |
10.4 Static Link Compile Error |
Post Reply
|
| Author | |
KFournier
Groupie
Joined: 17 August 2004 Location: United States Status: Offline Points: 15 |
Post Options
Thanks(0)
Quote Reply
Topic: 10.4 Static Link Compile ErrorPosted: 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 |
Post Options
Thanks(0)
Quote Reply
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. |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 02 January 2007 at 4:14pm |
|
Thanks for sharing solution.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Suyambu2002
Newbie
Joined: 28 April 2006 Location: India Status: Offline Points: 15 |
Post Options
Thanks(0)
Quote Reply
Posted: 30 April 2007 at 8:42am |
|
Hi I do have the same problem. |
|
|
Best Regards
Suyambu |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 01 May 2007 at 1:02am |
|
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 |
Post Options
Thanks(0)
Quote Reply
Posted: 02 May 2007 at 6:02am |
|
Hi Oleg
Thanks. It works fine.
|
|
|
Best Regards
Suyambu |
|
![]() |
|
Suyambu2002
Newbie
Joined: 28 April 2006 Location: India Status: Offline Points: 15 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Suyambu2002
Newbie
Joined: 28 April 2006 Location: India Status: Offline Points: 15 |
Post Options
Thanks(0)
Quote Reply
Posted: 02 May 2007 at 1:23pm |
|
Thanks oleg
Appreciate your immediate replies on any topic.
|
|
|
Best Regards
Suyambu |
|
![]() |
|
Suyambu2002
Newbie
Joined: 28 April 2006 Location: India Status: Offline Points: 15 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Suyambu2002
Newbie
Joined: 28 April 2006 Location: India Status: Offline Points: 15 |
Post Options
Thanks(0)
Quote Reply
Posted: 23 May 2007 at 3:21am |
|
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 |