-
Content Count
3458 -
Joined
-
Last visited
-
Days Won
114
Everything posted by Lars Fosdal
-
Were the crashes related to missing components?
-
There is a road-poster. It says "You are here".
-
SQL query to read a single cell from an Excel spreadsheet...
Lars Fosdal replied to Mark-'s topic in Databases
There are numerous posts on StackOverflow on this topic, most asking why it is not working as expected π Would it be an alternative to open the excel file in excel and use COM to extract the data from Delphi code? -
Exception Handling with a Middle Tier Application
Lars Fosdal replied to JIMSMITH's topic in Algorithms, Data Structures and Class Design
@A.M. Hoornweg Passing the exception type and callstack info from the server would be useful for making an educated handling in the client, but I don't see why raising an exception in the client would be helpful. The callstack from the server side exception won't be the same as the callstack from an exception raised in the client,. It all depends on the client-side context, of course, so sometimes an exception may be acceptable, but frankly; I prefer to not raise an exception if I can handle a problem flow in a better way. -
Exception Handling with a Middle Tier Application
Lars Fosdal replied to JIMSMITH's topic in Algorithms, Data Structures and Class Design
It isn't worse than your response having result codes that indicate success + data, or failure + type of failure, and your client responding to these the way you want it to. F.x Client -> Server, send me all the details on <some reference> <- Server: dude, that was a bad reference - I almost crashed! Client: Well, server didn't like that, so I better tell the user that the server couldn't find his shit and that the request upset the server. -
F2084 Internal Error in Delphi compiler
Lars Fosdal replied to Kryvich's topic in Delphi IDE and APIs
Why would one declare an empty record? -
Exception Handling with a Middle Tier Application
Lars Fosdal replied to JIMSMITH's topic in Algorithms, Data Structures and Class Design
Firstly, you need to know the nature of the exception. Do you use EurekaLog or MadExcept? If not, you are blind to the actual cause of the exceptions. Do you know what your code is doing when it stops processing requests or why it stops? Once you know what goes wrong, add checks to avoid execution when you have invalid data. It may be useful to have a try/except block to set return values that indicate a failure, instead of exiting by exception, but it is rarely useful to have "catch all" blocks simply to silence exceptions. Secure each piece of code that runs in a thread and uses shared resources with try/finally so that any resource you allocate can be returned to the shared pool, and any locks you grab can be unlocked. -
Wrappers for Java/C/C++/C# are not trivial, depending on the complexity of structures and formats. Python might be an alternative - have a look in https://en.delphipraxis.net/forum/39-python4delphi/
-
https://docwiki.embarcadero.com/RADStudio/Athens/en/Using_the_Google_Play_In-app_Billing_Service
-
Under which user is the service running? Open "Services", double-click your service, check the "Logon as" tab (W11). Does it allow interacting with the desktop?
-
I don't think we need such a forum yet. The AI would be external to Delphi even when an AI assist tool integrates in the IDE. The problems with incorrect AI generated code should be raised on the forums of the relevant AI producer.
-
function InitializeSetup(): Boolean; begin Result := FileExists(ExpandConstant('C:\mygame\TEST\install.exe')) or FileExists(ExpandConstant('D:\mygame\TEST\install.exe')); end; Not sure what you mean by "assign 2 paths to this directive".
-
Win11 & 24H2: always display the scrollbar for any component
Lars Fosdal replied to hpw4711's topic in VCL
Ok - now I understand. Not sure I can see the same problem with 11.3 or 12.2. An example app with source code would have made it easier to compare. -
Best Practices for Secure Authentication in Delphi REST Applications
Lars Fosdal replied to nolanmaris's topic in Network, Cloud and Web
Or - if Azure is available, retrieve secrets from an Azure key vault. -
Win11 & 24H2: always display the scrollbar for any component
Lars Fosdal replied to hpw4711's topic in VCL
Can you make a minimal example or recording for this? -
My formatting is so quirky that I prefer to hand-craft it.
-
[RESOLVED] SSL certificate expired
Lars Fosdal replied to DelphiUdIT's topic in Community Management
Doesn't look like it? -
0EEDFADE indicates you had an exception in the Delphi code. Do you check all returned objects for assignment before use? Since you never see any UI, it is likely to happen in your initialization/startup code somewhere. I would recommend using EurekaLog or MadExcept for capturing the details of the exception.
-
Lifetime support responsibility? π
-
Does anyone know a delphi component that can play videos from a stream
Lars Fosdal replied to ToddFrankson's topic in VCL
@ToddFrankson Pls change title of topic from "Does anyone know of...." to "Play a video from a stream". Descriptive topic titles help users with finding relevant posts. -
https://larsfosdal.blog/2019/08/06/generic-command-line-parser-for-delphi-10-3-x/ I wrote an open source command line parser for Delphi. https://gist.github.com/LarsFosdal/f8a3e2a7caa5e541e4c04f10dfdfcfff Feedback appreciated.
-
This attitude is inappropriate. Access to these forums is a privilege, not a right. Do not abuse it.
-
Is there a program for Converting from VCL to FMX?
Lars Fosdal replied to JohnLM's topic in Delphi IDE and APIs
I would recommend porting manually by hand after researching which components need to be replaced. If you separate the biz logic from the UI, that would not be as complicated as trying to do a UI to UI remapping. -
What new features would you like to see in Delphi 13?
Lars Fosdal replied to PeterPanettone's topic in Delphi IDE and APIs
@shineworld That is bigger than "fairly large", I'd say. May I ask how much of the code is generated vs hand-crafted? -
Anybody have Delphi running in a VM on M-series Mac?
Lars Fosdal replied to David Schwartz's topic in General Help
I agree with @Thijs van Dien. Rebuild your VM on Windows 11 for ARM under Parallels. Works fine on my MBP M1 Pro.