-
Content Count
2268 -
Joined
-
Last visited
-
Days Won
46
Everything posted by Fr0sT.Brutal
-
Use of dynamic control names
Fr0sT.Brutal replied to Bart Verbakel's topic in Algorithms, Data Structures and Class Design
FindComponent Or better set array of these buttons at form create and then loop through the array -
Register COM Object for create process/Fightiing AntiVirus
Fr0sT.Brutal replied to RTollison's topic in General Help
What happens if you run compiler with dummy arg (-?) ? What happens if you run sane number of threads (10)? No sense in hundreds of threads, they only waste resources and won't give you speedup -
Register COM Object for create process/Fightiing AntiVirus
Fr0sT.Brutal replied to RTollison's topic in General Help
It's important to determine which exact action triggers slowdown: createprocess itself or checking of produced files. You can check this by just running the compiler in many threads with '-?' parameter. Anyway what about drive speed? Maybe try to move to SSD or even memdrive? -
Simple ICS v8.70 file download example? (with timeout and progress bar)
Fr0sT.Brutal replied to PizzaProgram's topic in ICS - Internet Component Suite
BTW, you can use built-in WinInet functions for retrieving updates. They could handle HTTP(S) and FTP(S) with very low amount of code. -
Yeah, SFTP is PITA. Completely different protocol based on SSH so you must implement it from scratch. NodeJS has source-only implementations though (I mean, they do SSH level on the basis of built-in OpenSSL) so it's possible for Delphi as well but... nobody wants to do it. Especially considering Delphi can't embed OpenSSL (for free) so DLLs are in the game anyway and it's easier just to add libssh2.
-
KeepAliveTimeSec of TSslHttpServer
Fr0sT.Brutal replied to sp0987's topic in ICS - Internet Component Suite
Yes, that is quite unusual for HTTP but possible (standard doesn't restrict AFAIK). However, empty (without keep-alive packets) connections are really the candidates for closing by network devices. -
Well, 3rd party DLLs are not scary - OpenSSL, DB clients, chromium, etc. Sometimes they distribute the product as DLL so that any language could use it, even brainfuck. However there are plenty of native Delphi network components, commercial or free. I wouldn't use DLL for this without a significant reason. And if I would it would likely be cURL
-
KeepAliveTimeSec of TSslHttpServer
Fr0sT.Brutal replied to sp0987's topic in ICS - Internet Component Suite
Streaming, WebSockets -
Load DLL from resource, bypassing a file?
Fr0sT.Brutal replied to Angus Robertson's topic in Windows API
The latter; seems AV software could consider it suspicious. BTW, I'm curious about code signature checking of in-memory DLLs. WinVerifyTrust seems to not support PE BLOBs. So this could be an attack vector. Anyway, I'd consider this tech if it were working flawlessly. Alas it isn't. -
Load DLL from resource, bypassing a file?
Fr0sT.Brutal replied to Angus Robertson's topic in Windows API
UAC, privileges, WinDir & PF write protection... F.ex., dynamically generated code to bypass AV signature detection. Guys I'm not going to argue, that was just my guess work. Time will show. -
Load DLL from resource, bypassing a file?
Fr0sT.Brutal replied to Angus Robertson's topic in Windows API
Of course and it could be used by malicious software => thus security threat => thus should be removed or at least restricted to admins. Look at Android which gets more and more restrictions of getting into the system with every new release. -
Load DLL from resource, bypassing a file?
Fr0sT.Brutal replied to Angus Robertson's topic in Windows API
One more concern: with the global trend to tighten security of user-level OS-es (I mean, all that are not severe Linux), I suspect this kind of lib loading could be likely removed or at least require admin rights. -
Bug in THttpCli (and the SSL/TLS -version also)
Fr0sT.Brutal replied to Antero's topic in ICS - Internet Component Suite
IIRC there was check which of the ticks is greater exactly to avoid overflow exception so you likely use VERY old version. Anyway now x64 ticks provide 99.(9)% insurance against rollover -
Load DLL from resource, bypassing a file?
Fr0sT.Brutal replied to Angus Robertson's topic in Windows API
You could try original MemoryModule for DLLMain and exception handling. Looks like Joahim is not developing it anymore too. Exception issue here https://github.com/fancycode/MemoryModule/issues/4 was reported in 2012. It contains some solutions which haven't been implemented though And the issue with OpenSSL https://github.com/fancycode/MemoryModule/issues/109 Also check this https://www.codeproject.com/tips/430684/loading-win-dlls-manually-without-loadlibrary As you can see, the overall process is still a kind of hack with many issues arising. That's why I dropped this project (and probably this is the case for Joahim too). Alas, the most stable solution is to extract libs to files and then load them normally. -
Cross-platform Application Help for FMX and VCL
Fr0sT.Brutal replied to Alexander Halser's topic in Cross-platform
One flies on a plane and tries to solve some issue with your app. Oops, here comes the failure -
Well, I'm judging from my own experience as well. Many components still support D7 as the oldest version and many people report they develop with D7. Also it was the last very compact version without .Net, J#, MS Help etc crap (and with perfect help system using good old HLP)
-
However,
-
Load DLL from resource, bypassing a file?
Fr0sT.Brutal replied to Angus Robertson's topic in Windows API
I have all these commits in non-public branch and could send the whole repo to you if you're interested. -
I think you should be able to do this with FileOpen
-
Load DLL from resource, bypassing a file?
Fr0sT.Brutal replied to Angus Robertson's topic in Windows API
I maintained the fork of Martin's port of Joahim's lib for some time but abandoned it due to low requirements, instability and extremely frustrating process of porting updates. https://github.com/Fr0sT-Brutal/Delphi_MemoryModule Currently I'd recommend either to use original lib via OBJ files or to not use this tech at all. Alas, the process of loading from memory involves too much of black voodoo magic -
TMultipartHttpDownloader encountered a problem with a 302 url
Fr0sT.Brutal replied to noimes's topic in ICS - Internet Component Suite
Multipart download won't help if the channel at client side is slow. It only makes sense if a server limits speed per connection. In your case you just downloading N parts at CHANNEL_BPS/N speed -
Seems the easiest solution is to delay an action via timer. Disable buttons, create timer with interval ~200ms and do your action in its OnTimer.
-
Delphi has stopping on break points and exceptions
Fr0sT.Brutal replied to PiedSoftware's topic in Delphi IDE and APIs
Check line endings in source files. IDE often gets crazy if they're not CRLF -
ICS with POST request and JSON body
Fr0sT.Brutal replied to ogalonzo's topic in ICS - Internet Component Suite
I'd try to execute the request with cURL and if it works, compare the contents of both requests -
Many browsers have reader mode that simplifies the view removing most unrelated elements. You can also try to find similar addon that would allow saving a page in such form