Jump to content

Anders Melander

Members
  • Content Count

    2899
  • Joined

  • Last visited

  • Days Won

    160

Everything posted by Anders Melander

  1. 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.
  2. 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.
  3. 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...
  4. 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:
  5. Anders Melander

    Capturing Console Output

    Read the StackOverflow post David linked to.
  6. 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
  7. 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.
  8. Anders Melander

    Experience/opinions on FastMM5

    [facepalm]
  9. 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.
  10. Anders Melander

    Experience/opinions on FastMM5

    https://www.google.com/search?q=GPL+V3
  11. 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.
  12. Anders Melander

    Experience/opinions on FastMM5

    What makes you think it "supports NUMA"?
  13. 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
  14. Anders Melander

    Delphi Closedown Error

    Which includes every third party or homegrown component installed. @bazzer747 If you install MadExcept you will get a nice stack trace of the error.
  15. Anders Melander

    Thread programming without sleep or WaitFor events

    It's not really a problem. I have to support Windows 7 since the majority of my customers are still using it. In six to eight months I think Windows 10 will overtake it, but even then I will still have to support Windows 7 for those that use it. I've not yet had any needs beyond what Windows 7 provides so like I said it's not a problem for me or my customers.
  16. Anders Melander

    Thread programming without sleep or WaitFor events

    Indeed. Unfortunately it requires Win8 or "better" which means it's out of bounds for me at least.
  17. Anders Melander

    Thread programming without sleep or WaitFor events

    And he even double posted his "response". I wonder if it's a bot
  18. Anders Melander

    Thread programming without sleep or WaitFor events

    WTH? And it was closed before he reposted it verbatim here. I hate that. @turkverisoft If you're just going to ignore the advice you get you will not only be wasting your own time but more importantly the time of the people trying to help you. Now go stand in the corner. I'm out.
  19. Anders Melander

    Thread programming without sleep or WaitFor events

    Unless you're running on a Commodore 64 you shouldn't be seeing such delays due to Sleep or WaitForSingleObject. There must be something else affecting the result but it's hard to tell without seeing your source. How many threads do you have running concurrently? Anyway, IO Completion Ports are generally considered the best way to get optimal performance in the scenario you describe. It should be fairly easy to find some examples of how to utilize them with Delphi. ...and don't mess with the thread affinity. Leave the thread scheduling to the OS. It's better at it and it shouldn't really be needed for something like this. P.S. Don't use Sleep(0).
  20. Anders Melander

    License key system

    If you were in my employ I'd fire you for doing something like that. What happens when a bug in your code causes your license check to fail and you execute corrupted code that wipes the customers disk?
  21. Anders Melander

    Profiler for Delphi

    Well, I must admit it's been at least 3 years since I last used AQTime on a 64-bit project, and I no longer have a license for it, so my memories of the experience might have improved with age. I'll need a 64 bit profiler for my current project sooner or later so I guess I'll get a refresher.
  22. Anders Melander

    Profiler for Delphi

    I've used both VTune and AQTime with 64-bit projects and I can't recall that I had problems with it. What's your experience?
  23. Anders Melander

    Profiler for Delphi

    Isn't that just the old TurboPower profiler. The UI doesn't seem to have been updated since then. Ugh.
  24. Anders Melander

    Profiler for Delphi

    Yes. AFAIK VTune requires PDB-files. I've tried various tds to pdb converters but AFAIR they didn't work.
  25. Anders Melander

    Profiler for Delphi

    In my experience you get what you pay for. None of the free profilers has ever worked satisfactory for me. I would recommend AQTime or VTune but they are both a bit expensive. I prefer VTune but as it doesn't support Delphi debug info it's only suitable for asm level profiling. It's excellent for that though.
×