-
Content Count
2071 -
Joined
-
Last visited
-
Days Won
29
Everything posted by Attila Kovacs
-
Just lean back, not your fault. And it's always the installer's code which ends up in the signatures, not the RTL.
-
Finalization section not called unless main form shown
Attila Kovacs replied to Mark Williams's topic in VCL
This info is actually cool. I was never paying attention to it. I was thinking the main form were the first form created any way. But with this, it's enough to write: frmYourFormsNeededToCreateIfAny := TfrmYourFormsNeededToCreateIfAny.Create(Application); frmLogin := TfrmLogin.Create(Application); if frmLogin.DoLogin then Application.CreateForm(TfrmMain, frmMain); Application.Run; or similar no need for Terminate prior to .Run;, no need for ShowMainForm := False, no unnecessary OnCreate() of the main form. however initialization and finalization will run (of course), and prepare, that adding new forms via IDE will screw up your dpr mostly every time. -
I tried VB and it was too slow for me. How do you come over that everything lags?
-
Like in the title, if I can see and have time to read the [Parsing...] hint in the IDE code editor, the IDE just shuts down silently, without saving anything.. crashes silently. (10.1.2), Anyone else having the same issue? Sometimes multiple times in a row, sometimes no issue for days.
-
Before creating a bug report I wanted to ask if someone could confirm that ctrl-F4 doesn't work in CPU View since ages, or do I have some 3rd party which interfere?
-
Hm, thanks Uwe, this would satisfy me too, but it's not the case... 😞
-
@FredS What happens if you add s := Copy(s, 1, Length(s) - 1) + Copy(s, Length(s), 1); after s := TCursiveNumbers.ToText(c); in the main loop?
-
what is TCursiveNumbers.ToText? Does it changes the length of the string?
-
Finalization section not called unless main form shown
Attila Kovacs replied to Mark Williams's topic in VCL
Mainform is always the first form you create. Make sure you are not creating the mainform or any other twice. -
Finalization section not called unless main form shown
Attila Kovacs replied to Mark Williams's topic in VCL
That means Application.ShowMainForm := False; and Application.Terminate; and Application.Run; if login fails, and you won't get a flickering mainform and you will have a clean termination of the application including calling the finalization section in the mainform. -
Finalization section not called unless main form shown
Attila Kovacs replied to Mark Williams's topic in VCL
Ok, here is the thing: Application.Terminate only sends a message to the application to terminate. It will be processed in the main Application message loop, which you can start with Application.Run. To avoid showing the mainform, set Application.ShowMainForm := False; prior to .Run; -
Finalization section not called unless main form shown
Attila Kovacs replied to Mark Williams's topic in VCL
@Mark Williams Can you see what I'm writing? Just for the record. -
Finalization section not called unless main form shown
Attila Kovacs replied to Mark Williams's topic in VCL
I'm not sure what your "exit" does, and I can't see your code, but with the code below finalization is called: if not DoLogIn() then begin Application.ShowMainForm := False; Application.Terminate; Application.Run; end; -
It is indeed a mess. If you'd remove all the skinning you'd be shocked how it looks like. Putting controls to the title bar was also a steep decision. Thanx DM.
-
1GB SVN repo free from Perforce... and Git Sucks.
Attila Kovacs replied to Darian Miller's topic in Tips / Blogs / Tutorials / Videos
I don't even bother reading a website without a proper imprint. -
Any Known GDI Lockup Issues with Delphi 10.3.2?
Attila Kovacs replied to Steve Maughan's topic in VCL
or driver or hardware.. btw. taskmanager has a ton of extra columns in options, GDI objects too, but this is something else -
is there any "currency to words" routine for Delphi?
Attila Kovacs posted a topic in Algorithms, Data Structures and Class Design
I mean the ones I found on the net are not satisfying. Something like this would be great: https://www.calculator.org/calculate-online/mathematics/text-number.html -
TWebModule response content truncated before return
Attila Kovacs replied to Mark Williams's topic in Network, Cloud and Web
@Mark Williams LOL Sorry I must have been very tired. https://chapmanworld.com/2017/06/15/installing-webbroker-projects-in-microsoft-iis/ -
TWebModule response content truncated before return
Attila Kovacs replied to Mark Williams's topic in Network, Cloud and Web
I have no clue, but you could watch this video, how to create a console application from the broker to be able to debug your code. -
is there any "currency to words" routine for Delphi?
Attila Kovacs replied to Attila Kovacs's topic in Algorithms, Data Structures and Class Design
Worse. 4-20-12 -
How to manage defined list values
Attila Kovacs replied to Mike Torrettinni's topic in Algorithms, Data Structures and Class Design
You could associate the loaded values with enums, but which of the above mentioned versions showing you the constant values with codeinsight? -
How to manage defined list values
Attila Kovacs replied to Mike Torrettinni's topic in Algorithms, Data Structures and Class Design
Or you could convert a JSON on the fly to any record or class, thus the multi-language support you mentioned would be solved too. The question is, do you really need this amount of data linked to every single project? -
Create a form you like, right click on it, add to repository....
-
FastMM Full Debug Mode and JCL problem
Attila Kovacs replied to Jacek Laskowski's topic in RTL and Delphi Object Pascal
Not using goole 😛 https://issuetracker.delphi-jedi.org/view.php?id=6560 -
If you can alter both apps I would create an encrypted file and pass it to the other as parameter.