Jump to content

Erix A.

Members
  • Content Count

    29
  • Joined

  • Last visited

Everything posted by Erix A.

  1. Erix A.

    Delphi 10.4.2 first impressions

    For me it's just much easier to use TFoo.Create instead of TDictionary<aaa, bbb>.Create. It's shorter this way. Also, this way I can easily find where it's used.
  2. Erix A.

    Delphi 10.4.2 first impressions

    My initial impressions - total crap. I got email notifications about fixed and closed issues, one of them was that debugger does not show the contents of the TList<> anymore. It still doesn't and the workaround to use .list in the debugger window does not work anymore. Also, if I have defined custom TDictionary types, e.g. type TDummyDict = TDictionary<String, TDummy>; and have them in a separate unit, then ctrl+clicking on the TDummyDict leads to System.Generic.Collections and not to the unit where it's defined. This makes it totally unusable for me. I'm glad I didn't delete the 10.4.1 iso. Both issues reported.
  3. Hi, I want to create a simple http server, which would stream binary (audio) data, basically the same way as internet radio's do. I run the curl against some available on the Internet and the way they're doing it seems pretty simple, i.e. they set the content-type:audio/mpeg and then just push the audio stream. How to implement this using TIdHTTPServer? I don't need the exact code, just the explanation on how to do it 🙂 The thing I did is I set the AResponseInfo.ContentStream to the TFileStream in IdHTTPServer1CommandGet and that sent the whole file, but that is not how it should work as this method sets the content-length. As the starting point, just "streaming" one big file would be nice. And then the fun part with the buffering etc. 🙂
  4. Thank you. I was able to get it working by sending the raw mpeg data into the stream as you described. I had to implement the stream throttling as well to match the bitrate of the mp3 file, otherwise the receiver just choked.
  5. This one In the previous I could "stick" it to the right side, so it's not shown. In 10.4 it's just there all the time whether I need it or not.
  6. Erix A.

    10.4 how to hide project window?

    Thanks, that was it 🙂 I remember I disabled it in previous version and when installing 10.4, I exported all settings and then imported them via the migration tool. Fix was to set Enabled to 1 in registry under "Computer\HKEY_CURRENT_USER\SOFTWARE\Embarcadero\BDS\21.0\Theme"
  7. Does it work for you? I cannot move tabs around in the editor in 10.4. It was working fine in 10.3.3 and in older versions as far as I remember.
  8. Erix A.

    Delphi 10.3.3 has been released

    Yes, the iso.
  9. Erix A.

    Delphi 10.3.3 has been released

    I run the installer (existing version was 10.3.2). It offered to upgrade, modify or to uninstall. I selected modify, it did something which ended up with missing bds.exe, so I run it again, uninstalled that whatever version was there (by leaving the registry) and installed the 10.3.3. All settings were preserved and now I have 10.3.3 running.
  10. Erix A.

    Up-to-date 32 bit libmysql.dll?

    Is this the one - http://cdn.mysql.com/Downloads/Connector-C/mysql-connector-c-6.1.11-win32.msi ?
  11. Erix A.

    Delphi 10.3 Update 2 available

    Yeah, especially when osx32 takes 9.28 seconds to compile the same project. And osx64 just completed after about 10 minutes with [dccosx64 Fatal Error] F2588 Linker error code: 1 ($00000001). Nice.
  12. Erix A.

    Delphi 10.3 Update 2 available

    Tried to compile my project for macosx64, but it looks like it got stuck in a loop and is recompiling the same units over and over again.
  13. Erix A.

    Delphi 10.3 Update 2 available

    Thanks for the help - installing xcode helped. @Uwe Raabe, yep, I'm on subscription.
  14. Erix A.

    Delphi 10.3 Update 2 available

    I also deleted and re-added my serial but still cannot get osx64 to compile :( Works fine for osx32, but for osx64 it just prompts to add SDK, After I press OK (with Command Line Tools) nothing happens. All I get is [Error] and Failed in the log.
  15. Erix A.

    Delphi 10.3 Update 2 available

    Just installed from the delphicbuilder10_3_2_496593b.iso and am getting error when starting 10.3.2 (see attach). I checked macosxdebugide260.bpl dependencies and those 2 are missing from my PC: gdbdebugcore260.bpl gdbdebugide260.bpl The only thing (osx64) I was expecting from 10.3.2 and it's not working 😞
  16. Erix A.

    Random app crashes on MacOS

    I have app, which works fine on Windows and I'm now trying to convert it to MacOS (Mojave). App uses some DLLs, written in C and compiled with gcc. Parameters to C functions are mostly passed as records (enums at the C side). Now, I recompiled the same DLLs as dylibs on a MAC and program works, but I get random crashes in libsystem_malloc, libsystem_platform and so on. I guess there's some issue with the memory management in my program, I just cannot catch it as crashes happen at pretty random places. Is there something special about how memory must be aligned or something when dealing with dylibs in MacOS? I'm loading those libraries dynamically and functions are resolved via GetProcAddress and they are defined as cdecl.
  17. Erix A.

    Random app crashes on MacOS

    Huh, solved the issue. Problem was in the C code, which was working fine on Windows, but was failing on MacOS (where gcc is actually clang).
  18. Hi, What's the best environment for MacOS development? - MacBook/Mini and running Delphi in Windows via VirtualBox/Parallels? - installing Hackintosh and running Delphi in Windows via VirtualBox/Parallels? - connect to Mac via VNC Viewer? - just have Mac next to the PC and switch over to it each time program is deployed? - other options? I've experimented with running MacOS in VirtualBox. It works, but is damn slow and also I'd like to test my program on a real hardware.
  19. Erix A.

    MacOS development environment

    PC or Mac keyboard/mouse?
  20. Erix A.

    MacOS development environment

    What about the RAM? Is 16 GB enough?
  21. Erix A.

    MacOS development environment

    Are you happy with the VMWare Fusion and are you using the normal or pro version?
  22. Could somebody confirm this, before I report the error? Here's the full code (simple form with a button on it). When I add break point at the end of procedure TForm1.Button1Click(Sender: TObject);, in Delphi 10.2.3 I see the item, which was added, while in 10.3 I only see a pointer to it. unit Unit1; interface uses System.Generics.Collections, Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls; type TForm1 = class(TForm) Button1: TButton; procedure Button1Click(Sender: TObject); private { Private declarations } public { Public declarations } end; type TItem = class private Ff2: string; Ff1: string; procedure Setf1(const Value: string); procedure Setf2(const Value: string); public property f1: string read Ff1 write Setf1; property f2: string read Ff2 write Setf2; end; type TItemList = class(TObjectList<TItem>); var Form1: TForm1; implementation {$R *.dfm} procedure TForm1.Button1Click(Sender: TObject); var item: TItem; list: TItemList; begin item := TItem.Create; item.f1 := 'f1'; item.f2 := 'f2'; list := TItemList.Create; list.Add(item); end; { TItem } procedure TItem.Setf1(const Value: string); begin Ff1 := Value; end; procedure TItem.Setf2(const Value: string); begin Ff2 := Value; end; end. 10.3 10.2
  23. Erix A.

    Can somebody confirm this in 10.3?

    I'm wondering if they are working on this? Just had to remove all 10.3 new features from my project (e.g. declaring variables in the middle of the code) so that I could debug my app in 10.2.
  24. - IDE is slower than 10.2.3. For example, you can see how Project/Options window is being drawn while opening. - If you set the dark mode, then you can see how options window is first drawn white and then skinned. - Code scrolling in the editor seems bit slower. - When app is run and the closed, lots of windows resizing, flickering is going on while the IDE goes from Debug to Default layout. (The same is happening in 10.2.3 as well, only it does it much faster). - Sometimes after couple of runs Object inspector is not drawn at all until you refresh it. - 1st full recompile of the project took about 12 seconds - 2nd full recompile 40 seconds - 3rd full recompile minute and something - 4th one is still running (joke) - After couple of recompiles, the whole IDE just blurs in the background, compiler gets stuck, and then after some time everything resumes. - Code completion still isn't working in my project (It works after the 1st compile, then stops until project is cleaned). I reported it to QC and even got some response in the item, but then it stopped. When I turned the skinning off, IDE become more responsive, but some of the tool bars are drawn with non default background and when I hover over the tool bar buttons, the background for them becomes black. I'm kinda sad. Usually I install the new Delphi and very soon uninstall the previous one, as the new one is just better. Not this time 😞
  25. Erix A.

    Can somebody confirm this in 10.3?

    OK, thanks. Reported the bug anyway.
×