Message Area
Casually read the BBS message area using an easy to use interface. Messages are categorized exactly like they are on the BBS. You may post new messages or reply to existing messages!

You are not logged in. Login here for full access privileges.

Previous Message | Next Message | Back to Pascal  <--  <--- Return to Home Page
   Networked Database  Pascal   [134 / 155] RSS
 From   To   Subject   Date/Time 
Message   Dan Richter    All   Pascal with Mystic Log Files   July 9, 2018
 12:49 PM *  

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)
  Show ANSI Codes | Hide BBCodes | Show Color Codes | Hide Encoding | Hide HTML Tags | Show Routing
Previous Message | Next Message | Back to Pascal  <--  <--- Return to Home Page

VADV-PHP
Execution Time: 0.0807 seconds

If you experience any problems with this website or need help, contact the webmaster.
VADV-PHP Copyright © 2002-2024 Steve Winn, Aspect Technologies. All Rights Reserved.
Virtual Advanced Copyright © 1995-1997 Roland De Graaf.
v2.0.140505

Warning: Unknown: open(c:\Sessions\sess_3k5td7ruoll1hph6gfm3hbk1i1, O_RDWR) failed: No such file or directory (2) in Unknown on line 0 Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (c:\Sessions) in Unknown on line 0 PHP Warning: session_start(): open(c:\Sessions\sess_3k5td7ruoll1hph6gfm3hbk1i1, O_RDWR) failed: No such file or directory (2) in D:\wc5\http\public\VADV\include\common.inc.php on line 45 PHP Warning: Unknown: open(c:\Sessions\sess_3k5td7ruoll1hph6gfm3hbk1i1, O_RDWR) failed: No such file or directory (2) in Unknown on line 0 PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (c:\Sessions) in Unknown on line 0