

Lajos Juhász
Members-
Content Count
1050 -
Joined
-
Last visited
-
Days Won
14
Everything posted by Lajos Juhász
-
Make your application DPI aware and the dialog should be same on every settings.
-
It's not. There were Embarcadero webinars on this topic.
-
How to??? uses {IF EXISTS}CodeSiteLogging;{ELSE};
Lajos Juhász replied to Al T's topic in General Help
https://docwiki.embarcadero.com/RADStudio/Sydney/en/Conditional_compilation_(Delphi) -
You can also test with regular VCL controls, the bug could be also in the DevExpress controls. With VCL placed on the form I don't have had placement problems.
-
A gem from the past (Goto)
Lajos Juhász replied to Mike Torrettinni's topic in Algorithms, Data Structures and Class Design
It's fine until you get an exception, which will result in a memory leak. -
FireDAC.Stan.Async amBlocking causing threadlock
Lajos Juhász replied to mattgorringe's topic in Databases
Never had deadlock when using amblocking. On the other hand in D11 sometimes amCancelDialog will not work on query. You must change for the connection before and change back after the query is finished. -
Update Subscription: Embarcadero policy seriously this bad?
Lajos Juhász replied to Al T's topic in Delphi IDE and APIs
(I believe earlier if you have had no valid licence there was no possibility to renew the previous one. The only option was to buy a new licence.) -
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.