Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - 10.4 Static Link Compile Error
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

10.4 Static Link Compile Error

 Post Reply Post Reply
Author
Message
KFournier View Drop Down
Groupie
Groupie
Avatar

Joined: 17 August 2004
Location: United States
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote KFournier Quote  Post ReplyReply Direct Link To This Post Topic: 10.4 Static Link Compile Error
    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.
Back to Top
KFournier View Drop Down
Groupie
Groupie
Avatar

Joined: 17 August 2004
Location: United States
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote KFournier Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 02 January 2007 at 4:14pm
Thanks for sharing solution.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Suyambu2002 View Drop Down
Newbie
Newbie
Avatar

Joined: 28 April 2006
Location: India
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote Suyambu2002 Quote  Post ReplyReply Direct Link To This Post Posted: 30 April 2007 at 8:42am

Hi

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

Best Regards
Suyambu
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 01 May 2007 at 1:02am
Hi,
 
Add /Zm200 in your C++ settings.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Suyambu2002 View Drop Down
Newbie
Newbie
Avatar

Joined: 28 April 2006
Location: India
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote Suyambu2002 Quote  Post ReplyReply Direct Link To This Post Posted: 02 May 2007 at 6:02am
Hi Oleg

Thanks.

It works fine.
Best Regards
Suyambu
Back to Top
Suyambu2002 View Drop Down
Newbie
Newbie
Avatar

Joined: 28 April 2006
Location: India
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote Suyambu2002 Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Suyambu2002 View Drop Down
Newbie
Newbie
Avatar

Joined: 28 April 2006
Location: India
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote Suyambu2002 Quote  Post ReplyReply Direct Link To This Post Posted: 02 May 2007 at 1:23pm
Thanks oleg
Appreciate your immediate replies on any topic.
Best Regards
Suyambu
Back to Top
Suyambu2002 View Drop Down
Newbie
Newbie
Avatar

Joined: 28 April 2006
Location: India
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote Suyambu2002 Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Suyambu2002 View Drop Down
Newbie
Newbie
Avatar

Joined: 28 April 2006
Location: India
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote Suyambu2002 Quote  Post ReplyReply Direct Link To This Post Posted: 23 May 2007 at 3:21am
Hi Oleg
 
It works now.
 
Thanks.
Best Regards
Suyambu
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.055 seconds.