-
Content Count
2946 -
Joined
-
Last visited
-
Days Won
166
Everything posted by Anders Melander
-
Large address space awareness. How to test properly?
Anders Melander replied to A.M. Hoornweg's topic in RTL and Delphi Object Pascal
As long as it doesn't do "pointer math" on the integer value then there shouldn't be problems casting between integer and pointer. -
You don't need to but you can. It's not really a SVG imagelist. It's an imagelist that also supports SVG meaning it can contain SVG, PNG, BMP, etc. This also mean that you can have one imagelist for low-res containing a mix of SVG and PNG and another for hi-res. I find that PNGs are often better for small (e.g. 16x16) low-res images.
-
You can only assign one imagelist at a time but if you've named your imagelist according to their instructions then they will switch between the different ones automatically. If you're using SVG then you only need one imagelist.
-
Amen to that. I've been involved in attempts to implement GUI testing using TestComplete three times in three different companies. Each time the project (the GUI test part) was abandoned after using massive amounts of resources writing and maintaining the test scripts (and by massive I mean several man years). How are one ever going to keep up if it takes a test engineer hours to update the tests for every small UI, workflow or timing change a developer makes. It's much more feasible to write test instructions and have the QA department do the tests manually. They can use TestComplete and the like for simple keyboard/mouse record/playback but the result verification is done manually. I remember a place where we outsourced the testing to an Indian company. I was quite impressed by the amount of bugs they initially found with no domain knowledge whatsoever and very little knowledge about how the application was supposed to work. From what I could see from the bug reports they had simply tried pressing every possible key combination or just smashed their hand into the keyboard in every single dialog. They found "features" we didn't even know we had. It made me think of the infinite monkey theorem. I have yet to see automated GUI test implemented successfully anywhere.
-
How to detect when control is scrolled into view
Anders Melander replied to PiedSoftware's topic in VCL
Something like this? (untested, just a guess) interface type TMyFrame = class(TFrame) private FHasLoaded: boolean; protected procedure PaintWindow(DC: HDC); override; procedure DoLoadFrame; end; implementation procedure TMyFrame.PaintWindow(DC: HDC); begin if (not FHasLoaded) then DoLoadFrame; inherited; end; procedure TMyFrame.DoLoadFrame; begin FHasLoaded := True; // Do load stuff here... end; Of course the frames has to be created before they can be scrolled into view but you can defer loading the frame content. I would probably solve the problem in a different way but I think the above does what you asked for. -
DEC (Delphi Encryption Compendium) has a new home
Anders Melander replied to TurboMagic's topic in Delphi Third-Party
The first point of entry is the readme. If the readme doesn't convince a potential user then I'm pretty sure they won't bother with the source. We're all busy. Why should you care? Because more users means more people that are likely to contribute. -
FYI: New Approximate algorithm for travelling salesman problem
Anders Melander replied to Tommi Prami's topic in Algorithms, Data Structures and Class Design
Woohoo Oh.., -
ANN: Better Translation Manager released
Anders Melander replied to Anders Melander's topic in Delphi Third-Party
Select the language in the Target combobox. If you click the small button below the combobox you'll get a dialog where you can enable an options that filters the list of available languages: Note that, even though your project can contain translations for multiple languages, you can only edit one language at a time. -
Vote for SAST support for Delphi in GitLab
Anders Melander replied to Darian Miller's topic in Tips / Blogs / Tutorials / Videos
I doubt most of us would benefit from this feature: -
Contributing to projects on GitHub with Subversion
Anders Melander replied to dummzeuch's topic in Tips / Blogs / Tutorials / Videos
After the last 4 years nothing about him surprises me much anymore -
Contributing to projects on GitHub with Subversion
Anders Melander replied to dummzeuch's topic in Tips / Blogs / Tutorials / Videos
How do you make calls then? I still have a land line but I haven't had any phones connected to it for ages. I guess I should cancel my subscription one of theses days . On the other hand, you never know when it'll come in handy; Zombie apocalypse, Skynet becomes self-aware, Trumps second, third and fourth term... -
Contributing to projects on GitHub with Subversion
Anders Melander replied to dummzeuch's topic in Tips / Blogs / Tutorials / Videos
And there's even a medical term for it: Rigor Mortis No but seriously, I'm not that young myself, but once you start not learning new stuff your cognitive abilities will deteriorate: Use it or Lose it. Your brain will create new neurons your whole life as long as you give it reason to. Luckily the brains plasticity means that a decline is reversible. Just give your brain some exercise. -
Best type for data buffer: TBytes, RawByteString, String, AnsiString, ...
Anders Melander replied to Rollo62's topic in Algorithms, Data Structures and Class Design
The only general advice I can give is: Convenience or Performance? Pick one. I won't get into this discussion about which of the many different data types can solve your problem best, because your requirements seems rather fluid and it's impossible to give any targeted advice, when we don't know anything about the specifics. I'm puzzled why one would even be asking a question like this other than to pass time. If the implementation details are important you shouldn't rely on something someone said on a forum anyway. Try different solutions and benchmark them. If none of the solutions are good enough then there will be something to discuss. Disclaimer: I've been up all night and I'm on my eight cup of coffee. -
Yes you're right. That's what I get for thinking I can remember issue numbers while watching a Counter Strike match..
- 14 replies
-
- rio
- olevariant
-
(and 1 more)
Tagged with:
-
That was the performance issue. RSP-14749 was the leak. But as Dave suggested, the change in ComObj probably fixed both.
- 14 replies
-
- rio
- olevariant
-
(and 1 more)
Tagged with:
-
Contributing to projects on GitHub with Subversion
Anders Melander replied to dummzeuch's topic in Tips / Blogs / Tutorials / Videos
Here's my VCS journey, as I remember it: 1994: MKS Source Integrity 1997: StarBase Versions & StarTeam, PVCS and CVS 1999: Borland TeamSource & Visual SourceSafe 2004 Borland StarTeam 2008 SVN 2018 Visual Studio Team Services 2019 Git Of these VSS and VSTS were bad but PVCS was horrible. Borland TeamSource is best forgotten. -
Contributing to projects on GitHub with Subversion
Anders Melander replied to dummzeuch's topic in Tips / Blogs / Tutorials / Videos
Reminds me of the time I tried to teach the great grandparents to use a mobile phone... -
Yeah. There's a reason we don't have <BLINK> in HTML anymore. P.S. I just tried googling "blink html"... WTH? Do they think they're clever? Okay they're a bit clever because if you google "html blink" the result differs subtly.
-
Contributing to projects on GitHub with Subversion
Anders Melander replied to dummzeuch's topic in Tips / Blogs / Tutorials / Videos
Looks nice. Do you know if they can also host the Gitlab runners or do you need to host those elsewhere? As far as I can tell, for a Delphi environment, I would need a runner running on Windows hosted on another platform (e.g. Azure) or a docker service running somewhere. -
Contributing to projects on GitHub with Subversion
Anders Melander replied to dummzeuch's topic in Tips / Blogs / Tutorials / Videos
-
Contributing to projects on GitHub with Subversion
Anders Melander replied to dummzeuch's topic in Tips / Blogs / Tutorials / Videos
Coming from SVN I struggled for a long time with Git. Primarily because the terminology is different. Once I understood the terms properly it clicked and I haven't touched SVN since. Nor do I want to. I think you need to try some more then. There's always TortoiseGit. I have it installed but I very seldom use it. It just feels clunky compared to *everything else*. One thing you need to be aware of is that in Git a file rename (or move) is is just a delete followed by an add. So there is no move/rename per se. That these two operations (delete+add) constitutes a move/rename is detected based on the content of the file. Therefore you should never rename a file and change the content in the same commit. -
Contributing to projects on GitHub with Subversion
Anders Melander replied to dummzeuch's topic in Tips / Blogs / Tutorials / Videos
Slashdot? https://slashdot.org/ Did you mean SourceForge? https://sourceforge.net/ Also, there are plenty of other public Git sites besides Github. -
Remove non-utf8 characters from a utf8 string
Anders Melander replied to borni69's topic in Algorithms, Data Structures and Class Design
Are you sure? -
Yes it could. And before reporting it as such one should find out if it is. That's not really a reliable metric to determine where a bug is located. Regardless, these kind of problems are regularly found in ZLib. Just try to search for "zlib loop" or go through the issue list at Github.
-
Yes, that's probably a bug. I don't know if ZLib is supposed to be able to handle anything you throw at it gracefully but being a general purpose library I would think so. We haven't seen the code that exhibits the problem or a sample of the data that causes it, so I'm hesitant to declare the problem a bug in ZLib or the Delphi wrapper. If it's caused by a bug in ZLib then it would be a good idea to also report it at the ZLib repository: https://github.com/madler/zlib I don't think Embarcadero is likely to fix bugs in ZLib.