Jump to content

GabrielMoraru

Members
  • Content Count

    105
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by GabrielMoraru

  1. GabrielMoraru

    Delphi 11.1 + patches - No debug source / breakpoints?

    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.
  2. GabrielMoraru

    Delphi 11.1 + patches - No debug source / breakpoints?

    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.
  3. GabrielMoraru

    [Open Source] Delphi Youtube Downloader

    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)...
  4. GabrielMoraru

    Delphi 11.1 + patches - No debug source / breakpoints?

    @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).
  5. GabrielMoraru

    Getting Win 11 in Delphi

    https://www.anoopcnair.com/windows-11-version-numbers-build-numbers-major/
  6. GabrielMoraru

    [Open Source] Delphi Youtube Downloader

    Cool!
  7. GabrielMoraru

    When LSP fails

    Great tutorial!
  8. GabrielMoraru

    Can you restart the LSP or do you have to restart the whole IDE?

    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!
  9. GabrielMoraru

    Can you restart the LSP or do you have to restart the whole IDE?

    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.
  10. GabrielMoraru

    Any font property editor for FireMonkey?

    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.
  11. GabrielMoraru

    Styling message boxes

    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.
  12. GabrielMoraru

    Styling message boxes

    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 🙂
  13. GabrielMoraru

    Styling message boxes

    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.
  14. GabrielMoraru

    Styling message boxes

    How do you deal with Android? It does not support blocking messages...
  15. GabrielMoraru

    Converting simple VCL form to FMX

    Update I did a massive re-haul of the code. Now works much much better and it recognizes way more VCL components.
  16. 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:
  17. GabrielMoraru

    Connecting Delphi 12 IDE to Google Gemini AI

    Yes. That was the problem. I already posted the solution (correct base URL) here.
  18. GabrielMoraru

    Connecting Delphi 12 IDE to Google Gemini AI

    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).
  19. 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?
  20. GabrielMoraru

    Android only shows the FMX logo for my app

    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!
  21. GabrielMoraru

    Android only shows the FMX logo for my app

    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.
  22. 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?
  23. GabrielMoraru

    GroupDescendentsWith - Why 'TCustomAction' is promoted to TControl?

    Oh... I thought it is related somehow to the Palette. THANKS
  24. So, I have a program that uses the precompiled units of a library. This: Allows me to keep the Search Paths totally empty (as they should be) Prevents the compiler from keep recompiling the files of the library unnecessarily, saving compilation time. But if the library has DFM files, the compiler will throw that famous "where are my DFM files?" error message. The "solution" (well, it is not a real solution, but rather a dirty trick) is to (manually or by script) copy the DFM files to the DCU folder of that library. Four output DCU paths, four copies. What a nasty "solution"... So, did anyone found a more elegant way to solve this? I see in some old DProj files an entry called <DCC_ResourcePath>, but there is no page in "Project options" or in IDE's "Tools -> Options" to set that path.
  25. GabrielMoraru

    Should I just dive in to GUI programs?

    @357mag One should consider if he really needs data bases today. In the past you had to store data in a way that was searchable. Today, for most simple applications, the data will fit into the memory. Searching in-memory data will at least thousands of times faster than searching a DB. Consider also serializing your objects to binary files! Also damn fast compared with DB.
×