

Jud
Members-
Content Count
153 -
Joined
-
Last visited
Everything posted by Jud
-
No, it is a desktop.
-
I installed this patch yesterday, and I'm having a lot of problems. Is anyone else having them? Problems include failing to terminate a program in the IDE, access violations, Find Declaration quits working, etc.
-
Well, I need to download it again and try the installation again.
-
It didn't show up on Getit (I noticed it on the Welcome page yesterday) - I did a complete install. I was having so many problems that I couldn't get work done, so I went back to the original 12.2. But I had many problems getting the patched version installed. It locked up several times, and I had to reboot. ------------------ Also, will they ever be able to transfer your settings to a new installation? I had to set all of the options twice yesterday.
-
I want to show a confirmation question before closing the main form by clicking on the "x" in the upper right corner. The following is based on Delphi help, the example given in a link in tform.OnCloseQuery help. It used to work in another program but it doesn't work in my current program. I put "procedure FormCloseQuery(Sender: TObject; var CanClose: Boolean);" in the form's class. Then I have this, based on the example: procedure TForm1.FormCloseQuery(Sender: TObject; var CanClose: Boolean); begin if MessageDlg( 'Do you want to exit the program?', mtConfirmation, [mbYes, mbCancel], 0) = mrCancel then CanClose := false; end; The program starts and then I click a button to start some tasks. If I click on the "x" before the tasks are started, it closes immediately. If I do it after the tasks have started, it closes immediately if it is running from the EXE. If it is running from the IDE, it gives an access violation. What do I need to do to make it behave as intended (i.e. confirm before closing the form.)
-
I added it manually because before when I clicked on "OnCloseQuery" in the form's inspector, it would not let me add it there, like the form OI usually does. But now it does, and is working. (I don't remember the error message I got when I tried c;licking on the event OnCloseQuery before.) Thanks for the replies!
-
If I remember correctly, VCL ProgressBars used to show the percentage, in numerals. I'm trying to add one to a Delphi 12.1 project, and it isn't showing the percentage. I looked at the properties but I didn't see any that seemed like it would turn on the display of the percentage. Is there a way to show percentage on a TProgressBar in Delphi 12.1 VCL?
-
TGuage might have been it.
-
Thanks, just my faulty memory from some years ago. I just stuck a label above it - that is what I must have done way back when.
-
I thought it used to show the percentage. It would probably easiest to just put a TLabel above it to tell the percentage.
-
It used to be that if I started a second instance of the Delphi IDE, it would warn me and ask if I wanted to start another instance. Now it doesn't ask - I sometimes have 2, 3, or 4 instances running inadvertently, which I want to avoid. I got a new computer with Windows 11 instead of 10, and I've upgraded Delphi. Is there a setting in Delphi that warns you about starting a second instance? Is it a Windows setting? (I know how to keep a second instance of my program from running.)
-
OK, that IS what I used to use. It gives the warning, and then you seem to have no choice but to open the second instance, but then you know, and can close the new one. Thanks!
-
I was going to the old website and I didn't notice that it is now done by someone else with a different website. I just downloaded it - thanks for telling me that. * I have it installed, but I can't find an option to prevent a second instance of the IDE from starting. Where is that option?
-
I used GExperts for years, but it doesn't work with Delphi 12, That was probably what I was using.
-
I'm having a strange problem in the Delphi 12 IDE on a Windows 11 desktop. First I downloaded the trial version of Enterprise and entered my license number. (My license is for the professional edition.) There were strange problems in the IDE. When searching, if I searched for "xyz[" or "xyz(", it would give an error message about mismatched [ or (, and not search. If I search for ".xyz", it ignores the period. There are other things, like much of refactor is disabled. Sometimes "find declaration" doesn't work. I uninstalled Delphi 12 and reinstalled it from the iso file. I had the same problems. Then about 3 weeks ago I installed it on my Windows 11 laptop to take on a trip. It DOES NOT have the problems! What could cause this and how can it be fixed?
-
That was the problem! It must have gotten checked by accident.
-
Just got back - that might have goofed something up.
-
I'm a long-time registered user of Delphi. I want to download Delphi Community Edition to my laptop to take on a trip. When I download the community edition, it gives me three options: sign up for trial version, enter a registration key, or upload a registration file. I just want to use the free community edition, but that isn't an option. When I enter my registration code for 11.3, it says that it is registered to a different user, so I can't register it. Is there a way for me to just get the community edition for my laptop?
-
That seems to be the case, based on my experience. I don't want to go through the hassle of activating it on my laptop, so I'm planning to use my wife's email to get the CE on my laptop.
-
I've had a perplexing problem for about 2 days. Basically if a tTask is inside a loop, the loop isn't executed. I extracted a section of code from my program, and the short sample code below has the problem. After the SetLength line is executed, it goes to the END of the procedure. This used to work. If I take the line TaskArray[ counter] := - the loop is executed. If I take out the loop and replace it by counter := 0, it works. Am I missing something? What is going wrong? procedure TForm2.RunButtonClick(Sender: TObject); const NumberOfParts = 1; var counter : integer; TaskArray : array of iTask; begin { --- run button --- } SetLength( TaskArray, NumberOfParts); for counter := 0 to NumberOfParts - 1 do begin try TaskArray[ counter] := tTask.run( procedure begin RunWork( counter); end); except on E:EAggregateException do ShowMessage( E.ToString); end; // try end; // for counter end; { --- run button --- }
-
-
I need to write to a memo on the main form from within a thread. In an old program using tasks I was doing this: tThread.synchronize( tThread.current, procedure begin form1.TestMemo.lines.add( 'Testing '); application.ProcessMessages; end); and it was working. I put the same type of thing in a tread called by the parallel for, but it isn't writing to the memo. Is there a different way to do it from a thread called from a parallel for?
-
TBits is still limited to 2^31 bits, even on the 64-bit platform. Is there a replacement for it that will allow > 2^32 bits (i.e. int64?) (I could write one, but a lot of people are more efficient with this kind of thing than I,)
-
-
This is the first time I'm using BlockRead and BlockWrite in Delphi 11,3. I've used them in previous versions. I thought they were functions, returning an integer. The help file says so and the source code says so. But I'm getting an E2010 error when trying to assign the result to an integer, e.g. RecordsWritten := BlockWrite( OutFile, ... Just calling it like a procedure works. I'm attaching a screenshot of the error message. Is this a bug or am I wrong?