-
Content Count
267 -
Joined
-
Last visited
-
Days Won
2
Everything posted by Jacek Laskowski
-
Named pipe failure, multithreading and asynchronous I/O
Jacek Laskowski replied to FPiette's topic in Windows API
Did testing show any additional problems? Is it possible to safely use the library in production? -
Is there any tool that can scan the project and show unused local variables? I know that the compiler shows it, but it is not very clear in the log filled with various warnings.
-
You can freeze all threads except the debug thread (in Threads window).
- 29 replies
-
- delphi ide
- delphi
-
(and 2 more)
Tagged with:
-
what do you mean? give an example
-
JSON is imho most human friendly 🙂
-
[Firedac] Truncation error on Firebird select query
Jacek Laskowski replied to Jacek Laskowski's topic in Databases
And I have this flag set to True! Why, then, don't truncate the data to the length of the field? -
Delphi compiler need to be opensourced
Jacek Laskowski replied to AlekXL's topic in RTL and Delphi Object Pascal
fredvs is MSElang developer, I think so. -
Class inheritance and hides method
Jacek Laskowski posted a topic in Algorithms, Data Structures and Class Design
I have two classes: TFoo = class procedure Terminate(aNow: Boolean); virtual; end; TBar = class(TFoo) procedure Terminate(); end; procedure TBar.Terminate(); begin inherited Terminate(True); end; but I am getting a warning when compiling: [dcc32 Warning] W1010 Method 'Terminate' hides a virtual method of base type How to correctly declare the Terminate () method? I tried with overload, but it did not help. -
Delphi compiler need to be opensourced
Jacek Laskowski replied to AlekXL's topic in RTL and Delphi Object Pascal
Probably Alek definitely simplifies and exaggerates with ease the entire process of opening and managing sources. However, one thing is certain. Delphi requires quick and bold changes, or else it will drown. -
[Firedac] Truncation error on Firebird select query
Jacek Laskowski replied to Jacek Laskowski's topic in Databases
@Dmitry Arefiev Dmitry, take the floor on this, please. Is it working or not? -
Class inheritance and hides method
Jacek Laskowski replied to Jacek Laskowski's topic in Algorithms, Data Structures and Class Design
Thanks, but what if another class inheriting from TFoo needs to be able to control the parameter from outside? -
Class inheritance and hides method
Jacek Laskowski replied to Jacek Laskowski's topic in Algorithms, Data Structures and Class Design
From the base class, TFoo inherits several different classes, just this one child class TBar should always pass True in this parameter. -
Class inheritance and hides method
Jacek Laskowski replied to Jacek Laskowski's topic in Algorithms, Data Structures and Class Design
I know where a warning message comes from. I ask how to solve it correctly for the Terminate method without parameters. -
Class inheritance and hides method
Jacek Laskowski replied to Jacek Laskowski's topic in Algorithms, Data Structures and Class Design
Of course, override generate other error: [dcc32 Error] E2037 Declaration of 'Terminate' differs from previous declaration -
[Firedac] Truncation error on Firebird select query
Jacek Laskowski replied to Jacek Laskowski's topic in Databases
I checked the Rio, here the problem also exists. But I also found it: https://quality.embarcadero.com/browse/RSP-16057 And now I don't understand anything. -
[Firedac] Truncation error on Firebird select query
Jacek Laskowski replied to Jacek Laskowski's topic in Databases
128 = 32 * 4 where 32 is column size in chars and 4 comes from hardcoded method: function TIBLib.GetBytesPerChar(ACSID: Integer): Integer; var iID: Integer; begin iID := ACSID mod 256; if iID = csIDUnicodeFSS then Result := 3 else if iID = IDUTF8 then Result := 4 <<<------------------ for UTF8 columns else if (FBrand = ibInterbase) and ((iID = csIDUnicodeBE) or (iID = csIDUnicodeLE)) then Result := 2 else Result := 1; end; -
[Firedac] Truncation error on Firebird select query
Jacek Laskowski replied to Jacek Laskowski's topic in Databases
See: http://docwiki.embarcadero.com/Libraries/Rio/en/FireDAC.Stan.Option.TFDFormatOptions.StrsTrim2Len citation from doc: -
[Firedac] Truncation error on Firebird select query
Jacek Laskowski replied to Jacek Laskowski's topic in Databases
I debug FD and I found suspected place: and DataSize method code: function TIBVariable.GetDataSize: LongWord; begin if FDataSize = 0 then Result := sqllen else Result := FDataSize; end; But why result (sqllen) is 128?? -
[Firedac] Truncation error on Firebird select query
Jacek Laskowski replied to Jacek Laskowski's topic in Databases
Maybe this is corrected in Rio? Can anyone check it out in Rio? -
[Firedac] Truncation error on Firebird select query
Jacek Laskowski replied to Jacek Laskowski's topic in Databases
Correction, Insert does not work either 😕 Before query execution (param value is longer than column size): After F9: Delphi Tokyo, FB 2.5.8. Does the StrsTrim2Len option work at all? -
[Firedac] Truncation error on Firebird select query
Jacek Laskowski replied to Jacek Laskowski's topic in Databases
Yes Yes -
Code expert for fixing very simple and obvious syntax errors?
Jacek Laskowski replied to PeterPanettone's topic in Delphi IDE and APIs
Look for ESLint, add-on for VSCode -
Delphi saves the desktop settings in the DSK file. The currently open/active modules are saved there. This file, according to my observations, is saved ONLY when closing Delphi or closing the project. How do you force Delphi to save this file without closing the project? It irritates me very much when after Delphi hangs (often!) I lose these settings.
-
Save All does not save these settings. I'm also not sure that this is saved in the registry, because it is a per-project setting. ps. autosave options are of course marked
-
Named pipe failure, multithreading and asynchronous I/O
Jacek Laskowski replied to FPiette's topic in Windows API
I'm sorry, actually a browser-side problem, my antivirus (kaspersky) has blocked the call. It's kind of weird because I've had this antivirus for two years and I have never heard such a message.