Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Getting error while using WSAStartup method

Getting error while using WSAStartup method

Scheduled Pinned Locked Moved Visual Basic
helpcsharpjsonperformance
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Chaitanya kumar CVSS
    wrote on last edited by
    #1

    Hi I am facing problem while using windows API in VB.net 2005. This is the code i am using. Private Structure WSADATA Dim wVersion As Short Dim wHighVersion As Short Dim szDescription() As Byte Dim szSystemStatus() As Byte Dim iMaxSockets As Short Dim iMaxUdpDg As Short Dim lpszVendorInfo As Integer Public Sub Initialize() ReDim szDescription(WSADescription_Len) ReDim szSystemStatus(WSASYS_Status_Len) End Sub End Structure Private Const WS_VERSION_REQD As Short = &H101S Dim WSAD As New WSADATA Dim iReturn As Short iReturn = WSAStartup(WS_VERSION_REQD, WSAD)------>This statement is returning an error saying that "System.AccessViolationException was unhandled Message="Attempted to read or write protected memory. This is often an indication that other memory is corrupt."" Please give the suggestions . Thanks , Chaitanya

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups