[Winpcap-users] WINPCAP issue with Microsoft C# (VS 2005)
Chris Boebel
cboebel at gmail.com
Wed Apr 12 11:43:53 GMT 2006
GV -
Actually, after reading the article I read the responses on the associated
message board. It turns out that this has been solved with .net 2.0 (I'm
using VS 2005).
If you use this before the delegate declaration, everything works correctly.
I grabbed several thousand packets using pcap_dispatch / callback without
any trouble.
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
Thank you for leading me in the right direction!
Chris
On 4/12/06, Gianluca Varenni <gianluca.varenni at cacetech.com> wrote:
>
> Chris,
>
> my suspect is that the calling convention of the delegate that you pass to
> pcap_loop or pcap_dispatch is wrong. As a consequence, on return from the
> first call to the callback/delegate, the stack becomes somewhat corrupted,
> causing the problems you are seeing.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winpcap.org/pipermail/winpcap-users/attachments/20060412/5fd7864c/attachment.htm
More information about the Winpcap-users
mailing list