I am trying to dissect the captured pcap header using libwireshark.so, but when i call
I see this error:
Why? asked 25 Jan '12, 09:14 Sanny_D edited 25 Jan '12, 20:09 helloworld |
3 Answers:
thanks guys! there was some problem in initializing the epan after fixing that now its working :-) answered 30 Jan '12, 09:59 Sanny_D |
As I said earlier: " ....you are basically on your own if you are trying to use libwireshark directly. :-) At the very least you need to be quite comfortable using a debugger to trace through the code to see why you are getting the error." In this case, something caused an Exception (trap) and there was no code to 'handle' the exception. I would use a debugger to step through the code following the call to You probably don't need to worry too much how exceptions work; You just need to find the place in the code which caused the exception. answered 25 Jan '12, 11:48 Bill Meier ♦♦ |
It means a dissector failed to allocate memory (see code 6's definition below)... The exception group value is always 1, and the exception codes are defined here (based on epan/exceptions.h):
answered 25 Jan '12, 19:59 helloworld |
Thanks ppl!
i tried to fix it.. but all in vain.. what exactly is the problem? is it related to the OS i am using or the amount of virtual memory i have?
how to get rid of this error.. any help :-/
thanks|
Go with Bill's suggestion, and step through your code with a debugger.