Print Page | Close Window

"Invalid allocation size"

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=12740
Printed Date: 21 December 2024 at 8:08pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: "Invalid allocation size"
Posted By: znakeeye
Subject: "Invalid allocation size"
Date Posted: 20 November 2008 at 8:55am
XTP 12.0.1 (dynamically linked), VS 2008 SP1, XP SP3.
 
VERIFY(CXTPFrameWnd::Create(NULL,  szText, lpszWindowName, WS_POPUP | WS_OVERLAPPED | WS_CAPTION | WS_BORDER | WS_SIZEBOX | WS_SYSMENU | WS_VSCROLL, rect, pParent, NULL));
 
After that line is executed (in the constructor of our CXTPFrameWnd-derived window), we get this in the Output window:
HEAP[MyApp.exe]: Invalid allocation size - FFFFFFF8 (exceeded 7ffdefff)
HEAP[MyApp.exe]: Invalid allocation size - FFFFFFF8 (exceeded 7ffdefff)
HEAP[MyApp.exe]: Invalid allocation size - FFFFFFF8 (exceeded 7ffdefff)
 


-------------
PokerMemento - http://www.pokermemento.com/



Replies:
Posted By: Oleg
Date Posted: 20 November 2008 at 9:19am
Hi,
Maybe you build toolkit before you installed Service Pack for vc2008 ? if so, try rebuild it again.


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


Posted By: znakeeye
Date Posted: 20 November 2008 at 2:18pm
Damn, you always come up with great answers :P
Should have thought of that! Will investigate.
 
Thanks!


-------------
PokerMemento - http://www.pokermemento.com/


Posted By: znakeeye
Date Posted: 21 November 2008 at 3:23am
Sorry, but recompiling the library did not help. Any more ideas? (We're not linking against the new MFC library)

-------------
PokerMemento - http://www.pokermemento.com/


Posted By: Oleg
Date Posted: 21 November 2008 at 3:40am

Hi,

Do you see same with our samples ?


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


Posted By: znakeeye
Date Posted: 21 November 2008 at 8:58am
So far, no. But I do see a difference; your samples make use of doc-templates. In our application there is an explicit call to Create().

-------------
PokerMemento - http://www.pokermemento.com/


Posted By: znakeeye
Date Posted: 21 November 2008 at 9:05am
Found it! The problem was this code (on our side):
 
m_sliderCtrl.SetRange(0, INT_MAX);
 
Interesting... :P


-------------
PokerMemento - http://www.pokermemento.com/


Posted By: Oleg
Date Posted: 21 November 2008 at 9:57am
ok :)

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



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