Announcement

Collapse
No announcement yet.

Unknown error?

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

  • Unknown error?

    One of my programs (which runs fine) sometimes returns an errorcode 69.
    What is it? (doesn't list in the helpfile )


    ------------------
    Peter.
    mailto[email protected][email protected]</A>

    [This message has been edited by Peter Lameijn (edited March 13, 2001).]
    Regards,
    Peter

  • #2
    That's not a whole lot of info to go on, what was the program doing when it generated it?

    Try this:

    Code:
    Function GetLastErrorDescription( ByVal ErrorCode As Long, ByVal UseLastError As Long ) Export As String
    Dim sRtrnCode   As Asciiz * 256
    Dim lRet        As Long
    If UseLastError Then ErrorCode = GetLastError()
    If ErrorCode = %ERROR_SUCCESS Then Exit Function
    lRet = FormatMessage( %FORMAT_MESSAGE_FROM_SYSTEM, ByVal 0&, ErrorCode, 0&, sRtrnCode, SizeOf( sRtrnCode ), 0& )
    If lRet > 0 Then Function = Left$( sRtrnCode, lRet )
    End Function
    ------------------
    Scott
    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


    • #3
      It's probably 1) an error code that is being returned by an API call (69=ERROR_TOO_MANY_SESS, whatever that is) or 2) the result of an ERROR 69 statement.

      69 is also the PB/DOS error code for "communications buffer overflow."

      Any of those sound plausible?

      -- Eric

      ------------------
      Perfect Sync Development Tools
      Perfect Sync Web Site
      Contact Us: mailto:[email protected][email protected]</A>
      "Not my circus, not my monkeys."

      Comment


      • #4
        The error is generated in the callback function of the programs main
        dialog. There aren't any API calls made there directly; however there is
        some COM port activity. Although error 69 isn't in the PB/DLL errorlist,
        it could be a comm-buffer overflow. I'll try to increase the comm-buffers...


        ------------------
        Peter.
        mailto[email protected][email protected]</A>
        Regards,
        Peter

        Comment


        • #5
          This is a real error, just omitted from the doc's:
          Error 69
          COMM error – A communications error occurred. For example, a framing error.
          ------------------
          Lance
          PowerBASIC Support
          mailto:[email protected][email protected]</A>
          Lance
          mailto:[email protected]

          Comment

          Working...
          X