Bind error

Hi
I am now getting a bind error when ever I attempt to bind a program. I initially thought it was an error in my code but I now get it with all of the examples that came with TB. The error is printed to the output window. I am using the default system file.
The error is " Usage error. C:\Program Files\True BASIC Gold Edition v.6.0\TBsystem.exe [-{i|c|".

Also I am getting a bad name error when trying to change system files.

Best regards
Dave

Comments

Binding

Hi Dave,

I have located the binding problem.

If you want to change the TBsystem file you also have to change the BINDWIN.RTP file because they are matched. If you don't have the correct pair then you cannot bind.
When you had problems binding it was because you had a mismatched pair as a result of attempting to change the TBsystem file. There was an error in the code for changing these files. This has now been rectified. Basically the error was an IF...THEN clause that only changed the BINDWIN.RTP files if the TBsystem files had changed. The problem arose because I was comparing the full pathname with just the filename - so it was always diferent and always changed the bindwin.rtp file even when it wasn't needed. Once the system got out of sync you couldn't bind anymore.

Regards
Big John

BINDING

Hi Dave,

Can you tell me what operating system are you using? Is it VISTA or WINDOWS 7?

Binding works fine for me, but I am using XP

Regards
Big John

Changed directory

Hi John
Your question and the comment from Admin in another thread made me think it could possibly be the problem of Vista denying access to certain files and folders in the default installation directory, Program Files. I have seen this before with other software. I therefore did a new re-install of TB into the C: drive, created my own TrueBasic folder and can now bind programs as long as I do not try to change the TB system file. Attempts to change the binder give a warning of a bad file name in exec_rename, I think this may be a seperate bug. I have to restart the editor to be able to bind again.
Hope this information helps.

Best regards
Dave

Changing binders

Hi Dave,

I will check this out.

VISTA and WINDOWS 7 appear to "protect" stuff in the program files folder, so the best answer is to install anywhere else but Program files.

I will get back to you on the change binder problem.

Regards
Big John

Vista and Windows 7

Hi John
Microsoft in its infinite wisdom decided that programs can no longer write to files in the Program Files directory, even if it is inside their own folder. I see from some of the other languages I use that different aproaches have been taken to solve the problem, some installed the main program into the Programs Files directory but placed certain files in the My Documents Folder of the user so they could be written to. Others did seem to manage to overcome the issue completey and managed to install in the Program Files directory. Others just installed into the c: directory and everything was fine. For me I would rather see everything installed in the same location, not different folders dotted around everywhere.
Perhaps this issue was causing some of the other "bugs".

Any idea when the new version will be made available?

best regards
Dave

Binding

Hi John
I should have said earlier, I am using Windows Vista 32 bit. UAC is off and I have admin rights.
At first there was no problem trying to bind programs then after it failed once with the above error it fails all the time. I uninstalled TB and deleted the TB folder, did a re-install and it worked again for a few times then failed again.

If you need any more info please ask.

Regards
Dave

Possibility

Hi Dave,

Gold 6.002 is going to be available in the next day or so - Bronze and Silver are already ready.

One thing we noticed in this last round of testing Gold was that in a few instances, in Vista some actions were causing instances of the editor and TBF.exe to remain running invisibly while the visible program windows were closed. This was a function of a disconnect between Windows closing the window but the editor not recognizing that this had happened. This might not be related to the BIND error, but check running processes to see if you have multiples there (Task Manager, Processes tab). In our testing that caused all kinds of mayhem.

This bug, as well as the issue with saving/writing to the default Program Files directory, is fixed in 6.002. Since we can't control Windows and can only work around it, however, to be on the safe side I would recommend people NOT install TB in that Program Files (x86) directory, even though in testing this is working fine now.