From e3330fd9229c9b1dee36075ed260f6ded08af3b1 Mon Sep 17 00:00:00 2001 From: Ulf Lamping Date: Mon, 15 Jan 2007 05:16:13 +0000 Subject: 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 --- epan/exceptions.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'epan/exceptions.h') 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: * -- cgit v1.2.1