原始文献 / 论坛帖 / Re: CryptoPP Assertion Error

Re: CryptoPP Assertion Error

Bitcointalk · 2010-09-05 23:25:32 UTC

AuthorSatoshi Nakamoto
TitleRe: CryptoPP Assertion Error
Date2010-09-05 23:25:32 UTC
ForumBitcointalk · 原文

你大概可以直接把这行注释掉
cryptopp/secblock.h:187
//assert(false);

告诉我行不行,注意看会不会内存泄漏。

这看起来像个模板类,用来确保派生类定义自己的 allocate 和 deallocate 版本。如果这真是问题所在还一路进了 release 版,那就奇怪了。大概是误报。

英文原文

You can probably just comment out the line
cryptopp/secblock.h:187
  //assert(false);

Let me know if it works, and watch if it memory leaks.

It looks like a template class to make sure the derived class defines its own version of allocate and deallocate.  It would be weird if that was the actual problem and it made it all the way to release.  Probably a false alarm.