-
Content Count
2899 -
Joined
-
Last visited
-
Days Won
160
Everything posted by Anders Melander
-
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.
-
How to remember units and classes, where is what?
Anders Melander replied to Mike Torrettinni's topic in Algorithms, Data Structures and Class Design
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. -
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...
-
FastMM5 now released by Pierre le Riche (small background story)
Anders Melander replied to Günther Schoch's topic in Delphi Third-Party
I think it's pretty clear: You need a license per developer, not per end user: -
Read the StackOverflow post David linked to.
-
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
-
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.
-
Experience/opinions on FastMM5
Anders Melander replied to Leif Uneus's topic in RTL and Delphi Object Pascal
[facepalm] -
Experience/opinions on FastMM5
Anders Melander replied to Leif Uneus's topic in RTL and Delphi Object Pascal
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. -
Experience/opinions on FastMM5
Anders Melander replied to Leif Uneus's topic in RTL and Delphi Object Pascal
https://www.google.com/search?q=GPL+V3 -
FastMM5 now released by Pierre le Riche (small background story)
Anders Melander replied to Günther Schoch's topic in Delphi Third-Party
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. -
Experience/opinions on FastMM5
Anders Melander replied to Leif Uneus's topic in RTL and Delphi Object Pascal
What makes you think it "supports NUMA"? -
Thread programming without sleep or WaitFor events
Anders Melander replied to turkverisoft's topic in Delphi IDE and APIs
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 -
Which includes every third party or homegrown component installed. @bazzer747 If you install MadExcept you will get a nice stack trace of the error.
-
Thread programming without sleep or WaitFor events
Anders Melander replied to turkverisoft's topic in Delphi IDE and APIs
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. -
Thread programming without sleep or WaitFor events
Anders Melander replied to turkverisoft's topic in Delphi IDE and APIs
Indeed. Unfortunately it requires Win8 or "better" which means it's out of bounds for me at least. -
Thread programming without sleep or WaitFor events
Anders Melander replied to turkverisoft's topic in Delphi IDE and APIs
And he even double posted his "response". I wonder if it's a bot -
Thread programming without sleep or WaitFor events
Anders Melander replied to turkverisoft's topic in Delphi IDE and APIs
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. -
Thread programming without sleep or WaitFor events
Anders Melander replied to turkverisoft's topic in Delphi IDE and APIs
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). -
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?
-
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.
-
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?
-
Isn't that just the old TurboPower profiler. The UI doesn't seem to have been updated since then. Ugh.
-
Yes. AFAIK VTune requires PDB-files. I've tried various tds to pdb converters but AFAIR they didn't work.
-
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.