Jump to content

Anders Melander

Members
  • Content Count

    2312
  • Joined

  • Last visited

  • Days Won

    119

Everything posted by Anders Melander

  1. Anders Melander

    Experience/opinions on FastMM5

    Give it a rest, will you?
  2. Anders Melander

    Problem with memory leak

    This is not related to your problem, but you should PostQuitMessage if you remove a WM_QUIT from the message queue.
  3. Anders Melander

    Extend the system PATH

    Tools > Options > Environment Options > Environment Variables
  4. Anders Melander

    Function with just underscore _() seems to be valid

    No.
  5. Anders Melander

    WM_MOUSEMOVE message

    There are a lot of things that can cause this. Probably something you have running on your system. Might even be the debugger. https://devblogs.microsoft.com/oldnewthing/20160616-00/?p=93685 https://devblogs.microsoft.com/oldnewthing/20031001-00/?p=42343
  6. Anders Melander

    TFrame and VCL styles [solved]

    I use DevExpress and I'm semi-satisfied with it. Besides the occasional update for new ribbon styles they rarely add new skins and some skins can be a real challenge to use. Many skins have problems with white text on white background with certain parent/child control combinations (or grey text on black background for the dark skins).
  7. It seems you have just reverted the two sections of code to the way they where in Delphi 10.2, but do we know why they were changed in the first place. Your fix might be reintroducing another bug. I've not analyzed the internals of the thread pool but your change, and the rationale behind it, "feels" more correct than the original code.
  8. Anders Melander

    Closing Forms from other forms

    const MSG_CLOSE = WM_USER; type TMyForm = class(TForm) private procedure MsgClose(var Msg: TMessage); message MSG_CLOSE; public procedure DoIt; end; procedure TMyForm.MsgClose(var Msg: TMessage); begin Close; end; procedure TMyForm.DoIt; var NextForm: TMyNextForm; begin NextForm := TMyNextForm.Create(Application); // Close deferred PostMessage(Handle, MSG_CLOSE, 0, 0); // Open next form NextForm.Show; // or ShowModal end; If your form is destroyed when it is closed then you can just use TForm.Release instead.
  9. Anders Melander

    TFrame and VCL styles [solved]

    Okay. I've never used VCL styles so I have no other suggestions.
  10. Anders Melander

    TFrame and VCL styles [solved]

    Assuming you've not already done the obvious and googled "delphi tframe styles", have you made sure that ParentBackground=True on the frame?
  11. Anders Melander

    Closing Forms from other forms

    Don't create dependencies between unrelated forms (or even related ones but that's another matter). It's hard to advise you when I don't know the architecture of your application but let's assume that it's a small application with a main form and the three forms you mentioned. Decide on where the controller role should lie. In a small application this can just be the main form. Make sure the controller knows the state of the different forms it controls. Only open and close forms via the controller. Now it should be a simple job of closing the two other forms if the third is opened. You may need to use postponed close with messages or TForm.Release depending on how the lifetime of your forms are managed.
  12. Anders Melander

    Active Directory authentication

    You don't need any components. Just use the COM interface: https://docs.microsoft.com/windows/win32/adsi/active-directory-service-interfaces-adsi I haven't worked with AD but my guess is that you just need to import the relevant type library and work from there (Component > Import Component...): but start by reading the documentation.
  13. In my work there's rarely a difference. I have a lot of clients where the job boils down to "our code sucks - fix it". The problem is often the complete lack of a framework - or a badly designed one. Yes! In my work process I usually refactor and redesign iteratively, continuously changing stuff toward a distant goal while making sure the new code still works. In the beginning the size of the code and the complexity grows as the solution now contains both the old mess and the new solution. Then at some point it's as if the junk suddenly evaporates and I'm left with amazingly little code. Always a good feeling.
  14. Anders Melander

    Delphi Closedown Error

    Unless you expect the unexpected 🙂 No but seriously, my experience is that if your hardware and the drivers are good, then Windows is pretty stable. Bad drivers can really mess Windows up but I guess that's expected. I'm also fairly conservative about what software I allow on the system. No cloud storage (iTunes, GDrive, etc), Chrome or Logitech drivers. The Up Time on my main development workstation is currently 163 days...
  15. Anders Melander

    FastMM5 now released by Pierre le Riche (small background story)

    I think it's pretty clear: You need a license per developer, not per end user:
  16. Anders Melander

    Capturing Console Output

    Read the StackOverflow post David linked to.
  17. Anders Melander

    Delphi Closedown Error

    You shut down Windows? Why? I just suspend. Can't remember when I last did a shutdown. That's one of the advantages of using Windows 7; You don't have to reboot so often due to windows update
  18. Anders Melander

    Delphi Closedown Error

    If you post the madexcept error report here I'm sure we can help you - and you'll learn how to interpret a call stack.
  19. Anders Melander

    Experience/opinions on FastMM5

    [facepalm]
  20. Anders Melander

    Experience/opinions on FastMM5

    So you're complaining that Pierre has enabled us to use FastMM 5 for free and that there's conditions for this use? I think "thank you" would be more appropriate.
  21. Anders Melander

    Experience/opinions on FastMM5

    https://www.google.com/search?q=GPL+V3
  22. Anders Melander

    FastMM5 now released by Pierre le Riche (small background story)

    It's explained in the readme. It would be simpler if you described what you're doing and what your experience is, than us explaining every possible improved scenario.
  23. Anders Melander

    Experience/opinions on FastMM5

    What makes you think it "supports NUMA"?
  24. Anders Melander

    Thread programming without sleep or WaitFor events

    Make that multi posted. What an a**. https://www.nldelphi.com/showthread.php?43637-Thread-programming-without-sleep-or-WaitFor-events&s=9c6121658fc40c66ce2abcf948937ab2 https://www.sql.ru/forum/1324939/thread-programming-without-sleep-or-waitfor-events https://www.cyberforum.ru/delphi/thread2630964.html
×