Jonathan Smith,
Thank you for your suggestion, not sure where that command came from.
My results:
I tried your command "REINIT.PYTHON OFF" before running my test program, I received no more memory alloc errors.... It worked. I was all smiles.
Sooooooo, I decided to test more.
Bottomline:
UniVerse 11.3.4 session will NOT unset the REINIT.PYTHON flag, even after running REINIT.PYTHON ON and checking REINIT.PYTHON STATUS (showed "ON"). I have to close the term window(session) and re-log in to get REINIT.PYTHON flag set back ON at session level.
Testing:
I tested by changing my python program to print some garbage. It would not print the garbage. I had to close my accuterm7 window and re-log in the UniVerse TCL prompt. Then I ran the python program and the garbage printed. I set Reinit to OFF and back ON. After doing that, I removed my garbage print statement from python(saved it), then ran the basic program which calls the python test program and I continued to get the garbage. Reinit did not set back to ON.
I did one more test.
I reloaded my TCL window and modified my basic program, at the top I added EXECUTE "REINIT.PYTHON OFF" and at the bottom I added EXECUTE "REINIT.PYTHON ON" . I ran my test program 3 times and received the memory alloc error and crashed my session. So running the commands with-in a basic program will not work. Hey Rocket, This would be a great addition.
We wrote a small basic program to just run
EXECUTE "REINIT.PYTHON OFF"
then run:
EXECUTE "REINIT.PYTHON STATUS"
then run
EXECUTE "REINIT.PYTHON ON"
then run:
EXECUTE "REINIT.PYTHON STATUS"
The output showed what we wanted to see First status output showed OFF, Second status output showed ON.