-
Content Count
560 -
Joined
-
Last visited
-
Days Won
6
Everything posted by Vandrovnik
-
Well, you can try to disable Start page and you will see... If it does not help, you can enable it again (remove the underscore). On my PCs, disabling Start page removed these annoying messages about script errors.
-
Start page? I make this change in registry after installation (add "_" before "Start"): HKEY_CURRENT_USER\Software\Embarcadero\BDS\20.0\Known IDE Packages $(BDS)\Bin\startpageide260.bpl = _Start Page IDE Package
-
Combining bitmaps and preserving antialiased text quality...
Vandrovnik replied to Steve Maughan's topic in VCL
uses Direct2D; procedure TMainForm.PaintBox1Paint(Sender: TObject); var D2Canvas: TDirect2DCanvas; begin D2Canvas:=TDirect2DCanvas.Create(PaintBox1.Canvas, PaintBox1.ClientRect); try D2Canvas.BeginDraw; try D2Canvas.Brush.Style:=bsSolid; D2Canvas.Brush.Color:=clFuchsia; D2Canvas.FillRect(PaintBox1.ClientRect); D2Canvas.Font.Size:=32; D2Canvas.Font.Color:=clBlack; D2Canvas.TextOut(100, 100, 'Delphi 25th'); finally D2Canvas.EndDraw; end; finally FreeAndNil(D2Canvas); end; end; This is not OK? -
Combining bitmaps and preserving antialiased text quality...
Vandrovnik replied to Steve Maughan's topic in VCL
Hello, as David already wrote - just render the text on the map, there is no need to render it to a bitmap and then merge bitmaps. Do you need to print the result? Because that was a pain with Direct2D and Delphi 😕 -
Combining bitmaps and preserving antialiased text quality...
Vandrovnik replied to Steve Maughan's topic in VCL
Please have a look at http://docwiki.embarcadero.com/RADStudio/Rio/en/Using_the_Direct2D_Canvas -
Combining bitmaps and preserving antialiased text quality...
Vandrovnik replied to Steve Maughan's topic in VCL
Recently I have changed drawing to Direct2D, where transparency is not a problem. -
Af far as I know, IDE is not HDPI aware (yet), so it will be blured...
-
Hello, is there a way how to report to Embarcadero, that https://quality.embarcadero.com/ is down (again)?
-
Usually when one has to change important DNS record, he wants to minimalize problems for users. Here is a description how to do it in a better way than just to change record with TTL 3 days: https://www.dnswatch.info/articles/dns-update
-
And path to rtl260.bpl is included in it?
-
Firemonkey app for Android - segmantation fault in TIdThreadSafe.Lock
Vandrovnik posted a topic in Indy
Hello, I am trying to make a FMX application for Android. When I close the application, I get: Debugger Exception Notification: Project PlantisReaderPro.apk raised exception class Segmentation fault (11). When I choose Break, IDE positions cursor here in file IdThreadSafe.pas: procedure TIdThreadSafe.Lock; begin FCriticalSection.Enter; <--------------- end; But in my project, I am not using any Indy components. I have used GExpert, MMX and DUDS to scan used units, they do not show anything starting "Id". I do use IBX and ZXing. Please do you have any idea how to get rid of it? I am including image of the call stack. Kind regards, Karel -
How long is your PATH environment variable? Is there space enough for all paths?
-
What are your compiler settings for debug builds?
Vandrovnik replied to dummzeuch's topic in Delphi IDE and APIs
Of course I cannot guarentee it. But you wrote "Giving the user the wrong results is always worse than showing an error, even if the error is poorly worded.", so I gave you an example, where error message would be worse than ignoring the error. -
What are your compiler settings for debug builds?
Vandrovnik replied to dummzeuch's topic in Delphi IDE and APIs
Not always... In an application drawing 3D scene, a small error in object displayed somewhere far away from the observer does not metter, probably nobody notices. Of course in a book-keeping application the situation is quite different. -
Firemonkey app for Android - segmantation fault in TIdThreadSafe.Lock
Vandrovnik replied to Vandrovnik's topic in Indy
Thank you, tethering components were placed on the main form. -
Firemonkey app for Android - segmantation fault in TIdThreadSafe.Lock
Vandrovnik replied to Vandrovnik's topic in Indy
(But I would not see Idxxx.dcu even in projects where I do use Indy, because there I am using the Indy which came with Delphi, so it is not recompiled with the project.) -
Firemonkey app for Android - segmantation fault in TIdThreadSafe.Lock
Vandrovnik replied to Vandrovnik's topic in Indy
This was the very first thing I have checked - there is no Idxxx among them. -
Hmm, it seems embarcadero is using TTL 3 days (!) for that record, so if they did change the address recently, it is still in the caching DNS. # dig quality.embarcadero.com @ns1.navidns.net ; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.68.rc1.el6_10.3 <<>> quality.embarcadero.com @ns1.navidns.net ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 17856 ;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 3, ADDITIONAL: 6 ;; WARNING: recursion requested but not available ;; QUESTION SECTION: ;quality.embarcadero.com. IN A ;; ANSWER SECTION: quality.embarcadero.com. 259200 IN A 204.61.221.78
-
Hmm, on another PC, it works, too. There is nslookup quality.embarcadero.com = 204.61.221.78 On my PC, quality.embarcadero.com resolves to 204.216.225.148, which does not work...
-
I still get just a timeout 😞
-
Reading large UTF8 encoded file in chunks
Vandrovnik replied to Clément's topic in RTL and Delphi Object Pascal
He expects files up to 5 GB, lots of machines will not be able to keep it in RAM. -
Cannot perform this operation on a closed dataset
Vandrovnik replied to bazzer747's topic in Databases
May be some event? OnBeforeOpen etc.? Or a master-detail relation, so that this error might happen on another query? -
Hello, in Delphi 10.3.3, there is something broken in Indy - root certificate cannot be load. Probably same problem as here: https://community.idera.com/developer-tools/programming-languages/f/delphi-language/70711/indy-can-t-load-root-certificate-file-in-10-3-3/91055 Application raises an exception: Project Plantis.exe raised exception class EFOpenError with message 'Cannot open file "C:\Plantis\㩃䑜汥桰屩敄灬楨堠㙅停慬瑮獩䕜呅䑜杩䍩牥䝴潬慢剬潯䝴⸲散rv3". Systém nemůže nalézt uvedený soubor'. Please is it possible to remove Indy installed with Delphi and install Indy from github, without breaking things? I wanted just to replace IdSSLOpenSSL.pas, but it will not compile (always missing something). Or make Emba to repair it... In 10.3.2 it was working fine. Kind regards, Karel
-
Why is my firebird database code unstable under load? (code included)
Vandrovnik replied to Yaron's topic in Databases
So using proper transaction should be enough, or am I wrong? 1: set transaction wait read uncommitted lock timeout 30; 2: set transaction wait read uncommitted lock timeout 30; 1: update test set Total=Total+1; // done 2: update test set Total=Total+1; // waiting 1: commit; // 2 is done 2: commit; Field Total is increased by 2. -
Most efficient way to delete multiple items from a TList<T>...
Vandrovnik replied to Steve Maughan's topic in Algorithms, Data Structures and Class Design
Why to move these items to the end? They can be ignored... Next:=0; for a:=0 to List.Count-1 do begin if List[a].Keep then begin List[Next]:=List[a]; inc(Next); end; end; List.Count:=Next; List<T>.Pack probably does (almost) the same, it just tries to move bigger amount of memory in one block.