[Wireshark-dev] runtime error using plugin with prefs_register_enum_preference

2008-10-22 Thread david.castleford
Hi, I'm trying to add a list of protocol versions in the preferences menu using: plugin with prefs_register_enum_preference I've followed the example of other working dissectors. The plugin compiles correctly but when I copy the dll to the wireshark plugin directory and run wireshark I get

Re: [Wireshark-dev] runtime error using plugin with prefs_register_enum_preference

2008-10-22 Thread Bill Meier
[EMAIL PROTECTED] wrote: Hi, The code is here: #define PROTO_TAG_ISMACRYP_11 ISMACRYP 1.1 #define PROTO_TAG_ISMACRYP_20 ISMACRYP 2.0 . /* The ISMACryp protocol version set in preferences menu */ static gint version_type = 11; /* ISMACryp 1.1 */ ... static enum_val_t

Re: [Wireshark-dev] runtime error using plugin with prefs_register_enum_preference

2008-10-22 Thread Jaap Keuter
Hi, You can't have a space or caps in the preference name. Thanx, Jaap Sent from my iPhone On 22 okt 2008, at 17:36, [EMAIL PROTECTED] wrote: Hi, I'm trying to add a list of protocol versions in the preferences menu using: plugin with prefs_register_enum_preference I've followed the

Re: [Wireshark-dev] runtime error using plugin with prefs_register_enum_preference

2008-10-22 Thread Guy Harris
On Oct 22, 2008, at 9:13 AM, Jaap Keuter wrote: You can't have a space or caps in the preference name. Preference value name, to be precise, in this case: /* * Register a preference with an enumerated value. */ typedef struct { const char