I wrote a custom dissector that I believe is correct for the packet I am
trying to check. However, when I start wireshark it crashes when attempting
to load my dissector. The error message is just a general Run time error:
This program terminated in an unusual way. Is there a log file or something
On Aug 25, 2009, at 1:09 PM, wsgd wrote:
When you start wireshark with a capture file ?
If there is no capture file (or capture), the problem does not come
from
the packet or the dissect function.
...which means it probably comes from one of the dissector's
registration functions (which
When you start wireshark with a capture file ?
If there is no capture file (or capture), the problem does not come from
the packet or the dissect function.
See http://wiki.wireshark.org/Development/Tips.
Use debugger.
Olivier
Patrick Lannigan a écrit :
I wrote a custom dissector that I
Ok, I got it set up in VC++EE and tried it. It is failing in my
proto_register_abc() method.
I construct the hf array, ett array and proto_register_protocol with no
problems. It then fails on:
proto_register_field_array (proto_abc, hf, array_length (hf));
Here is the hf array construction, can
Hi,
Le mardi 25 août 2009 à 17:00 -0400, Patrick Lannigan a écrit :
The init looks wrong to me:
Here is the hf array construction, can anyone see what the error is?
{ hf_abc_txPower,
{ txPower, abc.txPower,
FT_UINT8, BASE_DEC,
Transmit power for
It then fails on:
proto_register_field_array (proto_abc, hf, array_length (hf));
Here is the hf array construction, can anyone see what the error is?
static hf_register_info hf[] = {
{ hf_abc_txPower,
{ txPower, abc.txPower,
FT_UINT8, BASE_DEC,
I fixed the change you mentioned and am still failing at the same
proto_register_field_array call.
static hf_register_info hf[] = {
{ hf_abc_flags,
{ Flags, abc.flags,
FT_UINT8, BASE_NONE,
NULL, 0x0, NULL, HFILL }
},
{
Lannigan
Sent: Tue 8/25/2009 6:09 PM
To: Developer support list for Wireshark
Subject: Re: [Wireshark-dev] Custom dissector causing wireshark to crash
I fixed the change you mentioned and am still failing at the same
proto_register_field_array call.
static hf_register_info hf