I'm using git locally.
I have a program that uses get() to read data from a binary data file that resides in the same directory as the program itself.
That directory is also the local git repository for the program.
I can write the data file in that directory with put().
I can edit, save, compile, and run my program from that directory.
I get no errors on open() or during a get(), but no data is read into the program variables.
If I copy the binary data file to a non-git directory and redirect the open() to the new path, get() reads the data with no issue.
I can insert a long sleep and check file handles in Process Explorer while my program is running... and the only instance of the data file that shows up is the one belonging to my sleeping program. It doesn't look like anybody else has the data file locked anywhere.
Has anyone else seen this behaviour and figured out a way around it?
Thanks!
CBruce
[solved] program not able to read data with get() in git local repository
[solved] program not able to read data with get() in git local repository
Last edited by cbruce on Apr 18, 2024 2:02, edited 1 time in total.
Re: program not able to read data with get() in git local repository
Did you solve the issue ?
I just tested on a local git (fbc), no problem opening a bas file and getting data from it.
I just tested on a local git (fbc), no problem opening a bas file and getting data from it.
Re: program not able to read data with get() in git local repository
More testing...
The problem only occurs if the file has a type of ".bin".
I can rename it or copy it to any other name.ext, as long as it does not have a .bin extension.
The problem only occurs if the file has a type of ".bin".
I can rename it or copy it to any other name.ext, as long as it does not have a .bin extension.
Re: program not able to read data with get() in git local repository
I changed bas extension to bin and still no problem to get data.
So that's weird.
So that's weird.
[solved] program not able to read data with get() in git local repository
Thanks for looking @SARG, but it appears it was something in my Win10 system.
Windows has been bugging me to update for a couple of weeks, so I finally gave in, (took tons of screenshots so I would remember what I was doing), and shut down the 30+ programs that I am normally running and did the update - (and rebooted a few extra times to make sure it was "done").
Since the update and reboots, I no longer see the issue.
So, I have no idea what the problem was - but it is gone. I can get() in my git again. [smile]
Windows has been bugging me to update for a couple of weeks, so I finally gave in, (took tons of screenshots so I would remember what I was doing), and shut down the 30+ programs that I am normally running and did the update - (and rebooted a few extra times to make sure it was "done").
Since the update and reboots, I no longer see the issue.
So, I have no idea what the problem was - but it is gone. I can get() in my git again. [smile]