Leaderboard
Popular Content
Showing content with the highest reputation on 03/05/23 in Posts
-
Uploaded the latest version - you can download from https://files.spring4d.com/UsesHelper/latest/UsesHelperSetup.zip
-
A tool to simplify source code search. Find where class or function is declared, where class descendants are declared, search only in comments or in strings, etc. Build for Delphi and written in Delphi from scratch. Detailed description: https://delphihtmlcomponents.com/codefinder.html
-
Is it possible that an exception does not inherits from Exception class?
SwiftExpat replied to Wagner Landgraf's topic in RTL and Delphi Object Pascal
You could try to write the except statement with the else syntax to see if it gets caught. I had to do this in web core, null items will raise an exception that are a special exception. try ... except on E: Exception do Logger.Warn('Failed app tool init : ' + E.Message, self); else // handle everything else Logger.Warn('Failed app tool init', self); end; -
Delphi 11.1, Android API 31, FLAG_IMMUTABLE in Pending Intent
nufus42 replied to nufus42's topic in FMX
Believe it or not, your idea worked. I've extended the options of all the PendingIntents in System.Android.Notification (after copying to my project folder) with "or TJPendingIntent.JavaClass.FLAG_IMMUTABLE" and my error is gone and my weekend is saved (at least the sunday). Thanks man! I've read a lot of your comments, when I silently tried to find solutions for my problems and most of the time they at least helped me to find the right way. If our ways should ever cross (quite umlikely because we're living in totally different parts of the world - Germany here) I would be honored to be able to buy you a drink or two. -
Is there any way to save / restore the position of the Debug Inspector?
programmerdelphi2k replied to dummzeuch's topic in Delphi IDE and APIs
As shown in the title bar of the mini-window, a new thread (each Debug) is launched every time the "Inspector" function is called... so the window is created in its own environment. Trying to save the mini-window's new position, and then saving the Desktop.Dsk file again, as you've seen, doesn't work. Even if you put a "read-only" attribute on the file, the IDE does the following: it checks that the file is write-protected, and creates a backup and a new Desktop.dsk file, this way it is not possible use this "hack". It could be possible to change only the values referring to the "Inspector" in the section "[PropInspDesignerSelection]", however, as a new mini-window is created at each call of the "inspector", this also does not seem to work for me here. [PropInspDesignerSelection] .. ExpandedItems=Anchors=0,BorderIcons=0,Constraints=0,Font=0,ImageMargins=0,LiveBindings=0,"LiveBindings Designer=0",Margins=0,GlassFrame=0,HorzScrollBar=0,Action=0,"Drag Drop/Docking=0","Help and Hints=0",Input=0,Layout=0,Legacy=0,Linkage=0,Locale=0,Localizable=0,Miscellaneous=0,Visual=0,Padding=0 Just out of curiosity, after changing the position of the miniwindow and resaving the Desktop.dsk, I saw that the values are changed in at least 10 different places inside the Desktop.dsk file. And in the registry, there is no reference to changes, at least here in my test. it's all on-demand, as expected! -
Is it possible that an exception does not inherits from Exception class?
Marco V replied to Wagner Landgraf's topic in RTL and Delphi Object Pascal
Corruption of the stack can mess up SEH I guess. -
Is it possible that an exception does not inherits from Exception class?
programmerdelphi2k replied to Wagner Landgraf's topic in RTL and Delphi Object Pascal
maybe this can happens because the many languages use a "CLR" as proxy (between original language and platform target) then, I think that can happens in rare case... https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals/exceptions/ https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/language-specification/exceptions -
or ... GetMem(ballnumber, 7000); FillChar(ballnumber[0], 7000, 5);
-
As @PeterBelow wrote to you, what you indicated can be written more simply, readably and effectively in Pascal. It looks like you're writing "C" code. Just in case, to explain better you can write this code which allows you to: 1) In case of fixed extensions, to avoid some errors because they are already checked during compilation; 2) However, in case of errors (as in dynamic extensions), much clearer errors will be generated (erange errror: "Range Check Error"); 3) You can use the Low, High methods to automatically limit the cycles to the maximum extent of the arrays, avoiding the risk of "overshooting" the limits. //Static array var ballnumber: array [0..6999] of byte; i: integer; begin for i := Low(ballnumber) to High(ballnumber) do ballnumber[i] := 5; end; //Dynamic array var ballnumber: array of byte; i: integer; begin try SetLength(ballnumber, 7000); //<----Like GetMem for i := Low(ballnumber) to High(ballnumber) do ballnumber[i] := 5; finally SetLength(ballnumber, 0); //<---- Like FreeMem end; end;
-
@Patrick PREMARTIN I know about this... my question was "if Phillip" would can and would like try it" until solve the last problem: wait support solution.
-
Hi, The generated code file is multiplatform, but currently the trial only provides the required files for Windows, but the library takes the code from the sgcWebSockets package which is multiplatform. I've just tried to compile an openAPI generated specification and works well on OSX. I'll add support for all Delphi personalities on next the sgcOpenAPI Parser version, thanks for the suggestion. The Web service is called in the same process where is called the request, so if the call is called from the main thread, the request will be called in the main thread. Kind Regards, Sergio
-
Uploaded the latest release - 1.2.0.4 - you can download from https://files.spring4d.com/TestInsight/latest/TestInsightSetup.zip
-
I would also check the dfm file.
-
69999
-
I did not need to recompile my third-party 11.2 packages (TMS Components, LMD Components, Intraweb), so I guess 11.3 is binary compatible to 11.2. I certainly wouldn't mind having a thorough 2-pass compiler producing fast and tight executables for release mode. But during development and debugging I prefer F9 to be fast.
-
here is a screen capture of the presentation with numbers the product is big, many different usage are done with it, I can understand bugs are there. we can discuss the delay for fix to be delivered, but about the amount of requests I'm not sure they can do anything (even if some bugs should not passed alpha and beta releases, but beta testers (like me) can't check everything except projects we work on).
-
ChildForm sest Action to caFree on OnClose event handler Owner calls FreeNotification(ChildForm) after creating the childform. Owner overrides Notification() and when it receives notification, that childform is freed, then sets variable to nil (or whatever needs to be done). Owner calls RemoveFreeNotification(ChildForm) when it is going to manually free childform or when owner itself is going to be freed.
-
You have to use Release instead of Free or Destroy. Release will defer the actual Free until after all events handlers are done.
-
Frustration at my dev tool lagging behind. The editor is the least of my worries. It's the poor and never changing performance of the code emitted by the compiler that frustrates me the most.
-
Of course, other editors such as UltraEdit, Notepad++, Atom, VSCode, SublimeText have long had that functionality, and even delphi itself when installing CnPack. The new thing is that it will come as an integral part of the IDE.
-
Indy does have some binaries in its OpenSSL-binaries GitHub repo, but it currently has only .DLLs for Windows, .SO's for Android, and static .A's for iOS, there are no .DYLIB's for macOS, sorry.
-
It does in Delphi 11: https://docwiki.embarcadero.com/RADStudio/Alexandria/en/New_features_and_customer_reported_issues_fixed_in_RAD_Studio_11.0
-
Maybe the fact that I just can hit a shortcut and press enter in less than a second to add a uses without completely being disturbed by that UI? It's just a different mindset - I loved the way Visual Studio handled this with their quick action system and wanted it like that in Delphi as well. Maybe I am missing something but tell me the steps to add the containing unit once I declare a variable of type TWuppdi with GExperts. With UsesHelper while on TWuppdi I press Ctr+Shift+A Enter and the unit is in the uses.