home bbs files messages ]

Just a sample of the Echomail archive

Cooperative anarchy at its finest, still active today. Darkrealms is the Zone 1 Hub.

   PASCAL      Pascal programming language discussions      592 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 425 of 592   
   Dan Richter to All   
   Pascal with Mystic Log Files   
   09 Jul 18 12:49:11   
   
   Hi All,   
      
   I was just wondering something, as I've run into a slight bump-in-the-road in   
   one of my programs.   
      
   What I'm doing, is reading the Mystic log files to obtain information for   
   various reports. On my Windows system, which is running fsxNet hub 4, I've   
   noticed that I'm getting errors while trying to read the mis.log file. The   
   program is unable to open the file based on permissions...   
      
   -=>snip<=-   
      
   Project rcsnodepoll raised exception class 'RunError(5)'   
      
   In file 'rcsnodepoll.pas' at line 174:   
   reset(fmislog);   
      
   -=>snip<=-   
      
   Then I'll get:   
      
   -=>snip<=-   
      
   Project rcsnodepoll raised exception class 'EInOutError' with message:   
   Access denied   
      
   In file 'rcsnodepoll.pas' at line 174:   
   reset(fmislog);   
      
   -=>snip<=-   
      
   When run from a command line, I'm getting: 'File handling error occurred.   
   Details: Access denied'.   
      
   My question, does Windows handle file permissions differently than Linux? I   
   can run this all day long on the Linux system with no problems. It just when   
   I try on the Windows system that I start having issues.   
      
   Here is also a snippet of the code that includes line 174:   
      
   -=>snip<=-   
      
   If FileExists(MysticLogs+'mis.log) then   
   Begin   
     Try   
     AssignFile(fmislog,MysticLogs+'mis.log');   
     reset(fmislog);                           //This is line 174   
     except   
       On E: EInOutError do begin   
         writeln('File handling error occurred. Details: ',E.Message);   
         ProgramHalt;   
       end;   
     end;   
   end   
   else   
   begin   
     writeln('mis.log not found. Exiting...');   
     ProgramHalt;   
   end;   
      
   -=>snip<=-   
      
   I'm guessing that Mystic is keeping the files locked, so it can keep writing   
   to them. I just don't have any issues with this under Linux...   
      
   What I will probably have to do, is make a copy of the log files, read them,   
   then delete the copies, if Windows is the OS. Is there a better way of doing   
   this?   
      
   Any help would be greatly appreciated.   
      
      
   ---   
      
   Black Panther   
   a.k.a. Dan Richter   
   Sysop - Castle Rock BBS (RCS)   
   telnet://bbs.castlerockbbs.com   
   http://www.castlerockbbs.com   
   The sparrows are flying again....   
      
   --- Mystic BBS v1.12 A39 2018/04/21 (Linux/64)   
    * Origin: Castle Rock BBS - bbs.castlerockbbs.com (1:317/3)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca