-
Content Count
110 -
Joined
-
Last visited
-
Days Won
2
Everything posted by GabrielMoraru
-
Delphi bug reports or feature requests to "vote"/comment for (important, fatal etc)/
GabrielMoraru replied to Tommi Prami's topic in Delphi IDE and APIs
I think, under the new "bug report" portal it is not possible to "me too" (vote) anymore. 😞 -
Error when installing custom package - Module not found
GabrielMoraru replied to JKNew's topic in Delphi IDE and APIs
@Pat Heuvel- Thanks. I tried the (relatively) new version from github and it works! -
Error when installing custom package - Module not found
GabrielMoraru replied to JKNew's topic in Delphi IDE and APIs
Somebody suggested ProcessMonitor, but there is a better tool for this: PE Explorer (although not freeware). It will show you a red dot like this where the dependency fails. There is also Dependency Walker 2.2 (freeware, but kind of old) but it freezes with Delphi BPLs. -
Delphi 11.1 + patches - No debug source / breakpoints?
GabrielMoraru replied to Lars Fosdal's topic in Delphi IDE and APIs
Thanks. But this is way beyond that. I think that under certain conditions, the linker simply does not put the debug information into the DCU or EXE file. Or if it is there, the debugger cannot use it. My environment is identical with Lars' except " current user has local admin rights". It is quite random... Today works, tomorrow not. Restarting the IDE helped in 2-3 cases but not in other 10-15. Until now only the code in packages (dpk) was not available for debugging. Once, I rebuilt all packages in a certain order and then I was able to debug again. Friday was the first time when it happen in the project (dpr) itself. But as I said... suddenly it fixed itself so I cannot experiment anymore. The DProj files are very old and I have seen strange lines in there. Lines that are not in a fresh DProj file. I tried to remove those lines one by one, trying to find the offending one. This (broken DProj file) is only a supposition. Until now I strongly believed that it has something to do with the package. But Friday I removed every reference to any external units from the dpr file (except VCL.Dialogs and VCL.forms), cleaned up the DCU folder and it still happened. So, IT IS NOT related to packages. There was only a ShowMessage in the DPR file and it still won't stop there, at that line. uses //FastMM4, vcl.Forms, vcl.Dialogs; begin //Application.Initialize; //Application.MainFormOnTaskbar := True; ShowMessage('Worked!'); // Breakpoint //Application.CreateForm(TForm1, Form1); //Application.Run; end. ______ Normally the exe file is 55MB, and the size is not coming from internal resources and images but from code 🙂 I backed up the exe file and the DCU folder, now that debugging works. I will wait until it doesn't and I will compare the binary files, see if they are smaller. -
Delphi 11.1 + patches - No debug source / breakpoints?
GabrielMoraru replied to Lars Fosdal's topic in Delphi IDE and APIs
I have some hints that it might be related to the DProj file. But then, suddenly the bug went away and I cannot reproduce it anymore. I will have to wait for it to reappear then I can continue the experiments. -
[Open Source] Delphi Youtube Downloader
GabrielMoraru replied to mesut61's topic in Delphi Third-Party
I built my own program (on top of yt-dl), more specialized in extracting the soundtrack of a very large Youtube playlist. I want to have all my music with me, on my faithful MP3 player, on the bicycle 🙂 The youtube download is fast (when they don't block you because you did too many downloads 🙂 per minute). I inserted some delays to make it slower 🙂 But the conversion (ffmpeg) to mp3 is crazy slow even on a 5GHz CPU. Any ideas on how to make this conversion faster? __ Edit: I was thinking about downloading all the videos first and then processing them in parallel (I have 11 cores doing nothing)... -
Delphi 11.1 + patches - No debug source / breakpoints?
GabrielMoraru replied to Lars Fosdal's topic in Delphi IDE and APIs
@Lars. Updates on this? I have a similar problem where debugging in Delphi 11.3 works.... for a while. Then suddenly all breakpoints are ignored. (Suddenly = I change one line a code and I recompile). I can't even put a breakpoint into the DPR! The project is properly set. I even turned on "map file" and "debug info into exe" in the Linker page. The project is really really large: Exe file (with debug info inside) 191MB. Exe file (without debug info inside) 51MB. Map file = 43MB. DCUs = 4MB (the rest is in (DPK) libraries). -
https://www.anoopcnair.com/windows-11-version-numbers-build-numbers-major/
-
[Open Source] Delphi Youtube Downloader
GabrielMoraru replied to mesut61's topic in Delphi Third-Party
Cool! -
Great tutorial!
-
Can you restart the LSP or do you have to restart the whole IDE?
GabrielMoraru replied to Der schöne Günther's topic in Delphi IDE and APIs
In the Delphi 12 IDE, under Tools, there is a "Reload LSP server" menu: It would be so cool to have it as an icon in the tool bar. But thanks to the old gods and to the new ones, it has an accelerator! -
Can you restart the LSP or do you have to restart the whole IDE?
GabrielMoraru replied to Der schöne Günther's topic in Delphi IDE and APIs
I use a similar solution. I use the TaskManager (I have the Classic Task Manager from Win7 which is really fast installed on my Win11) to kill the fattest LSP process. -
Hi I'm also interested in this. Any news/conclusions? Under VCL I had a reusable configurator where the user can change (dynamically) the font for the whole application (all forms/all controls). I would like to have it back in FMX also.
-
I gathered here a list of issues with FMX async messages. Some of them don't have the X button to close the message, some of them have the button but it does not work Some of them don't let you customize the caption Some of them don't show icons (error, warnings, info, question...) Some of them don't do the "ding" sound when they are displayed.
-
Also the TDialogServiceAsync.MessageDialog looks disappointing. No icons, no titlebar, no flavor. 😞 And the Fmx.Dialogs.ShowMessage is marked as deprecated 😞 _ Looks like I need to bake my own messages. I have seen a library here doing that but it uses Application.ProcessMessages - something I am not yet mentally prepared to accept 🙂
-
That's why I am asking how Roger deals with it. In my view, if you want true support for cross-platform (this includes also Android), there is no such thing as blocking/synchronous/modal dialog messages in FMX.
-
How do you deal with Android? It does not support blocking messages...
-
Update I did a massive re-haul of the code. Now works much much better and it recognizes way more VCL components.
-
Hi I can connect to the AI via a curl script, but I cannot from the IDE. When I click the "model" edit box I get:
-
Connecting Delphi 12 IDE to Google Gemini AI
GabrielMoraru replied to GabrielMoraru's topic in Delphi IDE and APIs
Yes. That was the problem. I already posted the solution (correct base URL) here. -
Connecting Delphi 12 IDE to Google Gemini AI
GabrielMoraru replied to GabrielMoraru's topic in Delphi IDE and APIs
I don't know how this will help me. I want to ask the AI questions, directly from the IDE. I have never used this kind of plugin and I want to try it now. So, I use Delphi's embedded support for this (in IDE -> Options -> Smart code design). -
I built a new/empty delphi fmx program with only a button on it. No code at all. I compile it and run it. I see it on the phone (android 8, delphi 12) but I only see the a white form with the FMX logo on it (red-yellow flames). I don't see the mainform itself. The main form is set to visible and stay on top, coordinates are 0,0. Somebody suggested that Android 8 has some problems with the permissions. Any ideas?
-
Android only shows the FMX logo for my app
GabrielMoraru replied to GabrielMoraru's topic in Cross-platform
So, mystery solved 🙂 That was my son's smartphone. Looks like he will finally get a new one 🙂. The old one was good enough because he is not allowed on social media and crap like this. Thanks guys! -
Android only shows the FMX logo for my app
GabrielMoraru replied to GabrielMoraru's topic in Cross-platform
Small update. I still cannot run the program from Delphi directly into the Android phone. However, I have found app's icon on the phone. If I click it, it works! So, it seems that Delphi has a problem debugging the program! _____ Hm... maybe I should try to run without debugging. -
GroupDescendentsWith - Why 'TCustomAction' is promoted to TControl?
GabrielMoraru posted a topic in VCL
Here is a code snippet from VCL.controls.pas: initialization ... StartClassGroup(TControl); ActivateClassGroup(TControl); GroupDescendentsWith(VCL.ImgList.TCustomImageList, TControl); GroupDescendentsWith(TCustomAction, TControl); finalization ... end. Why is TCustomAction which derive from TComponent "promoted" to a TControl?