"locked Or Protected", "variable In Use" Errors
#1
Posted 18 March 2013 - 09:17 AM
The last time this happened I deleted the entire program and re-keyed it in from scratch. But there must be some easier way!
What would cause this loop of errors, and how can I avoid it in future, and get out of it now?
Thanks,
-A.
#2
Posted 18 March 2013 - 12:52 PM
#3
Posted 18 March 2013 - 08:55 PM
Thanks,
-A.
#4
Posted 19 March 2013 - 01:40 AM
#5
Posted 19 March 2013 - 04:31 AM
I got round the issue yesterday of the "Variable in Use" error, by doing a full reset of the device.
-A.
#6
Posted 19 March 2013 - 01:56 PM
I only have access to the handheld calculator, not to any computer emulator, and so all my programming is done on the device itself. Can I use Lua like this?
I think so, yes.
I got round the issue yesterday of the "Variable in Use" error, by doing a full reset of the device.
That's good, but it is sort of weird that that error would appear. Is it in the owner's manual?
#7
Posted 19 March 2013 - 11:12 PM
-A.
#8
Posted 20 March 2013 - 12:13 AM
#9
Posted 22 March 2013 - 05:58 PM
I'm recently seeing topics very late. but I hope I can explain this: When a ClassPad application uses a file, it locks the file. When the application finishes, it unlocks the file. This is different from the Lock/Unlock in Variable Manager. Now if the application crashes in the middle of the work, it doesn't reach to its end therefore doesn't have the opportunity to unlock the file. The Error: Locked or Protected you got is maybe because of some bug in the Program application.
Opening and saving the program file in Program should have unlocked it; it's strange it didn't. Unlocking the file is easy using the sdk programming (maybe if you told the path of the file I could write a tiny add-in to do it). This bug happens rarely, so hopefully you won't need to full reset the calc anymore.
Instead of deleting the file and re-keying, you could Copy-Paste the contents in a new program file.
flyingfisch mentioned CPLua, you can find it here: http://community.cas...orum/61-cplua/ and yes, it's fully on-calc. ClassPad Basic is good for easy programs, it's the native and somewhat easier language. For programming anything serious with nice UI, fast speed and stuff, CPLua is the best choice.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users