-
Content Count
222 -
Joined
-
Last visited
-
Days Won
9
SwiftExpat last won the day on September 6 2022
SwiftExpat had the most liked content!
Community Reputation
65 ExcellentTechnical Information
-
Delphi-Version
Delphi 11 Alexandria
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
Here is an article that introduces font selection for coding. It is the most up to date that I have seen in a while so I hope it to be of use to others. Which open-source monospaced font is best for coding? | by Matej Latin | UX Collective (uxdesign.cc)
-
Warn about second instance of the IDE starting
SwiftExpat replied to Jud's topic in Delphi IDE and APIs
If this is the message window you are expecting, it is from Deputy available in GetIt. -
My guess would be ASLR, see discussion in this thread:
-
Looks like TCanvas.BeginScene / EndScene is missing from the code.
-
For anyone who struggles with py embeddable in the future, here are some working executables for you to troubleshoot with. Validate your python embeddable setup, confirm package installation and test your imports. FMX and VCL X64 compiled executables in the releases : Source code & sample "_pth" file is available in the GitHub Repo : https://github.com/SwiftExpat/ValidatePythonEmbeddable Usage: Click on browse DLL , this will set the dllname and path correctly and then allow you to adjust other component properties. Then load DLL PIP List Pip results can be confusing, so I have automated the PIP list command to ensure it runs from the embeddedable dist. More should be done for this, but this is a start and feel free to fork the repository or make suggestions.
-
11.3 mystery behavior - IDE lauches other app in project group after re-compile
SwiftExpat replied to SwiftExpat's topic in Delphi IDE and APIs
No build events, but good suggestion. I built a new project group so I am testing. -
TMemoryStream has a size property which is size in bytes, just check to see that it is greater than zero or some minimum size that you find acceptable.
-
11.3 mystery behavior - IDE lauches other app in project group after re-compile
SwiftExpat replied to SwiftExpat's topic in Delphi IDE and APIs
You answering a question with something from left field does not help others in the future, it just gives us more comments to try and filter through. So did you just reply so that you can increase the number of posts on your profile? -
11.3 mystery behavior - IDE lauches other app in project group after re-compile
SwiftExpat replied to SwiftExpat's topic in Delphi IDE and APIs
Autorecover is the only thing on, is there a QP report that makes you suspect that setting? -
11.3 mystery behavior - IDE lauches other app in project group after re-compile
SwiftExpat posted a topic in Delphi IDE and APIs
In Delphi 11.3 I am curious if anyone else has seen this behavior. I can not reproduce this yet, but it has happened several times and I am curious if anyone else has seen this. I will likely rebuild this project group to see if it resolves. Symptoms / Cause of error I have open a project group with ~20 projects in the list. I am debugging projectA I am looking at the source and the IDE prompts for recompile recompile happens but random projectB executes ( I had not debugged or compiled this program in days ) no projects are active in the project group Activate projectA and everything works fine again. -
Create Class at run time with an AncestorClass and a ClassName
SwiftExpat replied to Robert Gilland's topic in RTL and Delphi Object Pascal
Profiling that code is necessary to figure out which component is taking the time, as Brian Evans said above. I use one component which takes 23 ms to execute the create. That is a long time considering there are 5 instances on the form. My fix was to delay creation of the 4 instances not visible. -
Glad to see you sticking with it and it sounds like you are close. I spent a long time on this but having it stable pays off in the end. Something simple like this is what I use, so just change python to 3.11 TPath.Combine(TPath.GetDirectoryName(paramstr(0)), 'python'); Pip should resolve packages in your embedded dist, this is why you use the package with the -m option. If it does not the dist is not importing site correctly and you are going to chase errors. Here is my working, by changing to the directory it will use the python binary from that folder first, so double check with the double -V. After that the concern is the location of the package, it should show in your embedded. C:\Users\Coder\AppData\Local\Programs\RunTime_ToolKit\python>python -V -V Python 3.9.7 (tags/v3.9.7:1016ef3, Aug 30 2021, 20:19:38) [MSC v.1929 64 bit (AMD64)] C:\Users\Coder\AppData\Local\Programs\RunTime_ToolKit\python>python -m pip list -v Package Version Location Installer --------------------- ----------- ------------------------------------------------------------------------------ --------- astroid 2.5 c:\users\coder\appdata\roaming\python\python39\site-packages pip bcrypt 3.2.0 c:\users\coder\appdata\local\programs\runtime_toolkit\python\lib\site-packages pip Now for the pth file, it should look like this: python39.zip . .\Scripts .\Lib .\Lib\site-packages # Uncomment to run site.main() automatically import site The last piece you will need is msvc runtime, python does not require it but likely a module you use will python -m pip install msvc_runtime Now you are not done yet, because Delphi wants to load that DLL from the same directory as your exe. So as part of your install just copy the dlls from python over to your exe dir. I did this for the same question a while back, so here it is as reference:
-
This covers how to set it up, after that you can run pip against your embedded dist. Note, path is important and likely why you got the same results. https://dev.to/fpim/setting-up-python-s-windows-embeddable-distribution-properly-1081 Read through this one as well,
-
I used pip to install them into my embedded dist, that will check for any dependencies. python -m pip install numpy python -m pip install opencv-contrib-python You should be able to diff using --List modules in embedded python -m pip list -v --list modules from other distribution pip list -v
-
All DB components on a form lose their connection to their datasource..
SwiftExpat replied to Ian Branch's topic in General Help
Version control that file and commit often. Then you can merge the changes or just go back to the old version of the dfm. At least this will save the pain of resetting those connections. I do not experience the problem.