Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - static release vs2005
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

static release vs2005

 Post Reply Post Reply
Author
Message
jjqin View Drop Down
Newbie
Newbie


Joined: 18 October 2007
Location: United States
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote jjqin Quote  Post ReplyReply Direct Link To This Post Topic: static release vs2005
    Posted: 31 July 2009 at 11:14am
Hi support,
 
I build my project in VS2005 static release mfc, it build myapp.exe ok.  When run it, it crash on allocte.cpp line 255 "if(iCategory == m_pProcess->CategoryCount())"
 
CAtlTraceCategory *CAtlAllocator::GetCategory(int iCategory) const
{
 if(iCategory == m_pProcess->CategoryCount())
  return NULL;
 ATLASSERT((iCategory < m_pProcess->CategoryCount()) || (iCategory == -1));
 CAtlTraceCategory *pCategory = NULL;
 if(iCategory >= 0)
 {
  BYTE *pb = reinterpret_cast<BYTE *>(m_pProcess) + m_pProcess->MaxSize();
  pCategory = reinterpret_cast<CAtlTraceCategory *>(pb) - iCategory - 1;
 }
 return pCategory;
}
  Any idea?
 
Thanks in advance,
 
-JJ
Back to Top
jjqin View Drop Down
Newbie
Newbie


Joined: 18 October 2007
Location: United States
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote jjqin Quote  Post ReplyReply Direct Link To This Post Posted: 31 July 2009 at 11:15am

the file is in C:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\src\atl\atls\Allocate.cpp

Back to Top
jjqin View Drop Down
Newbie
Newbie


Joined: 18 October 2007
Location: United States
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote jjqin Quote  Post ReplyReply Direct Link To This Post Posted: 31 July 2009 at 12:27pm
First-chance exception at 0x005c251e in Blueprint.exe: 0xC0000005: Access
violation reading location 0x0000001c
Back to Top
ABuenger View Drop Down
Newbie
Newbie
Avatar

Joined: 02 February 2006
Status: Offline
Points: 1075
Post Options Post Options   Thanks (0) Thanks(0)   Quote ABuenger Quote  Post ReplyReply Direct Link To This Post Posted: 01 August 2009 at 2:24pm
So what does this question have to do with the Xtreme Toolkit Pro?

Probably the object you are calling GetCategory on is bad, I guess a null-pointer (myNullPointer->GetCategory()).

Codejock support
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.048 seconds.