Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Program lock status isn't remembered after a garbage collect #276

Open
Aquateraneal opened this issue Jun 25, 2024 · 2 comments
Open

Program lock status isn't remembered after a garbage collect #276

Aquateraneal opened this issue Jun 25, 2024 · 2 comments

Comments

@Aquateraneal
Copy link

I have multiple programs that I have created and locked on-calc. Whenever a garbage collect happens, then all of them unlock. This is very annoying, as I have to go back and manually re-lock them every time. The odd thing is, if I lock a program using TI-Connect CE, it stays locked after a garbage collect. TI-Connect CE is obviously doing something that Cesium isn't, would it be possible to implement whatever TI-Connect CE is doing into Cesium?

Steps to reproduce:

  • Have two TI-Basic programs as examples. I will refer to these as prgmCONLOCK and prgmCESLOCK.
  • Open prgmCONLOCK in TI-Connect CE and lock it, and lock prgmCESLOCK inside of Cesium.
  • Run the GarbageCollect command.
    • Note: I am not actually running GarbageCollect, I am using TI-Boy CE, which sometimes needs a garbage collect after using. If need be, use TI-Boy CE for long enough that exiting causes a garbage collect, instead of running the GarbageCollect command directly.
  • Now, prgmCONLOCK should still be locked, but prgmCESLOCK won't.

Any way to fix this?

@LogicalJoe
Copy link
Contributor

LogicalJoe commented Jun 25, 2024

Your programs are archived when you lock them. Unarchive the program, modify the lock and hidden status, and then rearchive it. See #125 and #231 for the same thing regarding hidden programs.

@Aquateraneal
Copy link
Author

Aquateraneal commented Jul 3, 2024

No, that's not what I'm saying. What I'm saying is that, after a GarbageCollect, they lose their lock.
(Also, locking works fine when the programs are archived, I only have to un- and re-archive them when I'm hiding them... Unless you mean that it only gets remembered IF I un- and re-archive them, in which case why I NEVER heard of this before?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants