-
Content Count
2268 -
Joined
-
Last visited
-
Days Won
46
Everything posted by Fr0sT.Brutal
-
slowdown tcp transfer under Windows 10 64bits
Fr0sT.Brutal replied to Alain1533's topic in ICS - Internet Component Suite
Btw, to check the local network speed I successfully used iperf tool. There's plenty of such apps but that one satisfied all my needs -
A class that returns different types of components
Fr0sT.Brutal replied to Stano's topic in Algorithms, Data Structures and Class Design
MyClass.DBSource<TPanel>(5).Top := SpinEdit.Value; -
32bit RGBA TBitmap to RGB byte stream.
Fr0sT.Brutal replied to Tommi Prami's topic in Algorithms, Data Structures and Class Design
Range/overflow checks f.ex. -
Is it really that bad to Use boolean parameters to make your functions do two things?
Fr0sT.Brutal replied to Mike Torrettinni's topic in General Help
There is multiple SW_* variants so the example is irrelevant... Nice sample of bad naming, yes. Ideally it should be SetWindowEnabled IMHO -
I was forced to throw out my own timesync service on Windows when servers my apps are running on were joined to domain. Even with allowing domain policy I couldn't get time changing working. So first check if your app is able to change time at all (just call SetSystemTime without any network requests).
-
DelphiFMX-BASS, all platforms supported by FireMonkey framework
Fr0sT.Brutal replied to TDDung's topic in Cross-platform
I won't argue with that, you're absolutely right! But from your post wasn't clear whether you dislike republished binaries only or ANY pre-built binaries (hardcore Linuxoid-style π ). -
DelphiFMX-BASS, all platforms supported by FireMonkey framework
Fr0sT.Brutal replied to TDDung's topic in Cross-platform
Original author of these libs as trustful as could be any random software dude in Internet whose apps you're using. But he had already released BASS in stable form when I started coding usable apps, which was at 2003 I suppose so now he's been here at least for 20 years. -
DelphiFMX-BASS, all platforms supported by FireMonkey framework
Fr0sT.Brutal replied to TDDung's topic in Cross-platform
These hostings are must-know for every programmer so you won't regret learning them; moreover if you hope to attract some users / contributors -
Delphi Event-based and Asynchronous Programming eBook complete version released
Fr0sT.Brutal replied to Dalija Prasnikar's topic in Tips / Blogs / Tutorials / Videos
Less hugs => more code => more bugs! -
Delphi 64bit compiler RTL speedup
Fr0sT.Brutal replied to RDP1974's topic in RTL and Delphi Object Pascal
OK, good to know that. -
DelphiFMX-BASS, all platforms supported by FireMonkey framework
Fr0sT.Brutal replied to TDDung's topic in Cross-platform
I guess he mean (and I'm +1 to this) that sharing a software project on file storage is awkward. Usual way of doing this is source control hostings like Sourceforge, Github etc. PS Bass is cool. Years ago I wrote my own music player based on it -
Delphi 64bit compiler RTL speedup
Fr0sT.Brutal replied to RDP1974's topic in RTL and Delphi Object Pascal
If that "eaten" memory would be unused otherwise why you bother about that consumption? I suspect they just dynamically reserve as much memory as possible for internal needs. Links to original source of these libs would greatly improve trustfulness of your project. -
I know nothing on the subject but can't avoid mentioning that on any platform and with any language you still have the most universal solution - launching a child process that would do things.
-
Delphi Event-based and Asynchronous Programming eBook complete version released
Fr0sT.Brutal replied to Dalija Prasnikar's topic in Tips / Blogs / Tutorials / Videos
You could give him a single slice of this bread (i.e. one chapter) π -
32bit RGBA TBitmap to RGB byte stream.
Fr0sT.Brutal replied to Tommi Prami's topic in Algorithms, Data Structures and Class Design
That's true but not always possible. More essential lesson is when one encounters a slowdown it's wise to track what exactly is the cause. One doesn't even need timers and so on, it's enough to just comment out fragments and see what's changing -
32bit RGBA TBitmap to RGB byte stream.
Fr0sT.Brutal replied to Tommi Prami's topic in Algorithms, Data Structures and Class Design
I did quick & dumb test that has shown that 100 ScanLines on 5000*5000 bitmap takes 5 seconds (!) because bitmap is recreated in every call. So this is the real handbrake. Looking at TBitmap.GetScanLine you can extract necessary parts provided you have the pointer to the 1st row from initial ScanLine call. BytesPerScanline helper method is public so this even won't be a hack. -
What you're searching for are called tooltips. Window with TOOLTIPS_CLASS class, TTM_* messages and so on.
-
Is it really that bad to Use boolean parameters to make your functions do two things?
Fr0sT.Brutal replied to Mike Torrettinni's topic in General Help
You mean something like TFileSearcher.FindFiles('c:\', TFileSearcher.TFindFilesOptions.Subdirs); ? God when ppl ask for adding some features from other languages to Delphi I guess they don't mean this Javism π -
How to tell what code is locking a file resource within an application
Fr0sT.Brutal replied to RaelB's topic in RTL and Delphi Object Pascal
(side note) Generally, if one doesn't even know when his app opens a file, he has really big problems. First, all places in code that open and close file of interest should be located. Then you can set breakpoints to these places or add some logging. If code wasn't written by WinAPI fanatics, all file operations are performed via SysUtils.File* or old-school System.AssignFile/Reset/Write, so setting breakpoints to these functions will help. -
Are there any general DUnitX tests available, to check Delphi classes ?
Fr0sT.Brutal replied to Rollo62's topic in RTL and Delphi Object Pascal
Nick now lives at Github but there's no repo with test suite project. -
32bit RGBA TBitmap to RGB byte stream.
Fr0sT.Brutal replied to Tommi Prami's topic in Algorithms, Data Structures and Class Design
Are you absolutely sure? What happens if you comment out copy leaving only ScanLine? -
Just set breakpoint in OnClick and execute step by step to see what's the problem
-
Security - How freaky can you get!
Fr0sT.Brutal replied to ClΓ©ment's topic in Algorithms, Data Structures and Class Design
Okay. Presume there is Windows-10 PC and you can run any code with guest rights. Tell me how to read the memory of any system service π -
Is it really that bad to Use boolean parameters to make your functions do two things?
Fr0sT.Brutal replied to Mike Torrettinni's topic in General Help
Hmm I guess some of us has had too little sleep at night because I don't get your point. Of course properly named parameters of enum type carry more info than plain boolean. But they involve too much overhead and pollute namespace so I prefer a little bit of mystery the booleans bring -
When inserting a piece of code, its default style is for some reason "HTML". Here, at Delphi forum, it seems like a annoyance generator invented by the devil π