Jump to content

David Heffernan

Members
  • Content Count

    3513
  • Joined

  • Last visited

  • Days Won

    174

Posts posted by David Heffernan


  1. 8 hours ago, Michael Taylor said:

    Nothing that needs memory management, so I wanted to call my constructor "From" instead of "Create" to signify that no memory allocation takes place, and Free won't be necessary.

    This isn't true. Your class function calls the default constructor and that performs memory allocation. Free must be called. Instances of classes are heap allocated. 

    • Like 2

  2. 2 hours ago, David Heffernan said:

    You didn't tell us what happened when you used the old code. If you have a problem that you want some help with, then you should say what the problem is. People can't offer solutions to problems that aren't described.

     


  3. On 8/21/2023 at 7:17 AM, Rollo62 said:

    What I found it this article, maybe it helps, but I couldn't check it, because I have no SafeNet yet.

    https://medium.com/@joshualipson/ev-code-certificates-automated-builds-for-windows-6100fb8e8be6

    Perhaps, somebody has experiences or comments with that solution?

    This is precisely what I am doing. My Python build code to perform signing starts like this:

     

    def Sign(filename, sdk=None):
        # see https://medium.com/@joshualipson/ev-code-certificates-automated-builds-for-windows-6100fb8e8be6

     


  4. 3 minutes ago, Rollo62 said:

    It looks as if you want to download a file via HTTP request, like this here in a German blog.
    Then you should use something like Indy IdHttpClient for that purpose, as a rough guess what you are looking for.

    It doesn't look like that to me. It looks like a file read for a file named by UNC.

     

    I don't think I'd be wanting to use FileOpen anywhere ever. Shouldn't you be using streams these days?

     

    Having said that of course, FileOpen still works. You didn't tell us what happened when you used the old code. If you have a problem that you want some help with, then you should say what the problem is. People can't offer solutions to problems that aren't described.

     

    Do you understand what \\IP_address\FolderName\Filename is? I trust you do, and that the file specified by this UNC path is available on your current target device. Is it?

    • Like 1

  5. On 3/15/2021 at 4:57 PM, Guest said:

    an Exe is allocated in a simple address space, while a DLL is adjusted in "this space" and refereced by pointers, what can be "broked"  for many causes. 

     

    for me, an EXE should be always more quickly on "searches - for methods, vars, etc..." than a DLL. of course, some can not be correct here.

     

    For the record this is completely wrong 


  6. 8 hours ago, Remy Lebeau said:

    I'm sure either one will be fast enough for your needs.  Chess isn't very computationally heavy.

    I'm baffled. Both of these statements are wrong. 

     

    Delphi is known to be produce very poor and inefficient code. Although I'm not qualified to comment on FPC's code gen. 

    • Thanks 1
×