bchavez / bchavez/BugTrap

An error with map erase that BugTrap seems cannot capture?

Open
#24 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
187
Forks
87
PR merge metrics
No merged PRs in 30d

Description

`#include
#include "BugTrap\BugTrap.h"
#include

#pragma comment(lib, "BugTrap\\BugTrapU.lib") // Link to Unicode DLL

void SetupExceptionHandler();

int main()
{
SetupExceptionHandler();
BT_SetTerminate();

std::map idMap;
idMap[0] = 1;

idMap.erase(idMap.begin());
idMap.erase(idMap.begin()); // BugTrap cannot capture this exception with my pc and environment
//int* ptr = 0; *ptr = 0; // BugTrap can capture this exception

return 0;
}

void SetupExceptionHandler()
{
BT_InstallSehFilter();
BT_SetFlags(BTF_DETAILEDMODE | BTF_EDITMAIL);
}`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.