000025462 - Debug assertion error when running the RKM Client in debug mode

Document created by RSA Customer Support Employee on Jun 16, 2016Last modified by RSA Customer Support Employee on Apr 21, 2017
Version 2Show Document
  • View in full screen mode

Article Content

Article Number000025462
Applies ToKey Manager Client 1.5.x
Microsoft Windows
Microsoft Visual Studio 6
IssueTo use Microsoft Visual Studio 6 to step through an RKM Client application's code.

As soon as the current line makes a call that uses an RKM key an assertion error pops up and execution terminates.  The error:

Debug Assertion Failed!

Program: [app name]
File: dbgdel.cpp
Line: 47

Expression: _BLOCK_TYPE_IS_VALID(pHead->nBlockUse)


The problem is most likely due to incompatibilities with C++ standard template code in kmclient.lib. It was built for the release C++ runtime, not the debug. It shows up in both the RKM C interface and the C++ interface.


Set the code generation option to use the Runtime library "Multithreaded DLL" rather than "Debug Multithreaded DLL"

You can change the code generation with the following steps:

  1. From the Project  menu, select Settings
  2. Navigate to the C/C++ tab
  3. Select the Category "Code Generation"
  4. Change "Use run-time library" to "Multithreaded DLL"
  5. Completely rebuild the application.  This can be done with the "Build - Rebuild all" command.


Legacy Article IDa34896