Login Page - Create Account

Support Board


Date/Time: Wed, 19 Mar 2025 08:04:35 +0000



Post From: ACSIL - file in use after closing it

[2022-10-17 16:46:37]
User183724 - Posts: 194
ACSIL is C++. ACSIL uses sierra chart functions in their own header file (sierrachart.h). you would need to compare your buddys code to your code to see the difference. i notice your close statement is in an if statement. so the only time the file closes is if the if statement is true.

// Open log file for logging, if file not found create a new file

int FileHandle;

if(!sc.OpenFile(Input_LogPath.GetPathAndFileName(), n_ACSIL::FILE_MODE_OPEN_EXISTING_FOR_SEQUENTIAL_READING, FileHandle))

{

sc.CloseFile(FileHandle);

SCString TempString;



you may want to look at puttin a close statement in after the if statement in case the not true condition is met