-
Notifications
You must be signed in to change notification settings - Fork 55
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
Can only run DelphiVCL program once in spyder 5.x #7
Comments
Update: I tried the same python by calling it from pyscripter instead and got the same problem. I also switched to a different python, 3.7, but that didn't make any difference. |
Looks like this problem has been observed before: https://en.delphipraxis.net/topic/3742-delphivcl-fantastic-but-there-are-some-issues/ |
I've not tried it yet, but I'm guessing this is related to the interpreter life cycle. The application can only be initialized once in the interpreter life cycle. |
@hsauro can you try to reproduce this issue again? |
C:\Program Files\Streaming\IBZ2021\Module2_3>pip uninstall delphivcl C:\Program Files\Streaming\IBZ2021\Module2_3>pip install delphivcl C:\Program Files\Streaming\IBZ2021\Module2_3> |
You can unload the DelphiVCL.pyd each time:
Tested in maXbox4 |
I use spyder 5.x (https://www.spyder-ide.org/) a lot as my a Python IDE.
I can write a DelphiVCL program, eg the simple one below. When I run it the first time it shows correctly. If I try to run it again, the screen shows but then instantly closes. In order to get the form to show correctly, I have to restart the python kernel. Not a showstopper but a nuisance for those running code from spyder. Note that the DelpchVCL code runs fine from the command line with python myfile.py. Running Python 64bit 3.8.6 on Windows 10
The text was updated successfully, but these errors were encountered: