diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2007-01-15 05:16:13 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2007-01-15 05:16:13 +0000 |
commit | e3330fd9229c9b1dee36075ed260f6ded08af3b1 (patch) | |
tree | 65a493d1fa5798cb206fb7edb6ef6cdf72973b05 /epan/exceptions.h | |
parent | e31d777279d28800e520549fd8ad4c7f2d4b089e (diff) | |
download | wireshark-e3330fd9229c9b1dee36075ed260f6ded08af3b1.tar.gz wireshark-e3330fd9229c9b1dee36075ed260f6ded08af3b1.tar.bz2 wireshark-e3330fd9229c9b1dee36075ed260f6ded08af3b1.zip |
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
svn path=/trunk/; revision=20437
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: * |