Jump to content

David Heffernan

Members
  • Content Count

    3699
  • Joined

  • Last visited

  • Days Won

    185

Everything posted by David Heffernan

  1. David Heffernan

    Bad build a mystery

    Is it possible that you have reached the upper size limit for resources? Try removing some other forms and see if the project builds. That would strengthen this hypothesis. I can't begin to understand how you end up with 2000 forms in a single executable.
  2. David Heffernan

    Profile photo

    He is still going strong with the Graun!
  3. David Heffernan

    Restart the same App?

    Which part don't you know how to do? On Windows at least it's a call to CreateProcess, then close the app, and then a wait function call. Do you know how to close your app? If so all that is left is CreateProcess and a wait call.
  4. David Heffernan

    Restart the same App?

    Easy 1. Create the new process passing in the pid of the previous process. 2. Close the previous process. 3. When the new process starts, have it wait until the previous process has terminated before it shows UI.
  5. David Heffernan

    Delphi 10.3 Update 2 available

    QC is always updated later
  6. David Heffernan

    DelphiTwain on 64-bit

    Nobody other than you knows where this handle comes from. For all we know you've got a simple 32/64 bit truncation error. But we can't see the relevant code.
  7. David Heffernan

    DelphiTwain on 64-bit

    Given that you are the only one with any code, and any ability to debug, you are best placed to investigate. My advice is to stop guessing and do some old fashioned debugging.
  8. David Heffernan

    DelphiTwain on 64-bit

    Well, apparently GlobalLock failed with an invalid handle. Why is that? You need to work out where Handle came from and why it is not valid.
  9. David Heffernan

    What options do I have to control custom releases?

    You really want to do this in an automated way, so that you can build in a scripted fashion.
  10. David Heffernan

    Why control methods (OnClick) can't be defined in Form Private section?

    No. What was meant was that the IDE could in principle use new style RTTI to locate private declarations. But it doesn't. It still relies on old style RTTI. I see no reason to expect this to change.
  11. David Heffernan

    Funny Code in System.Types

    Win64 anyone?
  12. David Heffernan

    Why control methods (OnClick) can't be defined in Form Private section?

    Actually, the component will be created at runtime even if its associated field is private, or indeed not existent. What happens is that the streaming framework creates the component, assigns it properties, but is unable to field a field into which to store the reference to the component.
  13. This information is documented http://docwiki.embarcadero.com/RADStudio/Rio/en/Delphi_Compiler_Directives_(List)_Index
  14. David Heffernan

    UltraCode64 for Delphi (aka 64-bit FastCode)

    Hmm. Seems like an odd way to go about it. Choosing to contribute to an open source project means making a commitment. I personally wouldn't want to do that without knowing that the project will have strong leadership and values. Making a an empty box and asking people to throw stuff in it as they please isn't at all enticing.
  15. David Heffernan

    Stop showing MainForm after load project

    This is environmental. The behaviour you describe is not what I encounter. We need to understand your environment and workflow.
  16. David Heffernan

    UltraCode64 for Delphi (aka 64-bit FastCode)

    Doesn't look like there is any code in this repo. I'm confused.
  17. David Heffernan

    Funny Code in System.Types

    EnsureRange in the RTL, Math unit IIRC
  18. David Heffernan

    Funny Code in System.Types

    Er, yes, I see it now!!
  19. David Heffernan

    Funny Code in System.Types

    Obviously that cast is a bit pointless but it hardly matters
  20. David Heffernan

    Using a var array in procedure paremetre

    You can use the Delete function directly if you have a dynamic array. It may be easier to use TList<T> though. However you will need to handle the nested class instances. Probably the design of your record type is a bad choice because it makes the lifetime very hard to manage.
  21. David Heffernan

    New Inline variables mess up IDE

    It's a bug and surely it's already reported. Have you searched QP yet? Obviously, if it is a bug, then you have to make that choice. I just did the search: https://quality.embarcadero.com/browse/RSP-21719 although I bet there are plenty of dupes
  22. David Heffernan

    New Inline variables mess up IDE

    Well, you'll have to make a choice. Have the squiggles, and accept that they are wrong, or remove the squiggles. Your call.
  23. David Heffernan

    New Inline variables mess up IDE

    Disable the IDE feature and rely on the compiler?
  24. David Heffernan

    Marking of the main form in a multiform VCL Application

    That's inevitable in a forum. If you want rigid enforcement of on topic discussion, this is definitely the wrong place. Did you submit a feature request? Without that I see little hope for this feature being implemented.
  25. David Heffernan

    Marking of the main form in a multiform VCL Application

    If you named your forms well, you'd be able to see from the name which one was the main form.
×