Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 07/08/25 in all areas

  1. Softacom has recently created a video showing how to use ONNX Runtime in Delphi to run object detection. The demo includes: A quick overview of ONNX Runtime Three integration approaches Pros and cons of each method, from HTTP services to native DLL calls and Python wrappers Live examples of AI-powered object detection in action And most importantly: how you can set it up the same way If you are exploring ways to bring AI features into your Delphi application, this video might be helpful. Watch it here: https://youtu.be/WDaCjraF9ts
  2. Lajos Juhász

    Aggregates for TFDQuerry

    First of all do not use with it is always a bad idea. You are not setting the name property for the aggregate object. Edit. I have checked even the examples on docwiki are wrong.
  3. RSS-3777: TListItems.AddItem() documentation is misleading
  4. The documentation is misleading. The properties are NOT duplicated at all. If you pass in an existing TListItem then it gets inserted as-is and becomes part of the TListView.
  5. This is interesting - I have my own process library that uses IOCP for reading stdout/stderr and I thought it was fast (it's a lot faster than my old library that uses threads) - but in a quick test your library has pretty much identical performance. That makes me consider switching to overlapped io and avoiding the extra complexity with IOCP. My approach is similar to yours, my library does not convert stdout to strings by default. It was inspired by this library, which has a nice abstraction over the IO side of things. https://github.com/Tyrrrz/CliWrap Not sure if I will end up publishing my lib, I have become rather disallusioned with the whole open source side of things - but that's another story.
  6. I cannot reproduce any memory leak with that code, but I can reproduce the caption issue. You need to add the item before changing its Caption: var Item := TListItem.Create (ListView1.Items); ListView1.Items.AddItem (Item); // <-- move here Item.Caption := SomeLinkedObject.Name; Item.Checked := SomeLinkedObject.Enabled; Item.Data := SomeLinkedObject; The reason is because setting the Caption assigns the LPSTR_TEXTCALLBACK flag on the item, which TListView needs to display the assigned String data, but AddItem() does not set that same flag. So, if you set the Caption and then Add, the flag is not set and the ListView has no text data to display. Looks like a bug, I have reported it: RSS-3772: TListItems.AddItem() does not set LPSTR_TEXTCALLBACK flag for existing TListItem
  7. Remy Lebeau

    Creating an app to play Youtube videos

    That is pretty trivial to implement, eg: procedure TMainForm.GoBtnClick(Sender: TObject); var url: string; idx: integer; begin { change this https://www.youtube.com/watch?v=ZJhJILyS388 to this https://www.youtube.com/embed/ZJhJILyS388 } url := StringReplace(addresscb.Text, 'watch?v=', 'embed/', [rfIgnoreCase]); addressCb.Text := url; WVBrowser1.Navigate(url); idx := ComboBox1.Items.IndexOf(url); if idx = -1 then ComboBox1.Items.Add(url); end;
×