Print Page | Close Window

static release vs2005

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=14879
Printed Date: 21 June 2025 at 10:59pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: static release vs2005
Posted By: jjqin
Subject: static release vs2005
Date 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



Replies:
Posted By: jjqin
Date 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



Posted By: jjqin
Date Posted: 31 July 2009 at 12:27pm
First-chance exception at 0x005c251e in Blueprint.exe: 0xC0000005: Access
violation reading location 0x0000001c


Posted By: ABuenger
Date 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



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