Jump to content

EugeneK

Members
  • Content Count

    116
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by EugeneK

  1. Hi I just randomly noticed this folder C:\ProgramData\ICS-OpenSSL on customers machine and then found this code in OverbyteIcsLIBEAY.pas // create OpenSSL public directory is missing, usually created when installing packages or application installer ForceDirectories(GSSL_PUBLIC_DIR); can we please not do it, or at least provide some conditional define to avoid it it is not a good idea to pollute public folders with random files for no reason.
  2. I've undefined OpenSSL_Resource_Files and OpenSSL_ProgramData, Can folder be created only if either or both of these is set?
  3. But can it be created only if it used, I manage my own OpenSSL installation and don't use this folder, so there is no reason to create it.
  4. Conditional operator coming in Delphi 13 https://blogs.embarcadero.com/coming-in-rad-studio-13-a-conditional-ternary-operator-for-the-delphi-language/ It is not clear from blog post are both expressions evaluated every time or based on condition? I think is most important thing about this feature.
  5. Hi I noticed that in THttpCli 404 StatusCode is returned in many different situations like timeout/DNS resolution failure, which makes it difficult to diagnose issues because it is the same as legitimate 404 code from web server. Is it possible to change it to something else?
  6. It is true at least based on votes in old quality.embarcadero.com portal.
  7. Hi In OverbyteIcsWebSocketCli.pas there are many instances of this if Obj <> nil then Obj.Free; I think it should be simplified to just Obj.Free;
  8. EugeneK

    if Obj <> nil then Obj.Free

    According to https://stackoverflow.com/a/8591357/1325672 if FField <> nil then FField.Destroy;
  9. EugeneK

    if Obj <> nil then Obj.Free

    If you have license Delphi 7 is available for download on Embarcadero website, you can check source code there.
  10. EugeneK

    if Obj <> nil then Obj.Free

    Free on nil works in Delphi 7 as well.
  11. EugeneK

    Delphi 13 beta

    Delphi 13 beta announced https://blogs.embarcadero.com/update-subscription-customers-invited-to-join-rad-studio-ganymede-beta/ Have anyone received invites? Apparently they sent to premium and regular subscription licenses this time. I'm on regular subscription and did not get any. Getting regular marketing emails, though.
  12. I'm using DDetours to intercept Windows functions for unit testing purposes, but don't know how to intercept UuidCreate function because its declaration is hidden in implementation section of System.SysUtils unit. Is there a way to do it?
  13. EugeneK

    Intercepting UuidCreate function

    Thanks! I did not know that you can use this form of InterceptCreate
  14. EugeneK

    Intercepting UuidCreate function

    I mostly use abstractions, but using abstractions for Now feels like an overkill, that's the only one I use DDetours for so far. Also until Spring4d uses namespaces I'm not using it.
  15. EugeneK

    Azure Relay

    Hi Does anyone have example of working with Azure Relay in Delphi?
  16. EugeneK

    Azure Relay

    Looks like there is commercial solution that implements AMQP 1.0, https://www.esegece.com/websockets/protocols/amqp/amqp-1-0-0 I wonder if anyone tried it?
  17. EugeneK

    Azure Relay

    It seems to be for AMQP v0.9.1, there is Delphi implementation for it here https://github.com/felipecaputo/delphi-amqp
  18. EugeneK

    Azure Relay

    No, I'm trying to reverse engineer it. It uses AMQP 1.0 over WebSockets
  19. In Dalija Prasnikar's smart pointer unit here https://github.com/dalijap/code-delphi-mm/blob/master/Part5/SmartPointer/uSmartPtr.pas#L8 following code is used ISmartPointer<T> = reference to function: T; TSmartPointer<T: class, constructor> = class(TInterfacedObject, ISmartPointer<T>) basically anonymous method declaration is equivalent to interface. Is it documented somewhere? I tried looking at Interfaces and Anonymous method sections in documentation but can't find anything.
  20. Hi Does my.embarcadero.com works for anyone right now? Cannot login to it.
  21. EugeneK

    my.embarcadero.com down?

    Yes getIt was down, it hanged IDE when I tried to open it, I killed IDE from taskmanager and it somehow completely deleted my license, so now I can't use IDE at all, and can't login to the portal to get my license number.
  22. Hi Anyone else have this error in 12.3 [dcc32 Error] Type parameter 'T' must be a non-nullable value type Works fine in 12.2, trying to isolate it now, seems to work in some places but not the others.
  23. EugeneK

    formatting private const identifier = value

    I think more consistent with Embarcadero style will be following, since there could be multiple consts/types/vars TClass = class(TObject) private FSomeField: integer; private const SomeConstant = 5; SomeOtherConstant = 6; private type SomeType = integer; SomeOtheType = string; private class var SomeClassVar: integer; SomeOtherClassVar: string; end;
  24. But this is simply not true because managed records can be used for generics restricted to records in 12.2 and before. I had a lot of code broken because of this change that worked perfectly fine.
  25. Can anyone explain rationale why the suddenly change this and closed my ticket about this as by design? https://embt.atlassian.net/servicedesk/customer/portal/1/RSS-3043 This pisses me off they they randomly change compiler behaviour and not even in major version. And don't provide any explanation.
×