Quantcast
Channel: Visual Studio General Questions forum
Viewing all articles
Browse latest Browse all 21115

Code errors as soon as I start the debugger

$
0
0

I am in the process of moving our code development from VS2008 to VS2013.

We use the INTEL C++ and FORTRAN compilers ( latest release ) in both versions of VS.

I have 3 solutions that I am trying to build.  All 3 solutions generate a Windows Application but each solution links in the output libraries generated by about 30 different Fortran and C++ projects which all generate static libraries.

All 3 applications link and run fine under Release in both WIN32 and X64.

If I build Debug versions (WIN32 or X64) then one of the applications is fine but the other 2 error as soon as I start running them under debug with the following message being displayed

==========================================================

  Debug Assertion Failed!

  Program: ....\version12 - 2013\primer12_x64\x64\Debug\primer12_x64.exe

  File : C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\atlmfc\atltrace.h

  Line: 270

  Expression: false && "Too many categories defined"

==========================================================

If I add a breakpoint into "atltrace.h" then at the point this error occurs my Call Stack is

  primer12_x64.exe!ATL::CTrace::RegisterCategory(const char * pszCategory, unsigned int nCategory) Line 270 C++
  primer12_x64.exe!ATL::CTraceCategoryEx<8U, 0U>::CTraceCategoryEx(const char * pszCategoryName) Line 390 C++
  primer12_x64.exe!oap_get_mem_size() C++
  primer12_x64.exe!_initterm(void (void) * * pfbegin, void (void) * * pfend) Line 955 C
  primer12_x64.exe!_cinit(int initFloatingPrecision) Line 321 C
  primer12_x64.exe!__tmainCRTStartup() Line 237 C
  primer12_x64.exe!WinMainCRTStartup() Line 165 C
  kernel32.dll!00000000775d652d() Unknown
  ntdll.dll!000000007770c541() Unknown

Does anyone have any idea what this means and how I might fix it ?

Exactly the same source code builds, links and runs fine under Debug in Visual Studio 2008 using the same INTEL compilers.

 

Viewing all articles
Browse latest Browse all 21115

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>