.bal file already exists error

johnaaronrose

Active Member
Licensed User
Longtime User
When opening a .b4a file, a popup window appears stating "Error accessing the follwoing files, Choose.balFile Already Exists" and same for other .bal files (e.g. Main.bal): I have 3 activities, each with its own .bal file. When I click OK & Compile & Run the app, it objects to the line Activity.LoadLayout("Main") stating "Activity BALayout: Layout not available".

The Files tab (on the IDE) shows the .bal files.

What's the cause of the "Already Exists" error?
 

johnaaronrose

Active Member
Licensed User
Longtime User
Solution

It's to do with case on filenames. AFAIK Windows doesn't bother too much about case on filenames; however, it's significant on Linux (due to being a Unix derivative) and I'm running using Wine under Ubuntu. So I changed the filename of the layout file from Main.bal to main.bal and it was OK (even though the B4A code refers to Main in its LoadLayout instruction!
 
Upvote 0

johnaaronrose

Active Member
Licensed User
Longtime User
Screenshot of Error Window

Sorry about uploading wrong file.

Choose.balFileAlreadyExists.png
 
Upvote 0
Top