Not enough bytes read from file #252
-
I previously was using AceBase successfully, distributed the code to another person, and after some months they alerted me it wasn't working. I ran the code again on my machine, and it no longer works for me either. The problem section is below. AceBase version is 1.29.5. The error I get is:
It is caused by the line at if the process is left to run long enough, I eventually get this:
It does log
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This looks like the database file has been corrupted, which is probably caused by multiple processes writing to the same file without using IPC (inter process communication). Is your code running in a cluster or a single instance? |
Beta Was this translation helpful? Give feedback.
Single instance. It looks like the issue was calling
.close()
, which doesn't exist. Looking back, I don't see anything in the documentation about it, so I'm not sure why I was doing that. Thank you, I think this is solved.