Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - "Invalid allocation size"
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

"Invalid allocation size"

 Post Reply Post Reply
Author
Message
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Topic: "Invalid allocation size"
    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/
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: 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
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post 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/
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post 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/
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: 21 November 2008 at 3:40am

Hi,

Do you see same with our samples ?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post 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/
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post 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/
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: 21 November 2008 at 9:57am
ok :)
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.156 seconds.