Index: src/traffic-control/examples/adaptive-red-tests.cc |
=================================================================== |
--- a/src/traffic-control/examples/adaptive-red-tests.cc |
+++ b/src/traffic-control/examples/adaptive-red-tests.cc |
@@ -71,6 +71,9 @@ |
#include "ns3/point-to-point-module.h" |
#include "ns3/applications-module.h" |
#include "ns3/traffic-control-module.h" |
+#ifdef _WIN32 |
+#include "CrashHandler.h" |
+#endif |
using namespace ns3; |
@@ -178,6 +181,14 @@ |
int |
main (int argc, char *argv[]) |
{ |
+#ifdef _WIN32 |
+#ifndef _DEBUG |
+ CCrashHandler ch; |
+ ch.SetProcessExceptionHandlers(); |
+ ch.SetThreadExceptionHandlers(); |
+#endif |
+#endif |
+ |
LogComponentEnable ("RedQueueDisc", LOG_LEVEL_INFO); |
uint32_t aredTest; |