Announcement

Collapse
No announcement yet.

Tcp Handle question

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Tcp Handle question

    I created hTcp as Dword and made it global.....

    Now, I open the port in one function, do some stuff and go to the next function and continue to grab data....


    This works,
    Back to Function #1, go to yet ANOTHER function, grab more data, works fine the first time, after that bombs out...

    Is there any problem in a DLL with having a global TCP File handle??

    Scott

    -------------
    Scott
    mailto:[email protected][email protected]</A>
    Scott Turchin
    MCSE, MCP+I
    http://www.tngbbs.com
    ----------------------
    True Karate-do is this: that in daily life, one's mind and body be trained and developed in a spirit of humility; and that in critical times, one be devoted utterly to the cause of justice. -Gichin Funakoshi

    #2
    No.

    Are you checking ERR and/or ERRAPI in your code to see if the TCP connection is failing or being closed unexpectedly?

    If all else fails, post some compilable code, and lets see the problem for ourselves.

    ------------------
    Lance
    PowerBASIC Support
    mailto:[email protected][email protected]</A>
    Lance
    mailto:[email protected]

    Comment


      #3
      I've gotten a 24 and 57 before, stack errors maybe.......(TCP/IP Stack that is)...

      The code is pretty extensive setting up the variables to send as an htmlg GET etc, I'll put more debug code in and drive on, long as i know I can do the global Handle

      Thanks Lance!


      Scott


      ------------------
      Scott
      mailto:[email protected][email protected]</A>
      Scott Turchin
      MCSE, MCP+I
      http://www.tngbbs.com
      ----------------------
      True Karate-do is this: that in daily life, one's mind and body be trained and developed in a spirit of humility; and that in critical times, one be devoted utterly to the cause of justice. -Gichin Funakoshi

      Comment

      Working...
      X
      😀
      🥰
      🤢
      😎
      😡
      👍
      👎