-
Content Count
2268 -
Joined
-
Last visited
-
Days Won
46
Everything posted by Fr0sT.Brutal
-
Android Mobile application using Firemonkey
Fr0sT.Brutal replied to Antony Augustus's topic in I made this
i wonder what's the meaning of that screen containing only the picture of a house with $ sign inside? It has 0.0 useful info IMHO- 18 replies
-
- android
- firemonkey
-
(and 1 more)
Tagged with:
-
Running commandline app and capturing output
Fr0sT.Brutal replied to Tommi Prami's topic in Windows API
Wouldn't this block at 2nd iteration ? -
class designation question
Fr0sT.Brutal replied to David Schwartz's topic in Algorithms, Data Structures and Class Design
Metaclasses are necessary when base Class1 is doing some things with Class2 or its descendants including creation. So you can either define virtual method CreateObj: TClass2 and override it (but that would require Class1 descendant) or just assign "class of TClass2" property. -
Tool to fix up uses clause unit namespaces?
Fr0sT.Brutal replied to Vincent Parrett's topic in General Help
What is not reliable enough in simple text replace? -
Difference between FastMM 4.992 and one that comes with Delphi (10.3)
Fr0sT.Brutal replied to Tommi Prami's topic in Delphi Third-Party
For any project that is bigger than 200 lines (and allows non-stock dependencies) I use full version. -
How do we know if the, TCP Socket connection is connected
Fr0sT.Brutal replied to Turan Can's topic in Cross-platform
In brief: to really reliably check whether a socket is alive, you should implement keep-alive (ping-pong) mechanism. OTOH, probably you don't need to know alive status at all, just control result of R/W functions. -
Difference between FastMM 4.992 and one that comes with Delphi (10.3)
Fr0sT.Brutal replied to Tommi Prami's topic in Delphi Third-Party
Just compare getmem.inc with FastMM4.pas and see differences... -
As I've read yesterday, author of 7zip implemented these functions in recent version so you can take a look. True security paranoids won't rely on closed source algorithm implementations though
-
How do we know if the, TCP Socket connection is connected
Fr0sT.Brutal replied to Turan Can's topic in Cross-platform
AFAIK this set of socket functions is identical in Win and Nix (both from Berkeley sockets). I'm curious, what do you do by recv() with length=-1? -
What are your compiler settings for debug builds?
Fr0sT.Brutal replied to dummzeuch's topic in Delphi IDE and APIs
I hate this in Android. Just an "Application has been closed" message or even worse, it just silently shuts down and you sit there like a cave man trying to handle a magic box, calling for gods' mercy to make the spirit of that magic box obey. Anyway there are different errors. Some of them shouldn't be ignored (memory corruption), some should be handled carefully (critical crash in processing but save user's data before shutdown) and some could be ignored. I always use range/overflow checking because little slowdown is better than buffer overrun vulnerability that could lead to malicious code execution, data leakage or app's hard crash - all these things we love in C/C++ apps *sarcasm* -
SSL Hand shake Error on TSslHttpRest
Fr0sT.Brutal replied to Thomas RIVANO's topic in ICS - Internet Component Suite
Probably https://www.ssllabs.com/ssltest/analyze.html could help -
How to disable automatic adding of units to interface-uses
Fr0sT.Brutal replied to microtronx's topic in FMX
The feature is unlikely could be disabled but you could try to cheat it. Just create empty unit FireDAC.FMXUI.Wait.pas inside your project's folder. -
Reading large UTF8 encoded file in chunks
Fr0sT.Brutal replied to Clément's topic in RTL and Delphi Object Pascal
I wrote Utf8toWide function that is able to process chunks of any size. If someone needs it, I could publish it. -
TIdSSLIOHandlerSocketOpenSSL and TLS 1.3 ?
Fr0sT.Brutal replied to Lars Fosdal's topic in Network, Cloud and Web
Why so complicated, why don't simply create pull request on Github? -
Btw, keep in mind that trivial TStrings.LoadFromStream for ASCII-encoded files eats up to 5x of file size at some moment. And 2x piece of that 5x must be allocated in a whole (so with fragmented memory and insufficient swap file it could fail even with ~500 MB)
-
I'd recommend to check if such memory consumption is expected. Then you can use FastMM's debug facilities to check allocated items, their exact size, types and many other details.
-
Moreover, there's implicit FTPS (just like HTTPS compared to HTTP - TLS from the very beginning using special port) and explicit (usual plain text FTP on usual port but initiates TLS after AUTH TLS command). Dunno why but the former is considered obsolete though it's somewhat simpler to implement.
-
I suspect this is just an interface to scheduler service, so probably not an option for various reasons
-
Do you mean some API functions or taskschd.msc?
-
I did exactly the same for mine xD
-
Stable remote control using Indy TCP/IP
Fr0sT.Brutal replied to Yaron's topic in Network, Cloud and Web
How do you imagine that notification with blocking sockets where you usually do a loop until recv or send returns -1? Even select won't tell whether connection has been reset. -
None except that code snippet but it's trivial. For x-platform you can use System.SyncObjs.TEvent.WaitFor. I couldn't find x-platform method to wait for multiple objects so to cancel the wait you'll have to reset each waitable object (so you'll have to keep a list of them... code becomes less and less short & trivial 🙂 )
-
Stable remote control using Indy TCP/IP
Fr0sT.Brutal replied to Yaron's topic in Network, Cloud and Web
How can you observe the disconnect on blocking sockets unless you try to read/write? -
I've no experience with OTL but a primitive solution comes to mind - launch a task with wait ev := CreateEvent(...) if WaitForSingleObject (ev, ScheduledTime-CurrentTime) = WAIT_TIMEOUT then ... do something scheduled to be able to cancel the wait, additional waitable object will be required and WaitForMultipleObjects instead
-
@Bob Devine I believe minimal set of FPC would satisfy all your needs while being alive and supportable. There's even a minimalistic TurboPascal-like IDE (fp.exe) and one more minimalistic graphic IDE MSEide Actually I was going to say "instead of compiling plugins". Of course nowadays almost all major script engines are JIT-ed to some bytecode, otherwise they won't be useful for any serious computations