![](https://en.delphipraxis.net/uploads/set_resources_2/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
![](https://en.delphipraxis.net/uploads/monthly_2020_10/P_member_3662.png)
PiedSoftware
Members-
Content Count
49 -
Joined
-
Last visited
Community Reputation
3 NeutralAbout PiedSoftware
- Birthday 02/01/1961
Technical Information
-
Delphi-Version
Delphi 10.4 Sydney
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
Delphi should let me use a const array reference as a constant
PiedSoftware replied to PiedSoftware's topic in RTL and Delphi Object Pascal
The way Swift works is that you can declare value with either the keyword let or the keyword var. If you use let the value cannot be changed. But the expression you assign to a let value can be anything available at that point. -
Delphi should let me use a const array reference as a constant
PiedSoftware replied to PiedSoftware's topic in RTL and Delphi Object Pascal
I guess I am a bit spoiled playing with Swift. It lets you assign any expression to a constant, compile time or run time. -
Delphi should let me use a const array reference as a constant
PiedSoftware replied to PiedSoftware's topic in RTL and Delphi Object Pascal
Yes, David, I agree. I would like them to fill that out: everything that is logically able to be evaluated at compile time should be assignable to a constant. -
Delphi should let me use a const array reference as a constant
PiedSoftware posted a topic in RTL and Delphi Object Pascal
type TCodeStructure = record StartTkn: string; EndTkn: string; SubTkns: array of string; end; type TIfTkns = (itElse, itElsif); const elseTkn = '#else'; elsifTkn = '#elseif'; IfTkns: array[TIfTkns] of string = (elseTkn, elsifTkn); IfStruct: TCodeStructure = (StartTkn: '#if'; EndTkn: '#endif'; SubTkns: [IfTkns[itElse], IfTkns[itElsif]]); I wrote this code and got the error "E2026 Constant expression expected" on the last line. I also tried SubTkns: IfTkns); When I changed it to SubTkns: [elseTkn, elsifTkn]); it compiled happily. and that gave me E2010 Incompatible types: 'Dynamic array' and 'Array'. To me it seems that Delphi should allow the first thing I tried - referencing a const array via constant indices to specify a constant. There is no reason to disallow that sort of thing. Ideally even the second attempt should be reasonable. I have Delphi 10.4. -
Opening form takes 1 minute in debugger, 2.5 s without
PiedSoftware replied to PiedSoftware's topic in Delphi IDE and APIs
I went to Component | Install Packages and unchecked "Embarcadero LiveBindings Components" and saved, but when I closed and reopened Delphi, it was back on again. D'oh! I'm concerned the maybe a library is using it. How can I work that out? Should I remove it? -
Opening form takes 1 minute in debugger, 2.5 s without
PiedSoftware replied to PiedSoftware's topic in Delphi IDE and APIs
Thank. What I am comparing are the 2 functions from the Delphi Run menu: Run (f9) and Run without debugging (shift-ctrl-f9) -
Opening form takes 1 minute in debugger, 2.5 s without
PiedSoftware replied to PiedSoftware's topic in Delphi IDE and APIs
I don't think we have that package in the app at all. We certainly haven't coded that way. -
Opening form takes 1 minute in debugger, 2.5 s without
PiedSoftware replied to PiedSoftware's topic in Delphi IDE and APIs
Delphi 10.4 MySQL, but I don't think that is the issue. I probably shouldn't have mentioned it. It was my first thought, I put timings in the code. The time is just the form getting created, with no database activity. It looks fine when it has loaded Yes, I know it's pretty diffuse. I haven't started pulling my hair out yet. -
Opening form takes 1 minute in debugger, 2.5 s without
PiedSoftware posted a topic in Delphi IDE and APIs
Hi I have been trying to work out what is going on with one of my forms. Just opening it, which has only a small amount of DB activity, was taking nearly a minute in the debugger, once it was about 35s. But when I run it without the debugger it is less than 3 seconds. There is no obvious bottlenecks in Task Manager. I have 8 GB of RAM. Does this sound familiar to anyone? Does anyone have a possible solution? Regards Mark -
Delphi has stopping on break points and exceptions
PiedSoftware replied to PiedSoftware's topic in Delphi IDE and APIs
I think I may have solved the problem. Somehow the normal run button got replaced with the Run without debugging button. So far the best explanation is that when I had the problem was when I ran the program by hitting the Run button, and when it ran fine it was because I hit F9. I don't remember changing it, and I don't remember whether I hit F9 or the button each time I had breakpoints or not, But, now I am back in happy land. -
Delphi has stopping on break points and exceptions
PiedSoftware replied to PiedSoftware's topic in Delphi IDE and APIs
Thanks. I would hope I can fix the issue with something less drastic than reinstalling. What advantages do you have with 11.3? -
Delphi has stopping on break points and exceptions
PiedSoftware replied to PiedSoftware's topic in Delphi IDE and APIs
I see the correct file names in the popup hint over the tabs for each unit. If the syntax was wrong it wouldn't even build and run. I am doing Build fairly frequently. -
Delphi has stopping on break points and exceptions
PiedSoftware replied to PiedSoftware's topic in Delphi IDE and APIs
It's happening again. There must be some other cause. I tried another smaller project. The breakpoints worked a few times and then stopped. -
Delphi has stopping on break points and exceptions
PiedSoftware replied to PiedSoftware's topic in Delphi IDE and APIs
I did clean builds a number of times, and it didn't clear the problem. What made the difference was clearing all the breakpoints, one after the other, the putting back in the one I wanted to use. -
Delphi has stopping on break points and exceptions
PiedSoftware replied to PiedSoftware's topic in Delphi IDE and APIs
I had a look at the list of breakpoints (View | Debug windows | Breakpoint) and I had accumulated a couple of dozen, a number from files that have been removed from the project. I deleted all of them, and put back in the one that I wanted. And now it is great to see my program stopping on the line I have asked it to stop on.