

mvanrijnen
Members-
Content Count
489 -
Joined
-
Last visited
-
Days Won
1
Everything posted by mvanrijnen
-
Regression - Delphi 12 - Unable to debug dynamically loaded packages
mvanrijnen replied to @AT's topic in Delphi IDE and APIs
thats not good, having a problem with a RAD server package, which i would like to debug, gonna be a problem this week. Maybe the right time to say goodbye to RADserver and transfer the code to MARS (the Rest Server, not the planet) @Marco CantuWhats the status of this problem? -
Regression - Delphi 12 - Unable to debug dynamically loaded packages
mvanrijnen replied to @AT's topic in Delphi IDE and APIs
Is this fixed in D12.2 ? Would nice to know before i spent 2 days updating the dev environment . -
Good delphi learning sites for new team member
mvanrijnen posted a topic in Tips / Blogs / Tutorials / Videos
Hi folks, We have a new developer at out team, he got C# & Python at his study, and has to learn Delphi now to be productive in our team π What sites you recommend to start out with Delphi, we have him now looking to Learn Delphi, and the links mentioned there. -
RESTClient.OnNeedClientCertificate event does not execute
mvanrijnen replied to Leszek's topic in Network, Cloud and Web
So unusable π Thats the EMB way, big mouth, big blogs, moving fancy blog posts, but not complete components or working IDE (i also hacked a few of the Rest.BackEnd.* units because they do not complete support all properties of the TRestRequest etc) -
Omnithreadlibrary.com down? Check here and read user reports (downforeveryoneorjustme.com)
-
RESTClient.OnNeedClientCertificate event does not execute
mvanrijnen replied to Leszek's topic in Network, Cloud and Web
Which service are you trying to reach? Cause (long time ago for me) i think that it depends on the server settings if a ClientCert is needed. See for examplle "IdServerIOHandlerSSLOpenSSL1.SSLOptions.Mode :" property. Could be that this also has to be set in the client -
Delphi Rest Client Authorization with Client Certificates
mvanrijnen replied to MTKor's topic in Network, Cloud and Web
At what point you are stuck? You can use the "TRestClient.OnNeedClientCertificate" event, simple example code: We check the certificate name, which has to begin with a certain value (stored in the CNST_CERT_PREFIX constant), and of course it has to be a valid certificate. (i believe you need the client certificate installed in "user" context, not sure about that, long time ago i was busy with this). procedure TMyProgram.DoOnClientCertificateNeeded(const Sender: TObject; const ARequest: TURLRequest; const ACertificateList: TCertificateList; var AnIndex: Integer); var idx : integer; begin if CNST_CERT_PREFIX.IsEmpty then raise Exception.Create('[TMyProgram.DoOnClientCertificateNeeded] CNST_CERT_PREFIX is empty.'); for idx := 0 to ACertificateList.Count - 1 do begin if ACertificateList[idx].CertName.StartsWith(CNST_CERT_PREFIX) then begin if (ACertificateList[idx].Start<=Now) and (ACertificateList[idx].Expiry>Now) then begin AnIndex := idx; break; end else raise Exception.Create('[TMyProgram.DoOnClientCertificateNeeded] Client Certificate Expired.'); end; end; end; -
Upgarding from RAD Server 11 to RAD Server 12
mvanrijnen replied to Alex_mex's topic in General Help
Just moving to D12 myself. in the EMSDevServer (development environment for RadServer), i do not get breakpoints in my code? -
A better way to share global data structures than as global variables?
mvanrijnen replied to DavidJr.'s topic in Algorithms, Data Structures and Class Design
post deleted? -
How to rearrange projects in projects group file?
mvanrijnen replied to Robert Gilland's topic in Delphi IDE and APIs
just drag and drop in the projects list of the group? -
also check: GitHub - andrea-magni/MARS: MARS-Curiosity Delphi REST Library
-
TMethodImplementationIntercept/__dbk_fcall_wrapperο»Ώ called infinite and high cpu
mvanrijnen posted a topic in RTL and Delphi Object Pascal
We have one application which since a few months gives problems on most of the workstation here. (not all, ofcourse not on the dev machines π ) The application goes into high cpu constantly without doing anything (wanted). We noticed that this was causes by a thread which uses/started because TMethodImplementationIntercept so we fixed thats this method was not exported, then the troubles moved to __dbk_fcall_wrapper. It's only in one of the many applications we have here that this problem occurs, anyone any idea or direction we should search in? -
haha, you have stocks in that ? π (i still have to compare it to mitm)
-
if they are o365 accounts, you could take a look at the Microsoft Graph API instead. maybe worth instead of doing it the "old way".
-
Custom managed records with String List causing memory leak
mvanrijnen replied to Gary's topic in FMX
then he get's an AV, cause he's freeing the CustomButtons in his Clear method. -
Creating a recent folder location list in an INI file
mvanrijnen replied to JohnLM's topic in Algorithms, Data Structures and Class Design
i have a ini helpers for this .... -
But WHY π The whole purpose of the CE licenses is to attract developers, not scare them away ?
-
double trouble π
-
and now try this ) with this ( text as it )() fill fail (sometimes) π
-
Use this: System.SysUtils.TStringHelper.IndexOf - RAD Studio API Documentation (embarcadero.com) How to use the above to solve your problem is your job as a developer π
-
How do you get the CE version of 12 ? Delphi IDE for Native Apps: Community Edition - Embarcadero States its still 11.x ?
-
Delphi CE application accesses unknown IPs
mvanrijnen replied to everybyte's topic in Network, Cloud and Web
Ah see, little bit strange that a site as virustotal does not take this to consideration or report it with the found ip's. -
In D11.3, with search (ctrl-f and/or ctrl-shift-f), the checkbox for "Whole words only", goes randomly to checked state in my IDE. Somebody who knows why this is, and/or how to fix this ? (i want it not checked by default)
-
Delphi CE application accesses unknown IPs
mvanrijnen replied to everybyte's topic in Network, Cloud and Web
You can check this also with procmon: Process Monitor - Sysinternals | Microsoft Learn as said, i'm gonna check this now π (private laptop i have CE installed, will do the same tomorrow with the Enterprise edition). procmon does not detect any network connectivity simple console app: (and just for fun i attached the ip trace from procmon, running bds-> start project1 -> close bds) Virustotal result: Link: VirusTotal - File - 956317d6f12af53a4c97db41807e9dd51fd37c30057607cecb969fc9214ccb99 Scanning: Bkav Pro W32.AIDetectMalware RisingTrojan.Generic@AI.100 (RDML:gihstO5MCnK0eVlOewg5Rw) SecureAgeMalicious VBA32 TScope.Trojan.Delf IP Traffic When executing the file being studied, it generated the following IP traffic. 192.229.211.108:80 (TCP) 20.99.184.37:443 (TCP) program Project1; {$APPTYPE CONSOLE} {$R *.res} uses System.SysUtils; begin try try Writeln; Writeln('This is just a test'); except on E: Exception do Writeln(E.ClassName, ': ', E.Message); end; finally Writeln; Write('press enter...'); Readln; end; end. bds ip trace.txt -
Got message 'HTTP/1.1 401 Unauthorized' when tried to access user profile (https://graph.microsoft.com/v1.0/me)
mvanrijnen replied to Officeapi's topic in Network, Cloud and Web
i'm out of idea, very strange that you get a statuscode 200, visible content in the proxy but not content in the delphi object.