diff options
author | ulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-01-15 05:16:13 +0000 |
---|---|---|
committer | ulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-01-15 05:16:13 +0000 |
commit | 7a691a2473a80490cb5ceaf0bace0986b1bd8842 (patch) | |
tree | 65a493d1fa5798cb206fb7edb6ef6cdf72973b05 /epan/exceptions.h | |
parent | be64b743e8bd34cc7e24a4fb594e91d0472efa0c (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.h | 6 |
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: * |