Jump to content

Uwe Raabe

Members
  • Content Count

    2542
  • Joined

  • Last visited

  • Days Won

    147

Posts posted by Uwe Raabe


  1. How do you guarantee that memfloorobjects.CreateBlobStream actually returns a TnxBlobStream?

    What is a TnxBlobStream?

    How is BlobStream declared?

    What is memfloorobjects?

    Why do you list memfloorobjects in the with and still reference it in the code so no one can see at a glance where it is used?

    Why do you use with at all as it only obfuscates the code here?

    What is GraphicClass and where it is used?

    Why is the try not directly after TBitmap.Create?

    Why do you cast to TnxBlobStream when Free is already declared in TObject?

    1 hour ago, alogrep said:

    Madexcept says that object created there on thah line with ??? leaked. Why? I did free it.

    What object is created in that line? Neither b nor BlobStream are created in that line and those are the only objects you free.

    • Like 1

  2. That is one reason why I am sceptic when someone claims Delphi should support this feature or have that tool out of the box, while often there already exist 3rd party solutions covering all these. I would rather see Delphi step back and concentrate on its core functionality instead of constantly broadening the target. Either these have to compete for the limited resources or they are going to be abandoned like ever so often. Just buying a tool as a Delphi companion is only the start. It needs constant and sufficient investment to keep it going.

    • Like 11

  3. On 10/23/2022 at 10:03 AM, Fons N said:

    It should not be that difficult for Embarcadero to create an example.

    If it is not that difficult, why don't you create such an example yourself and attach it to a bug report with all necessary steps? That would at least match the workflow Embarcadero is used to.


  4. 1 hour ago, mario.arosio@gmail.com said:

    No, I use 50 records paging, as suggested on most of discussion found on the net.

    Fine, but there are other means to make the query fetch the complete result set. A simple Last call or setting a local index different to the query order can have the same effect.


  5. 1 hour ago, Paul TOTH said:

    when a custom component owns some subcomponents, there's more to do - that I don't have in mind yet - to support serialization to/from the DFM

    I don't know if all is necessary, but I at least it is sufficient:

    • have a field for the sub component exposed as a published read-property
    • create the instance in the constructor (Self as Owner is allowed omitting the Free in the destructor)
    • call SetSubComponent(True) after creation
    • set all properties as needed
    • don't forget to set Parent

  6. 19 hours ago, aehimself said:

    I made a custom component which resides on a VCL frame.

    I guess, that is not one of the use cases the developers had in mind when they designed the custom component system.

     

    AFAIK, you can either have subcomponents created dynamically with their properties stored as sub-properties of the outer component or you can have a frame stored in the object repository with derived instances in your project.

     

     


  7. I managed to get it working with the following steps:

    1. In the registry add a subkey to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols named "TLS 1.3"
    2. Add another subkey to this new key named "Client"
    3. Add a DWORD to the Client key named "Enabled" with Value = 1
    4. Add another DWORD to the Client key named "DisabledByDefault" with Value = 0
    5. In the TRESTClient component of your example enable TLS13 in SecureProtocols

    image.thumb.png.24d663dd97c9c95e6bd5b42c3c6c063e.png

     

    Edit: You need to restart Windows to make the registry settings active.

     

×