Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 02/23/23 in all areas

  1. I hope you have the source code of this library. You need to recompile its units to use the Indy version you just installed. And make sure you only have one instance of the Indy dcus on the pathes the compiler searches for files (IDE library path, project search path).
  2. Dalija Prasnikar

    Creating FMX controls in a background thread

    From OS perspective bitmap operations can be performed in background threads and then bitmap could be transferred to UI for painting. This is where FMX has some issues that could and should be fixed. Same goes for working with 3D graphics primitives.
  3. I was able to connect to your specified URL using a web browser with TLS 1.2, and it received a response just fine. So you should be able to get a similar response using Indy with TLS 1.2, too. Have you tried using a packet sniffer, like Wireshark, to look at the actual TLS handshake that TIdSSLIOHandlerSocketOpenSSL is sending, to make sure it is really attempting to use TLS 1.2, and not say TLS 1.0 instead? Which version of the OpenSSL DLLs are you using, exactly? Does Indy's IsOpenSSL_TLSv1_2_Available() function in the IdSSLOpenSSLHeaders unit return True or False when the error occurs? Offhand, that code looks ok, as far as setting up the SSLIOHandler, though I do have a few comments (not related to the TLS error) about the rest of the code: Why are you setting the Request.ContentType and Request.ContentLength properties when you are not sending any data to the server? Why are you setting the Request.Accept property, instead of using the default? Both values include '*/*', so you are not really gaining anything, especially since the server's response is JSON, which is not specified in either value, so caught by '*/*' anyway. Why are you setting the Request.Host property to a different hostname than is specified in the URL? Do not set the Request.AcceptEncoding manually, let TIdHTTP manage that for you. If you want to support compressed responses, you need to assign a compressor component to the TIdHTTP.Compressor property, in which case TIdHTTP will then set the Request.AcceptEncoding property based on the compressor's actual capabilities.
  4. Sherlock

    Error when iOS application building in Delphi 11.2

    Just to mention another service: https://www.macincloud.com/
  5. programmerdelphi2k

    ODBC script for SQLite

    You can try create a new "key" (for your Alias) on "HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\ODBC Data Sources" in your registry. then, your app can create a new key with all data necessary for your alias, like: tip: use the same data like in desigtime NOTE: your customer should have ODBC install of course, to complete the task... Another tip: create a manual DSN definition in your PC, and go Registry and "Export it" to text and see how do it!!!
  6. Patrick PREMARTIN

    Error when iOS application building in Delphi 11.2

    You have a solution, even if you don't have or want to buy a M1/M2 Mac today: you can rent one for few a days at a low cost. Try https://www.scaleway.com/en/hello-m1/ They rent real Mac mini M1 hosted in a datacenter in Paris (France). You only have to install the softwares you need : Xcode and PAServer. You have a replay of my webinar (FR) at https://serialstreameur.fr/webinaire-20210304.php with links to written explanations (to translate in your language).
  7. Patrick PREMARTIN

    Error when iOS application building in Delphi 11.2

    iOS Simulator is only supported on Apple Silicon processors
  8. beytullah

    Error when iOS application building in Delphi 11.2

    Do you run successfully on IOS Device? (Not Simulator) I were working an project 7 years ago. One library not worked on IOS Simulator and not build project. But I runned on IOS device. The project built successfully. You should try run your project on IOS Device.
  9. programmerdelphi2k

    client pc database connection problem with interbase server

    are you sure that "Firewall/Antivirus" dont block it (any IP/Port)?
  10. Hans J. Ellingsgaard

    client pc database connection problem with interbase server

    Is port 3050 open on the server? Have you tried to connect from the client to the server with IB Consol?
  11. Brandon Staggs

    Creating FMX controls in a background thread

    This is a design flaw in FMX.
  12. Dalija Prasnikar

    Creating FMX controls in a background thread

    This is not possible because constructing forms and controls also interacts with the OS in thread-unsafe way. For instance creating window has thread affinity and window belongs to a thread that creates it. You cannot construct window in one thread and pass it to another. If you remove initialization code that interacts with OS and other thread-unsafe parts, controls would need to have separate initialization that would need to be synchronized with the main thread. This would be rather messy as different controls have different requirements and construction of controls would get additional layer of complexity which would also only slow things down. Forms streaming also uses global lock mechanism to protect global namespace (data modules can be constructed and streamed in background depending on used components), so adding synchronization during loading forms would also open potential for deadlocking, and preventing the deadlocks would also require additional calls and checks which would again slow everything down. This never worked in VCL and it does not work in FMX. Threading issues can be hard to catch. Just because you can create some components in background thread without immediately bumping into issues does not mean such code is bug free.
  13. tinyBigGAMES

    SDL3 for Pascal

    SDL3 for Pascal If you want to get your hands dirty and directly use the new SDL3, I got you covered. 😎 Add SDL3 to your uses statement and it will be linked into your executable with direct access, no DLLs to maintain. You also get miniaudio (for audio), Nuklear (for GUI), pl_mpeg (for video) and stb (for images & fonts) and more. Added a contrib folder and accepting PRs, if you wish to add a contribution. To start the ball rolling, I added ziparc archive utility for making standard password protected zip archives, using zlib/minzip from SDL3pas only. Enjoy! https://github.com/tinyBigGAMES/SDL3
  14. Either someone didn't understand FreeAndNil or the code used TObject in the first place and later changed to a typed pointer, but forgot to adjust the FreeAndNil call.
×