Visual Baisc Error GetTcpipBoundAdaptersInfo nHandle, AdList

Home Forums Discussions Support Portal Visual Baisc Error GetTcpipBoundAdaptersInfo nHandle, AdList

This topic contains 3 replies, has 2 voices, and was last updated by  Vadim Smirnov 9 years, 9 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #5159

    hbpak
    Participant

    Thanks.

    I bought winpkfilter 3.0.

    In PacketSniffer Project, a Fatal Error shut down VB at line 65 in frmMain ( GetTcpipBoundAdaptersInfo nHandle, AdList )
    This line works well in the ListAdapters Project.

    When I compile that project, on the statement(GetTcpipBoundAdaptersInfo nHandle, AdList) fatal error occure and vb program down.

    How can I fix it?

    #6512

    Vadim Smirnov
    Moderator

    I just tried to compile PacketSniffer project under VB6 and it worked just fine. The resulted binary also works without any crashes.

    In you case do you get VB environment or PacketSniffer application crash?

    #6513

    hbpak
    Participant

    When I declare AdList variable in sub procedure then no crash occured.
    But I declare it out of procedure then crash occured.

    So, how can i do?

    Option Explicit
    Private AdList As TCP_AdapterList

    < -- crash occured. sub form_load()
    dim AdList As TCP_AdapterList
    <-- no crash..

    #6514

    Vadim Smirnov
    Moderator

    What Visual Basic do you actually use? The samples were created for Visual Basic 6, so if you are using them under Visual Basic .NET then then the behavior can be different. An example managed memory can’t be directly passed to driver.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.