Jump to content

Fr0sT.Brutal

Members
  • Content Count

    2268
  • Joined

  • Last visited

  • Days Won

    46

Everything posted by Fr0sT.Brutal

  1. Fr0sT.Brutal

    Use of dynamic control names

    FindComponent Or better set array of these buttons at form create and then loop through the array
  2. 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
  3. 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?
  4. 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.
  5. Fr0sT.Brutal

    Chilkat Delphi DLL API - Experiences

    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.
  6. Fr0sT.Brutal

    KeepAliveTimeSec of TSslHttpServer

    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.
  7. Fr0sT.Brutal

    Chilkat Delphi DLL API - Experiences

    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
  8. Fr0sT.Brutal

    KeepAliveTimeSec of TSslHttpServer

    Streaming, WebSockets
  9. Fr0sT.Brutal

    Load DLL from resource, bypassing a file?

    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.
  10. Fr0sT.Brutal

    Load DLL from resource, bypassing a file?

    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.
  11. Fr0sT.Brutal

    Load DLL from resource, bypassing a file?

    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.
  12. Fr0sT.Brutal

    Load DLL from resource, bypassing a file?

    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.
  13. 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
  14. Fr0sT.Brutal

    Load DLL from resource, bypassing a file?

    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.
  15. Fr0sT.Brutal

    Cross-platform Application Help for FMX and VCL

    One flies on a plane and tries to solve some issue with your app. Oops, here comes the failure
  16. Fr0sT.Brutal

    Rad 12 Beta - Link to News

    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)
  17. Fr0sT.Brutal

    Rad 12 Beta - Link to News

    However,
  18. Fr0sT.Brutal

    Load DLL from resource, bypassing a file?

    I have all these commits in non-public branch and could send the whole repo to you if you're interested.
  19. Fr0sT.Brutal

    Delphi Linux Curl

    I think you should be able to do this with FileOpen
  20. Fr0sT.Brutal

    Load DLL from resource, bypassing a file?

    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
  21. 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
  22. Fr0sT.Brutal

    ProcessMessages doesn't seem to update controls

    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.
  23. Fr0sT.Brutal

    Delphi has stopping on break points and exceptions

    Check line endings in source files. IDE often gets crazy if they're not CRLF
  24. Fr0sT.Brutal

    ICS with POST request and JSON body

    I'd try to execute the request with cURL and if it works, compare the contents of both requests
  25. Fr0sT.Brutal

    Export a thread??

    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
×