-
-
Notifications
You must be signed in to change notification settings - Fork 318
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
I used your component for UniGUI and it worked fine for a while, but... #492
Comments
The info you provide is insufficient to provide any help.
|
hi,Thank you for your attention. |
testcase link download: |
You appear to have done substantial work wrapping the UniGUI components. However, the test case is not of much use to me since I do not have UniGUI. A standard and simple test project capturing the essence of what you are doing and reproducing the error would be useful instead. Also, you have not answered my questions:
Also which python version and distribution are you using? Finally your version of PythonEngine.pas is not the same as the latest version in this repo. Please upgrade to the latest version of this repo and try again. |
error Get yes Error on line 5099 and 5011 efect But the line does not appear the first time, the second time the command .ExecStrings('pythoncode') is executed, it gives an error. Does your app still work when you compile with Delphi 11? |
It seems that after running a Python command once, the dll gets locked and cannot be run again. |
Could you please explain what you found? |
yes I comment From Line 9384 to 9396 // Forbid printing for any other thread than the main one |
How using Delphi 11 makes a difference? The code you deleted is fine. If you are printing from threads you should either:
|
Also if you are running Python from multiple threads or even from a thread other than the MainThread, you should read https://github.com/pyscripter/python4delphi/wiki/PythonThreads very carefully. Otherwise you will get seemingly random access violations. The crashes you experienced may well be related to that and not on Delphi 12. |
I used your component for UniGUI and it worked fine for a while, probably, but after I installed Delphi 12, the program stopped working and gave an error
I created a component like the VCL component for UniGUI
It worked fine and displayed the result of executing Python commands in the Uni editor, but I don't know what happened and now it doesn't work properly
Do you have any ideas?
The text was updated successfully, but these errors were encountered: