Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 02/13/23 in all areas

  1. Fr0sT.Brutal

    Memory Leak when loading/unloading Delphi DLL

    Will the bug show when host app is built with Delphi? It would significantly simplify case reproducing
  2. Dave Nottage

    Delphi 11.2 + Android sdk 31 = "black screen"

    One reason may be that your startup code is attempting to access something that requires additional runtime permissions. I suggest using a logcat viewer to see what warnings or errors are emitted - personally, I use Device Lens (my own product). Alternatively, isolate what your code does at startup (including components on the main form that access OS resources e.g. Bluetooth) until you find the culprit.
  3. So, if I keep OwnObjects True, I can just call: FFrames[FFrames.Count - 1] := GetNewFrame; I don't need to worry about Freeing the previous object.
  4. KodeZwerg

    More precise countdown

    I just used it like I would use a standard TTimer. Here is a sample usage, in attachment a full project you can load in. procedure TForm11.FormCreate(Sender: TObject); begin Timer1 := TkzTimer.Create(Self); try Timer1.OnTimer := DoTimer1; Timer1.LinkIntervalDueTime := False; Timer1.DueTime := 5000; Timer1.Interval := 1; finally Timer1.Enabled := True; end; Timer2 := TkzTimer.Create(Self); try Timer2.OnTimer := DoTimer2; Timer2.Interval := 750; finally Timer2.Enabled := True; end; end; I've tested with Delphi Alexandria, 32 and 64 bit. When you load project and build it, answer the question about "remove does not have corresponding component" with "No" As you can see and liked to have, DueTime is added, by default it act like the basic TTimer act with a lag of 1000ms or whatever Interval you set. In demo i used 1ms with a waiting time of 5s and 750ms, works for me flawless and nothing bad happen on closing the demo. I added a LinkIntervalDueTime boolean that control if values should be in balance (like a basic TTimer would be) or complete seperated from each other. Anyway, 1ms is in my demo too fast to process for Vcl, lags are on Vcl side, not my Component. I hope you like it and find it useful for your needs. kzTimer.zip
  5. Stano

    Move objects to a second Data Module

    I would try another way. To gradually create individual objects dynamically if necessary. One of the possibilities is to find out where a specific object is used everywhere. Then decide accordingly. If it is used only in one place, then there is nothing to think about. But it is a very laborious procedure. It is estimated that there are around 500 objects It is not normal!
×