Lajos Juhász
Members-
Content Count
986 -
Joined
-
Last visited
-
Days Won
12
Everything posted by Lajos Juhász
-
CodeInsight: Loading project [...] hanging
Lajos Juhász replied to omnibrain's topic in Delphi IDE and APIs
I do get codeinsight loading, however almost never freeze delphi. Maybe try using process monitor to spy what code insight and / or the IDE is doing. -
For third party and IDE settings you can use the migration tool (migrationtool.exe in the bin folder of the Delphi available for a couple of versions). As far as I know it will not download packages from getit, that could cause problems. I like to stay on the safe side and reinstall everything.
-
Check duplicates in TADOQuery
Lajos Juhász replied to karl Jonson's topic in Algorithms, Data Structures and Class Design
What is the metric for efficiency? You would have to iterate the query and for every record check the value in a memory structure if it's there you have duplicate if not insert into it. You can store the list in an array, list or a hash table. -
it's a bad idea, only English text should be saved as ANSI, otherwise you should always save as UTF-8.
-
Memory leak on TBlobField(FieldByname(field_name)).SavetoStream(Stream);
Lajos Juhász replied to alogrep's topic in VCL
most probably in the part: ..... ///// -
Hi, Usually I like to use TFDUpdateSQL to generate SQL's to update the database. Now I have a case where it would be easier to let FD generate the insert statement. However I fail to see how to customize the SQL. For some reason for Informix: function TFDPhysInfxMetadata.GetNameParts: TFDPhysNameParts; begin Result := [npCatalog, npSchema, npBaseObject, npObject]; end; In case of informix npCatalog that's makes no sense as it is the database name. npSchema is the user and that is a big no. I have a database with multiple users and rights. Is there a way to customize to generate the table name without prefixes? (When ApplyUpdates generates the insert or update statement.)
-
ExtractFilePath v TDirectory.GetCurrentDirectory
Lajos Juhász replied to Ian Branch's topic in General Help
The program was started with a different current folder option, or the WIN API SetCurrentDirectory was called somewhere from the application. -
You should check the implementation for that procedure: { ----------------------------------------------------- } { Variant manager support (obsolete) } { ----------------------------------------------------- } procedure GetVariantManager(var VarMgr: TVariantManager); begin FillChar(VarMgr, sizeof(VarMgr), 0); end; This will not fill the record properly.
-
Do not worry everything is going to work perfectly in the new 64 bit IDE.
-
It's obsolated do not use it (as it cannot be used). Checked even in XE5 was deprecated. I wonder why it is not removed from the source.
-
how can i pull images from a website using ComboEdit
Lajos Juhász replied to Linuxuser1234's topic in FMX
You can inspect the source of the webpage. By clicking you execute the javascript: function getImage(clicked) { var enddate = document.getElementById("endDate").value; var endtime = document.getElementById("endTime").value; var duration = document.getElementById("duration").value; var url = "displayUpper.php?img=" + clicked + "&endDate=" + enddate + "&endTime=" + endtime + "&duration=" + duration; window.location.href = url; } -
Delphi 11.0 FMX Windows app gives error during startup for some users
Lajos Juhász replied to XylemFlow's topic in FMX
I don't use fmx but https://github.com/project-jedi/jcl should work. -
From the source: faVolumeID = $00000008 platform deprecated; // not used in Win32 Looks like it was removed from windows.
-
LocalExe is an environment variable. You can define it at Tools - Options - Environment Variables.
-
I am using the Infx driver (based on ODBC) and in that case the data is moved over the network using the db locale (ANSI or UTF-8) and at the FD or ODBC converted to UTF-16, when writing back unfortunately in case of ANSI database the db locale isn't used (instead the windows ANSI code page for non-unicode language and that can corrupt the data). I expect to be similair in case of MSSQL.
-
Delphi 11.2 in Debug opens source from Delphi XE5????
Lajos Juhász posted a topic in Delphi IDE and APIs
So far I tought that the debug information is not correct with shipped FireDAC. However, today I noticed when in Delphi 11.2 I place a break point and the debugger stops the IDE will open a source from XE5 (fore FireDAC) didn't noticed for any other source. Then of course debug will be impossible. How can I fix this problem? -
Delphi 11.2 in Debug opens source from Delphi XE5????
Lajos Juhász replied to Lajos Juhász's topic in Delphi IDE and APIs
No, it's Enterprise. -
Delphi 11.2 in Debug opens source from Delphi XE5????
Lajos Juhász replied to Lajos Juhász's topic in Delphi IDE and APIs
That's correct. I have both $(BDS)\source\data and $(BDS)\source\data\firedac in the Browsing path and yet the IDE only data.db.pas can open correctly and not the FireDAC sources. In order to debug FD I have to rename the XE5 folder. -
Delphi 11.2 in Debug opens source from Delphi XE5????
Lajos Juhász replied to Lajos Juhász's topic in Delphi IDE and APIs
var lUser: TFDQuery; begin .... luser.open; If I set a break point on open and do a step into it will open C:\Program Files (x86)\Embarcadero\Studio\22.0\source\data\data.db.pas (correct D11.2) procedure TDataSet.Open; begin Active := True; end; Step into the Active := true; will open C:\Program Files (x86)\Embarcadero\RAD Studio\12.0\source\data\firedac\FireDAC.Comp.DataSet.pas (Delphi XE5). -
Delphi 11.2 in Debug opens source from Delphi XE5????
Lajos Juhász replied to Lajos Juhász's topic in Delphi IDE and APIs
I noticed only with FD sources, debugging VCL works as expected. -
Delphi 11.2 in Debug opens source from Delphi XE5????
Lajos Juhász replied to Lajos Juhász's topic in Delphi IDE and APIs
Now I tried no active XE5 and yet the IDE opens source from XE5 instead of Delphi 11.2 In the IDE the environment variable BDS is set correctly to c:\program files (x86)\embarcadero\studio\22.0. Even when the IDE is running from the command prompt I cannot inspect the value of this variable. Createad a new variable bds28 and changed the browsing path to use that variable the result is the same the IDE opens the source from XE5. -
Delphi 11.2 in Debug opens source from Delphi XE5????
Lajos Juhász replied to Lajos Juhász's topic in Delphi IDE and APIs
Could be the environment variable in the browsing path - it's in both version BDS. Will have to investigate on this one. I have to use both XE5 (production environment) and 11.2 some future developement. (Now I have to figure out why sometimes TFDQuery.ResourceOptions.cmdExecMode is ignored) -
Delphi 11.2 in Debug opens source from Delphi XE5????
Lajos Juhász replied to Lajos Juhász's topic in Delphi IDE and APIs
Yes, the ide will jump to files from folder C:\Program Files (x86)\Embarcadero\RAD Studio\12.0\source\data. -
Skip the IDE and copy files in Windows, then open the project group from the new location?
-
Both are false positives as the original messages says (the project builds and runs ok):