Announcement

Collapse
No announcement yet.

Error 70 - ?entire subfolder structure affected.

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

  • #21
    > Does it get confused when there is no file name extension?
    No. I was only checking for the possibility that PowerBASIC didn't like multiple dots in filespec.
    The world is full of apathy, but who cares?

    Comment


    • #22
      Still, the allegedly
      Michael Mattias
      Tal Systems (retired)
      Port Washington WI USA
      [email protected]
      http://www.talsystems.com

      Comment


      • #23
        Owen,
        Huge error in my post #4.
        ERRCLEAR was missing which is required in an Open retry loop.
        Might be a good test on your server by allowing multiple threads.

        Code:
        THREAD FUNCTION LogThread(BYVAL threadnum AS LONG) AS LONG
         LOCAL h,attempt AS LONG
         EnterCriticalSection gcs
         h = FREEFILE
         FOR attempt = 1 TO 10
          ERRCLEAR  '<-------- required
          OPEN $Logfile FOR APPEND AS #h 'exclusive lock
          IF ERR = 0 THEN EXIT FOR
          SLEEP 100
         NEXT
         IF ERR THEN
          ? "Could not open logfile in thread" + STR$(threadnum),,"ERR"+STR$(ERR)
         ELSE
          PRINT #h, USING$("&:&",TIME$,"Hello from thread"+STR$(threadnum))
         END IF
         CLOSE h
         LeaveCriticalSection gcs
        END FUNCTION
        The world is full of apathy, but who cares?

        Comment

        Working...
        X