[solved] program not able to read data with get() in git local repository

General FreeBASIC programming questions.
Post Reply
cbruce
Posts: 166
Joined: Sep 12, 2007 19:13
Location: Dallas, Texas

[solved] program not able to read data with get() in git local repository

Post by cbruce »

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
Last edited by cbruce on Apr 18, 2024 2:02, edited 1 time in total.
SARG
Posts: 1770
Joined: May 27, 2005 7:15
Location: FRANCE

Re: program not able to read data with get() in git local repository

Post by SARG »

Did you solve the issue ?

I just tested on a local git (fbc), no problem opening a bas file and getting data from it.
cbruce
Posts: 166
Joined: Sep 12, 2007 19:13
Location: Dallas, Texas

Re: program not able to read data with get() in git local repository

Post by cbruce »

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.
SARG
Posts: 1770
Joined: May 27, 2005 7:15
Location: FRANCE

Re: program not able to read data with get() in git local repository

Post by SARG »

I changed bas extension to bin and still no problem to get data.
So that's weird.
cbruce
Posts: 166
Joined: Sep 12, 2007 19:13
Location: Dallas, Texas

[solved] program not able to read data with get() in git local repository

Post by cbruce »

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]
Post Reply