Lajos Juhász
-
Content Count
838 -
Joined
-
Last visited
-
Days Won
11
Posts posted by Lajos Juhász
-
-
30 minutes ago, David Heffernan said:Slightly smaller executable files, binary literals, literal separators, support for new asm instructions. I think "care" feels a little strong.
Come on what about the way they've changed the high dpi support (it's almost working.).
- 2
-
6 hours ago, Clément said:Since I'm not able to handle properly this error, my application becomes unstable and must be closed.
Any ideas?
You're reaching the memory limit of the 32 bit applications. You can choose between to switch to 64 bit or to limit the query.
-
2 hours ago, Fr0sT.Brutal said:Yeah, these ones are dumb remnants. Things are changing with string helper though. Alas, for new compilers only. I wonder why Emba didn't declare these functions as XXX(string) naturally and declare AnsiXXX(string) as deprecated aliases. Instead we got something crazy like 64-bit System32 & 32-bit SysWOW64
They left the function names to make the codebase compatible with pre D2009 versions. Some libraries unfortunately still support those versions.
-
5 hours ago, EugeneK said:When using this do I need to free returned AResultSet?
That's correct the ExecSQL will create the TFDQuery object without an owner and you've to free (no matter if there was an exception or not).
- 1
-
type TTwenty: string [20];
This is a shortstring and should not be used in programs as it is only for backward compatibility.
- 1
-
-
32 minutes ago, luebbe said:A search on GitHub resulted in a lot of hits.
You should use a web search engine (like google): http://www.unigui.com/
-
I doubt anyone took the time to add Delphi styles to Synedit.
-
On 9/12/2021 at 11:38 AM, Ralf7 said:If Window 11 doesn't work, just don't take it.
If you don't upgrade your computer to Windows 11 how do you test if your application works correctly or not? Please don't tell me that you force all of your users not to upgrade and not to buy a new computer with Windows 11 OS.
-
10 minutes ago, luebbe said:@Lajos Juhász Did you notice that the link that you posted actually goes through facebook?
It was a FB announcement that I've pasted here.
-
1 hour ago, Roger Cigol said:The link for a RAD Studio 11 preview is Desktopfirst summit - rad studio 11 preview
That's not the complete product preview only contains information about user interface. The full preview is going to be tomorrow:
Have you registered yet? RAD Studio 11, Delphi 11, and C++Builder 11 are just around the corner! Join Marco, David, and Jim for this sneak peek at this huge leap forward in your favorite development tools. September 9th at 9 AM / 1 PM / 6 PM CDT. Register here: https://embt.co/SneakPeek-RAD11 -
1 minute ago, Stefan Glienke said:Wait for a compiler fix? 🥁
Before that open a ticket at Embarcadero.
-
18 minutes ago, HTMLValidator.com said:or by some "magic" maybe they will fix C++ Code Insight in 11 and I won't have to waste time on it..
What's done for version 11 is secret only for the next two days. I believe after that @David Millington
or @Marco Cantu can give you more details here or you can ask on the webinar. Unfortunately I will have to skip this product preview.
-
If you have invisible tabsheets you cannot write anymore: XTabSheet:=PC1.Pages[TabIndex];
You've to find in a pages the index that contains the TabSheet with Tabindex. Something like this:procedure TMainForm.PC1DrawTab(Control: TCustomTabControl; TabIndex: Integer; const Rect: TRect; Active: Boolean); var XTabSheet: TTabSheet; XRect: TRect; FormColor: String; lpc: TPageControl; i: integer; begin if Active then begin Control.Canvas.Brush.Color:=$006ED7FC; Control.Canvas.Font.Color:=clBlack; end else begin FormColor :=dm.SettingsFormColor.AsString; if MatchText(FormColor,['Windows','Gray']) then Control.Canvas.Brush.Color:=$003C3838 else if MatchText(FormColor,['Brown','Light Brown']) then Control.Canvas.Brush.Color:=$0034527E; ...... end; XRect:=Rect; Control.Canvas.FillRect(XRect); //XTabSheet:=PC1.Pages[TabIndex]; lpc:=Control as Tpagecontrol; XTabSheet:=nil; i:=0; while (XTabSheet=nil) and (i<lpc.PageCount) do begin if lpc.pages[i].TabIndex=TabIndex then XTabSheet:=lpc.pages[i]; inc(i); end; DrawText(Control.Canvas.Handle, PChar(XTabSheet.Caption), length(XTabSheet.Caption), XRect, DT_VCENTER + DT_SINGLELINE + DT_CENTER); end;
-
10 hours ago, aehimself said:After some time investigating the issue I found out that custom property editors are causing this. We had about 4, removing one from the package caused the Internal Error to simply point to a different one.
I have a theory which I will test out during the upcoming week(s). Will post an update once I have any news...
I fought a similar problem couple of years ago. In that case for reason that the package contained too much "something" that Windows or Delphi was unable to handle after moving to newer version of Delphi. The solution was to break the package into two.
-
-
12 hours ago, Halil Han Badem said:if ContainsStr(FieldByName(Column).Value, Value) then
This is a bad idea for two reasons:
1.) What will happen when the value is null? It will fail with message that Delphi cannot convert the null to string.
2.) Why would you like to find the field for every record. You should find it before wile and store it in a local variable and use that instead.
- 1
-
12 minutes ago, mderie said:I find this quite annoying...
Why is it annoying? TGUID is not a string. You can write your function as:
function GenerateAppGUID: TGuid; begin Result := StringToGUID('{481E85E5-3874-4FCB-BEA1-B65D640AE6D3}'); end;
-
23 minutes ago, aehimself said:Added "implicitly imported" units to design time package
Instead of adding the units from the runtime package into the design time you should add the runtime package as required. (The 32 bit version of the runtime package must inside the path).
-
23 minutes ago, Fr0sT.Brutal said:1 Tb of SSD is still too expensive
Define too expensive. (WD Purple 3,5" 1TB costs about 47.58€ and it's only at 5400 RPM, the faster WD Black 3,5" 1TB costs 77,41€. For SSD we can take for example Samsung 870 QVO 1TB SSD (MZ-77Q1T0BW, SATA 6 Gb/s) costs 106.09€ for me it's not a huge difference.)
-
2 hours ago, Fr0sT.Brutal said:?? How magnetic HDDs could work without heads?
HDD is so old. All the new fancy kids are using SSD.
-
I get the problem only in design time. At run time it shows ok in the empty project.
-
46 minutes ago, sw4all said:I see one more error and that is that the procedure still creates more and more buttons.
It's not an error, it's how you've coded to create a new button in every paint event. Instead of that I would use the inbuild feature of the dbgrid.
On you column set ButtonStyle to cbsEllipsis then you can place your in the OnEditButtonClick event of the grid.
- 1
-
1 hour ago, Dalija Prasnikar said:Unfortunately, that roadmap is pretty much obsolete, there is no newer one and anyone who knows what is cooking is not at liberty to say.
It's not obsolete I received as the answer from Embarcadero a couple of months ago when asked on a webinar. They feel there is no need to inform us ahead. I wonder do they actually have a plan what they would like to deliver in Delphi 11?
- 1
Are you using Delphi 11 with mainstream projects?
in Delphi IDE and APIs
Posted
I've spent a day using the new IDE. The Access Violations while building the project group still there. What's new for me is that once I got an error that some component already exists and compiling stopped working.
The plus side is that I was able to move some code base from D10.4.2 to D11 very easily. There was only a few data type changes in the methods in the RTL that required changes in my code.