Jump to content
Coniah

Delphi 10.4.2 first impressions

Recommended Posts

26 minutes ago, PingPIng said:

scrolling through the editor

That and now outright crashes while the 'calculating..' popup appears to freeze up.

 

Share this post


Link to post

@PingPIng

Strange visual effect. Do you have any 3rd-party components installed? I could not (yet) see this here.

  • Like 2

Share this post


Link to post

Still testing, but so far it behaves very well.

Feels all in all quite fast and responsive, much improved to my Rx1041.

 

If it compiles now all my projects without big issues (and it looks like that), I would say its close to very satisfying :classic_smile:

  • Like 1

Share this post


Link to post
2 hours ago, PingPIng said:

This annoying effect results when scrolling through the editor. I have tried to change various options but it remains

 

Immagine.png

problem solved, it was not a delphi problem but incompatibility with cnpack Source Highlight option

Share this post


Link to post

I would propose, when 1st testing, better don't install unnecessary components.

Normally I do some very pure test runs first, before I add more stuff.

With that approach its easier to find the library or expert that causes issues.

  • Like 2

Share this post


Link to post
2 hours ago, Rollo62 said:

I would propose, when 1st testing, better don't install unnecessary components.

Normally I do some very pure test runs first, before I add more stuff.

With that approach its easier to find the library or expert that causes issues.

I agree. It's also a good time to clean out unused components. I appreciate the suggestions.

 

Share this post


Link to post

Apparently I have a new marketable skill, crashing the LSP server..

 

This is unbelievable, can someone verify that these steps are reproducible?

 

  • New VCL Project
  • Add an event handler for 'KeyDown'
  • Paste this DocInsight text
  • Save
  • Hover your cursor over the implementation of 'KeyDown'
exception class    : EOleException
exception message  : Stack overflow.

thread $f4c:
514f25e9 +89 xmlrtl270.bpl Xml.XMLDoc 2071 +1 TXMLNode.GetIsTextElement
>> stack will be calculated soon

 

unit Unit1;

interface

uses
  Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
  Vcl.Controls, Vcl.Forms, Vcl.Dialogs;

type
  TForm1 = class(TForm)
    /// <summary>
    ///   Shift+Ctrl+Alt allows access to Custom.Ini
    /// </summary>
    /// <remarks>
    /// </remarks>
    procedure FormKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.FormKeyDown(Sender: TObject; var Key: Word; Shift:
    TShiftState);
begin
  ShowMessage('LSP at its best!');
end;

end.

 

Share this post


Link to post
Guest
1 hour ago, FredS said:

This is unbelievable, can someone verify that these steps are reproducible?

image.thumb.png.520c24d4f5aa825ba576488ac1d45aa2.png      image.thumb.png.2b2969e464c7dd6b3888c076c5f57fd4.png

Save with "answer YES"!

 

hug

Edited by Guest

Share this post


Link to post
45 minutes ago, emailx45 said:

Save with "answer YES"!

There are no international characters that should be (ANSI):

    /// <summary>
    ///   Shift+Ctrl+Alt allows access to Custom.Ini
    /// </summary>
    /// <remarks>
    /// </remarks>

 

Share this post


Link to post
2 hours ago, FredS said:

This is unbelievable, can someone verify that these steps are reproducible?

 

Nope.  It works fine for me on a clean install of 10.4.2

 

Perhaps you have some IDE Experts installed like CNPack or GExperts?  If so, I'd try to remove them and try it again.

 

Share this post


Link to post
43 minutes ago, Darian Miller said:

IDE Experts

 

I disabled all Experts, and this is reproducible on both Windows 7 and 10..

 

FYI: The original error is from a larger project and had a bulleted list in the remarks section..

As for clean install; the Win10 is clean the Win7 an upgrade, both 10.4.2 Pro.

 

Edited by FredS

Share this post


Link to post
Guest
2 hours ago, Darian Miller said:

Did the changes solve your problem?

No way!

VirtualBox (thank Oracle for broke my legs), only allow max 256MBytes of memory for video! NOT MATTERS if you have RTX 3090!!!

my system, have: i7 4770K, RAM 16GB dual-chanell, GTX1650 Super 4GB VRAM and 1 HDD with 1TBytes for softwares for test like VBox + RAD10.4.2

in fact, the 256MB is not from VRAM VGA, but the RAM memory allocated by emulate the display on VMs!

as said on Oracle/VirtualBox: 256MB is much than enought for use, same in current days!

For that, VBox dont allow alocate more than this! Same using PowerShell command!!! It's locked for this max value!

 

any way, the RAD Studio 10.4.2 claims "GDIPlus" use and as it dont have direct access on VGA, this can be the "error"!

 

Quote

begin on 

  • [00524DB8]{bds.exe     } bds.bds (Line 222, "" + 13) + $2

....

and end:

 

Invalid class typecast.
---------------------------
OK   Details <<   
---------------------------

  • [21386672]{vclide270.bpl} GDIPlus.GradientTabs.TGradientButton.FormDPI (Line 358, "GDIPlus.GradientTabs.pas" + 1) + $F     <--------------
  • [5005A496]{rtl270.bpl  } System.ErrorAt (Line 5781, "System.pas" + 3) + $4
  • [5005FFD3]{rtl270.bpl  } System.@AsClass (Line 18460, "System.pas" + 3) + $5
  • [21386672]{vclide270.bpl} GDIPlus.GradientTabs.TGradientButton.FormDPI (Line 358, "GDIPlus.GradientTabs.pas" + 1) + $F
  • [21386BC6]{vclide270.bpl} GDIPlus.GradientTabs.TScrollerButton.PaintLeftArrow (Line 520, "GDIPlus.GradientTabs.pas" + 3) + $2
  • [21386B85]{vclide270.bpl} GDIPlus.GradientTabs.TScrollerButton.Paint (Line 508, "GDIPlus.GradientTabs.pas" + 3) + $2
  • [50D01E19]{vcl270.bpl  } Vcl.Controls.TGraphicControl.WMPaint (Line 14009, "Vcl.Controls.pas" + 7) + $5

,,,

 

hug

Share this post


Link to post
4 hours ago, FredS said:

There are no international characters that should be (ANSI):

For me also the IDE asked for international characters (looks like the forum likes to insert those ones).

 

Congratulation you managed to make Delphi unresponsive without debugging. With debug I also get: Project bds.exe raised exception class $C00000FD with message 'stack overflow at 0x51ef04f2.

:51ef04f2 ; C:\Windows\SysWOW64\msxml6.dll
:51f16f2d ; C:\Windows\SysWOW64\msxml6.dll
:51f56860 ; C:\Windows\SysWOW64\msxml6.dll
:51f296da ; C:\Windows\SysWOW64\msxml6.dll
:51f566ea ; C:\Windows\SysWOW64\msxml6.dll
:51f18b90 ; C:\Windows\SysWOW64\msxml6.dll
:51f18163 ; C:\Windows\SysWOW64\msxml6.dll
xmlrtl.Xml.Win.msxmldom.TMSDOMNodeList.get_length
xmlrtl.Xml.XMLDoc.TXMLNode.GetIsTextElement
:0c1b42ec ; c:\program files (x86)\embarcadero\studio\21.0\Bin\IDELSP270.bpl
:0c1b4390 ; c:\program files (x86)\embarcadero\studio\21.0\Bin\IDELSP270.bpl
:0c1b4390 ; c:\program files (x86)\embarcadero\studio\21.0\Bin\IDELSP270.bpl
:0c1b4390 ; c:\program files (x86)\embarcadero\studio\21.0\Bin\IDELSP270.bpl
:0c1b4390 ; c:\program files (x86)\embarcadero\studio\21.0\Bin\IDELSP270.bpl

.....cut, here the IDELSP270.bpl repeats 9992 times.....

:0c1b4390 ; c:\program files (x86)\embarcadero\studio\21.0\Bin\IDELSP270.bpl
:0c1b4390 ; c:\program files (x86)\embarcadero\studio\21.0\Bin\IDELSP270.bpl
fmx.FMX.Platform.Win.TPlatformWin.ThreadSync(???)
rtl.System.Classes.StdWndProc(1705986,0,0,0)
vcl.Vcl.Forms.TApplication.ProcessMessage(???)

image.png

  • Thanks 1

Share this post


Link to post
8 hours ago, FredS said:

This is unbelievable, can someone verify that these steps are reproducible?

Confirmed. I can reproduce it. However in my case no stack overflow occured. IDE simply hang out (forewer) with this small popup window:

 

image.thumb.png.5bce6fccb3192d87126b491087703597.png

  • Thanks 1

Share this post


Link to post
On 2/26/2021 at 7:45 PM, Erix A. said:

Also, if I have defined custom TDictionary types, e.g. 

type
  TDummyDict = TDictionary<String, TDummy>;

 

and have them in a separate unit, then ctrl+clicking on the TDummyDict leads to System.Generic.Collections and not to the unit where it's defined.

You have not defined a type there. You've defined an alias. That's a crucial distinction that is very relevant for the behaviour you observe.

 

I don't really understand what your alias is buying you. I'd prefer to be explicit here. 

Share this post


Link to post
3 hours ago, emailx45 said:

any way, the RAD Studio 10.4.2 claims "GDIPlus" use and as it dont have direct access on VGA, this can be the "error"!

Please check the system requirements against your VM:

http://docwiki.embarcadero.com/RADStudio/Sydney/en/Installation_Notes

 

@FredS Good catch! A very good one, indeed. Do you want to create an entry at quality.embarcadero.com providing that sample? 

Share this post


Link to post
6 minutes ago, David Heffernan said:

You have not defined a type there. You've defined an alias. That's a crucial distinction that is very relevant for the behaviour you observe.

type
  TFoo = TObject;
  TBar = TDictionary<Byte, Byte>;

var
  a: TFoo; // Ctrl+Click here navigates to TFoo, despite it's an alias.
  b: TBar; // Ctrl+Click here navigates to TDictionary<> in Generics.Collections unit.

 

  • Like 1

Share this post


Link to post
7 hours ago, Daniel said:

create an entry at quality.embarcadero.com

I will, however one has to question how that passed through QA 🙂

Share this post


Link to post

Probably we must talk your your QA because of the empty remarks-section in the XML-doc that is causing the trouble.

:classic_biggrin:

Just kidding - sorry for that. Looks like no one tested with empty xml-nodes. However - this is such a simple and easy to reproduce test-case that I am quite confident too see a fix quite soon.

  • Like 1

Share this post


Link to post
20 minutes ago, Daniel said:

no one tested with empty

First, empty shouldn't be unusual. Second it was a bulleted list not empty..

 

Filed: RSP-33091

Edited by FredS

Share this post


Link to post
13 hours ago, emailx45 said:

any way, the RAD Studio 10.4.2 claims "GDIPlus" use and as it dont have direct access on VGA, this can be the "error"!

I assume everyone running VirtualBox with 10.4.2 will get this error with no workaround?

  • Like 1

Share this post


Link to post
Guest
2 hours ago, Darian Miller said:

I assume everyone running VirtualBox with 10.4.2 will get this error with no workaround?

hi @Darian Miller

trying others times with change the setup on "VirtualBox" and "NVidia SETUP" ---> nothing changes this bug-bug!

  • changes on NVidia Setup for use my GPU NVidia GTX1650 Super 4GB VRAM as prefered to VirtualBox renders
  • changes on VM config to new options nothing!
  • NOTE: my VM until appears using 3D resource on MS Task Manager, but this dont help in nothing in RAD Studio 10.4.2 - the error still there!
  • by way, only a VMWare would can help, but it so expensive for tests and so big for download trial! - I pass it!

if anybody can try any other, can read this article about VirtualBox and NVidia cards! At least, the "answer" came to Linux  Ubuntu using passthrough access! or hack the MSWindows+NVidia!!!

https://superuser.com/questions/779070/use-nvidia-gpu-from-virtualbox

Quote

Finally, on Linux hosts, you can try to pass the GPU through to the virtual machine, but this will only work for PCI cards and I wasn't able to find whether yours is PCI, and even so, you stand a good chance of ripping the GPU away from the host or causing other problems. First find the PCI address (bus, device, and function) for the good card. Set your VM's chipset to ICH9; this didn't immediately break anything when I tried it. Then use the VBoxManage utility to attach the card:   vboxmanage modifyvm "Your VM Name" --pciattach BB:DD.F@bb:dd.f

 

image.thumb.png.df31142a58af9fcf6552431311e16248.pngimage.thumb.png.b6a9a2b7766a19fb58c7b9c8e8dc09fd.png    

 

my RAD 10.3.3 Arch at least dont show this in VirtualBox tests in same conditiions!!!

 

as is only for my internal tests, it's enought! go ahead people!

 

hug

Edited by Guest

Share this post


Link to post
Guest
12 hours ago, Daniel said:

Please check the system requirements against your VM:

thanks @Daniel

I have tryed many ways, include some SoF posts and Oracle forum... nothing for while!

but this is only for my internal use and test... nothing important for me!... but for another, I dont know.

 

hug

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×