aboutsummaryrefslogtreecommitdiffstats
path: root/epan/exceptions.h
diff options
context:
space:
mode:
authorulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2007-01-15 05:16:13 +0000
committerulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2007-01-15 05:16:13 +0000
commit7a691a2473a80490cb5ceaf0bace0986b1bd8842 (patch)
tree65a493d1fa5798cb206fb7edb6ef6cdf72973b05 /epan/exceptions.h
parentbe64b743e8bd34cc7e24a4fb594e91d0472efa0c (diff)
instead of simply doing an assert when running out of memory in emem, throw a new OutOfMemoryError Exception, so file.c can show at least a better explanation to the user before Wireshark terminates
XXX - to prevent a busy wait, I need a portable way to wait for a short time period, like Sleep() for Windows git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20437 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/exceptions.h')
-rw-r--r--epan/exceptions.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/epan/exceptions.h b/epan/exceptions.h
index b087f01a7e..acf9b78a27 100644
--- a/epan/exceptions.h
+++ b/epan/exceptions.h
@@ -67,6 +67,12 @@
**/
#define ScsiBoundsError 5
+/**
+ Running out of memory.
+ A dissector tried to allocate memory but that failed.
+**/
+#define OutOfMemoryError 6
+
/* Usage:
*