Hello-

When I run it in debug mode under Visual Studio the calls stack points a few hundred 
deep into NTDLL:

b18899c3()
NTDLL! 77f8eb70()
NTDLL! 77f95160()
NTDLL! 77fa1606()
NTDLL! 77f95160()
NTDLL! 77fa1606()
NTDLL! 77f95160()
NTDLL! 77fa1606()
NTDLL! 77f95160()

It just keeps alternating with calls to 77f95160 & 77fa1606 then the calls stack runs 
out. I can't find where... if at all inside of WinPCap this is failing. The exact 
error I get is an Unhandled Exception 0xC000 0005 Access Violation. As far as I know 
that means it is trying to read memory it doesn't have access to... but I could be 
wrong.

This isn't a large program at all... if you want I could zip it up and send it out. It 
is just the first program I have tried to write with WinPCap and so I'm a little 
confused if it's me or the libs.

Thanks in advance for all the help...

Bill-

-----Original Message-----
From: Fulvio Risso [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 17, 2003 9:51 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: [WinPcap-users] pcap_next_ex Problem




> -----Original Message-----
> From: Speirs, William R (William) [mailto:[EMAIL PROTECTED]
> Sent: gioved� 17 luglio 2003 15.44
> To: '[EMAIL PROTECTED]'
> Subject: RE: [WinPcap-users] pcap_next_ex Problem
>
>
> Hello-
>
> I don't think the strcmp is the problem, I get the same error
> when I take that whole if statement out.
>
> Also recvPacket is a struct/union that I created to help in
> reading headers and data, ect.
>
> It is just curious that it always stops after 160 calls to
> pcap_next_ex... does that mean anything to anyone??


We migrated Analyzer to pcap_next_ex() several months ago, and no errors
have been detected so far.
COuld you please launch yout program from within Visual Studio (or something
like that), and see exactly where it stops?

        fulvio

PS Ops, you have also to compile wpcap.dll in debug mode.

>
> Thanks in advance...
>
> Bill-
>
> -----Original Message-----
> From: Gisle Vanem [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 16, 2003 6:05 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [WinPcap-users] pcap_next_ex Problem
>
>
> "Speirs, William R (William)" <[EMAIL PROTECTED]> said:
>
> > if(recvPacket.headers.transProto.myICMPHeader.sequence != SEQUENCE ||
> > recvPacket.headers.transProto.myICMPHeader.type != 0x00 ||
> >    strcmp(recvPacket.headers.theMessage, MESSAGE) != 0)
> continue; // wrong responce
>
> Don't treat network packets as C-strings. It won't work.
> You should also clear recvPacket before the read so old data won't
> mess up current read.
>
> --gv
>
>
>
>
> ==================================================================
>  This is the WinPcap users list. It is archived at
>  http://www.mail-archive.com/[EMAIL PROTECTED]/
>
>  To unsubscribe use
>  mailto: [EMAIL PROTECTED]
> ==================================================================
>
>
> ==================================================================
>  This is the WinPcap users list. It is archived at
>  http://www.mail-archive.com/[EMAIL PROTECTED]/
>
>  To unsubscribe use
>  mailto: [EMAIL PROTECTED]
> ==================================================================



==================================================================
 This is the WinPcap users list. It is archived at
 http://www.mail-archive.com/[EMAIL PROTECTED]/

 To unsubscribe use 
 mailto: [EMAIL PROTECTED]
==================================================================


================================================================= This is the WinPcap 
users list. It is archived at
 http://www.mail-archive.com/[EMAIL PROTECTED]/

 To unsubscribe use
 mailto: [EMAIL PROTECTED]
=================================================================

Reply via email to