-
Content Count
170 -
Joined
-
Last visited
Everything posted by softtouch
-
Is there a single function to retrieve the path to the Desktop which works on Windows and macOS?
-
Yes, that seems to be the only way at the moment. Thanks for that!
-
I am trying to figure out hot to make a screenshot via code of the own app when running on macOS, but could not find a solution. Does anybody here has a clue for me? Windows is no problem, just macOS cause headache.
-
I will play with it, thanks. Edit: Tested and works just fine 🙂
-
Thanks, I thought there might be a single function somewhere in IOUtils, but apparently not. All other path are available via IOUtils, just the desktop path not.
-
Is there any way to detect that the webview2 runtime is installed on the target system?
-
For macos, I tried Indy, which need openssl, and does not seem to work with newer openssl libs or tls 1.3, or even with the systems ssl implementation. I also tried using THttpClient, which works but crash on mac when trying to set a proxy. There is also stated that it will always use the system proxy. I need to use public and private proxies, multiple requests, each request has to use another proxy. Does anybody know any 3rd. party component that can use ssl without the need of openssl, and can set individual proxies for each request?
-
Cross platform HTTP client with proxy support?
softtouch replied to softtouch's topic in Network, Cloud and Web
I could provide a private proxy if needed. I can also provide the small test program. When I set the proxy with h.ProxySettings := TProxySettings.Create(<IP>,<PORT>,<USER>,<PASS>); it will call the procedure TMacHTTPClient.SetMacProxySettings in System.Net.HTTPClient.Mac, which calls various functions like "LDict.setValue(TNSNumber.OCClass.numberWithInt(1), kCFNetworkProxiesHTTPEnable);", but all the calls to kCFNetworkProxiesHTTPEnable and other "kCFNetworkProxies..." return always an empty string, causing somehow the app to crash. -
Cross platform HTTP client with proxy support?
softtouch replied to softtouch's topic in Network, Cloud and Web
I tried both variations, both crash at the same line. Even setting a proxy would not work on macOS, it still should not crash the program. I used this same code already on older macOS versions, and there was no crash. Possible macOS 13.x cause it, I have no clue and also cant spend much time to investigate this, I just need to find a working component which works under Windows and macOS target, not using openssl. -
Cross platform HTTP client with proxy support?
softtouch replied to softtouch's topic in Network, Cloud and Web
The example code is just the smallest possible code causing the crash. The moment I set a proxy, it crash in the code seen in the screenshot there in System.Net.HttpClient.Mac, thats why I cant use THttpClient, even I would like to (because of the ssl thing). -
Cross platform HTTP client with proxy support?
softtouch replied to softtouch's topic in Network, Cloud and Web
@esegece your post is unrelated to my request of a 3rd party component that works without openssl on macos. -
Cross platform HTTP client with proxy support?
softtouch replied to softtouch's topic in Network, Cloud and Web
Unfortunately, I cannot get that to work with macOS/Cross platform and it seems to use also openssl. -
The following code (compiled under Delphi 11.2, target macOS 64 bit, macOS is Ventura 13, sdk is 13.1) h:=THTTPClient.Create; h.ProxySettings.Create(<IP>,<PORT>,<USER>,<PASS>); h.Get(<URL>); h.Free; works fine on Windows 32 and 64 bit target, and it use the proxy. With macOS target, it trigger an exception class 6. The exception happen in System.Net.HTTPClient.Mac, see attached image. What am I doing wrong?
-
Delphi 11.2 - Unable to use proxy with macOS target
softtouch replied to softtouch's topic in Cross-platform
That sounds bad. I thought that was fixed in 10.4. At leat, it should not crash the app... Is there any other http client out there which works with Windows and macOS and does not relay openssl libs? I need to do GET, HEAD, POST, and all by using various proxies, multithreaded. -
Will there be in the near future any update to support macOS 64 bit?
-
MSBuild error when switching platforms and try to compile
softtouch posted a topic in Cross-platform
With Delphi 11.1 update 1 and firemonkey platform, with targets Win and macOS, when I compile for Win, no issue, then I switch platform and try to compile for osx, and get the following error: When I exit and restart the ide, I can compile for osx, but the same error comes up when switching back to Win64 target. -
I believe, the component you have been looking for was TmxStorage from maxcomponents.
-
All right. Does it allow to add binary files too or only text files?
-
Do you have by chance the component available? I am also looking for a form storage.
-
I installed new Ubuntu 20.04, followed the Embarcadero doc to setup everything, and I get the same "Exception class stop (17)", with a play new project without any code.
-
So it seems to compile and run fine also on the latest Ubuntu 22.x, but can debug only when using older ubuntu versions? I have no issue at all as long I do not try to debug.
-
Does not work for me. I attached some screenshots. One shows the properties of the symlink, the next the output in the paserver window, and another showing the exception in the IDE.
-
I did that, and get nothing but lots of errors in the PAServer Windows and get "Exception class stop (17) right away in the ide.
-
11.2 Pre-Upgrade Checklist / back out plan
softtouch replied to SwiftExpat's topic in Delphi IDE and APIs
Can 11.2 be installed over 11.1 or upgrade 11.1 to 11.2 without removing 11.1? -
I need to execute external programs like youtube-dl, ffmpeg etc. and also execute chmod and such on macOS. I kept searching for days and days and did not find any working example. Is there anything similar TDosCommand, but for firemonkey?