Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 10 of 10 total
Thread GDI+ Error (Resize form)
Fri, Jan 28 2022 2:26 PMPermanent Link

Eivind

Gents

I know I'm the reason for giving myself this headache but I still want to reach out to see if there is any "hack" for my problem. Since starting with EWB a long time ago I have been using an Intel Mac with Parallel Desktop. All this have been working very well on the EWB side of things. Now when my old Mac turned 4 years+ years old I thought I buy myself a M1 Mac as those are very powerful and Parallel have issued a version for it. I got myWindows 11 ARM setup but then my problem started. First I could not get IIS for it. Second I could not install the 64 bit version of SQL Server express. This was solvable as I just run those on a virtual server in the cloud.

Then I came to Delphi and EWB. Delphi installed perfectly and works with no issues (so far). EWB installed and run perfectly all the way to some projects I have with some large forms. Either height or width larger than about 2000. Then I started to get GDI+ errors when resizing the forms over a certain height and width. Sometime I just have to kill EWB as the error message keeps appearing. Some time I could just change the size in the object inspector and the form "came back". I have been googling and searching for some days now with no luck. I see that the gdiplus.dll is present but there is something strange with the Windows ARM environment. Similar issues has been mentioned before in previous version of EWB and had been resolved. Obviously this is because of my Windows 11 on ARM but if anyone has any dirty hacks or anything I can do to get this working it would be greatly appreciated. If not I have to dust off my old Mac again and run it while my brand new MacBook sits idle.

I have just attached a small video of a test app demonstrating this. Everytime the height or width is high the form disappears. Once changing back to smaller values it comes back. The scroll bars do change though even if the form disappears.

Thanks

Eivind Brenne

I have



Attachments: EWB GDI.MOV
Sat, Jan 29 2022 1:36 AMPermanent Link

erickengelke

Eivind wrote:


> Then I came to Delphi and EWB. Delphi installed perfectly and works with no issues (so far). EWB installed
> and run perfectly all the way to some projects I have with some large forms. Either height or width larger than
> about 2000. ..

> Eivind Brenne

I am currently running on a Intel Mac.  There are three cards you have going: Mac M1 processor, Parallels, Windows 11.

I'm doing Intel Mac, Windows 10, Parallels.  So that's two things different.  

I'd suggest booting Win10 under Paralletls and trying that, as it would be one less thing different, and Windows 11 has probably not been tested as strenuously as Win11 at this point in time, particularly by the Parallels people as it's really mostly beta quality code coming out of MS at this point and early release support from Parallels.

Good luck,
Erick
EWB Programming Books and Component Library
http://www.erickengelke.com
Sat, Jan 29 2022 1:36 AMPermanent Link

erickengelke

Eivind wrote:


> Then I came to Delphi and EWB. Delphi installed perfectly and works with no issues (so far). EWB installed
> and run perfectly all the way to some projects I have with some large forms. Either height or width larger than
> about 2000. ..

> Eivind Brenne

I am currently running on a Intel Mac.  There are three cards you have going: Mac M1 processor, Parallels, Windows 11.

I'm doing Intel Mac, Windows 10, Parallels.  So that's two things different.  

I'd suggest booting Win10 under Paralletls and trying that, as it would be one less thing different, and Windows 11 has probably not been tested as strenuously as Win11 at this point in time, particularly by the Parallels people as it's really mostly beta quality code coming out of MS at this point and early release support from Parallels.

Good luck,
Erick
EWB Programming Books and Component Library
http://www.erickengelke.com
Sat, Jan 29 2022 6:14 PMPermanent Link

Eivind

Erick

Well, the insider version of Win 10 ARM is long gone. Only the 11 ARM version is maintained now. I did look around for the old version but could only find 11. I also checked the GDI dll and it has the same version as my old Mac's Windows 10. Anyhow, there is so many other issues that could cause this.

Its a shame with such a nice and powerful laptop as the MacBook Pro M1. In the meantime until I can find a fix for this I have set up an Azure Windows Virtual Machine and installed EWB and Delphi to do development over Remote Desktop. Not ideal but I'm out of options now.

Best regards

Eivind
Sat, Jan 29 2022 7:47 PMPermanent Link

erickengelke

Eivind wrote:
> Well, the insider version of Win 10 ARM is long gone. Only the 11 ARM version is maintained now. I did look
> around for the old version but could only find 11. I also checked the GDI dll and it has the same version as my
> old Mac's Windows 10. Anyhow, there is so many other issues that could cause this.

Sorry to hear you couldn't find a resolution.

I've been holding off on the M1 just because I didn't want to be the guinea pig.  I'd love it for the performance though.

And the MacBooks are sturdy.  The hinges and cases outlast the software support, which is rare for laptops.

Erick







Its a shame with such a nice and powerful laptop as the MacBook Pro M1. In the meantime until I can find a fix for this I have set up an Azure Windows Virtual Machine and installed EWB and Delphi to do development over Remote Desktop. Not ideal but I'm out of options now.

Best regards

Eivind
EWB Programming Books and Component Library
http://www.erickengelke.com
Thu, Feb 3 2022 7:39 PMPermanent Link

erickengelke

erickengelke wrote:

> I've been holding off on the M1 just because I didn't want to be the guinea pig.  I'd love it for the
> performance though.

The GDI+ code interfaces with the video driver.

Like this message indicates, you often end up looking at the video driver update to solve it.
> https://windowsreport.com/gdiplus-windows-error-message-on-shutdown/

My guess is that it's a Parallel's bug in the video emulation.  They really moved fast to market with the M1.  Probably when the image is larger than the screen size (approx 2000 pixels in some direction), that may be when it fails.  

I don't know if you can turn off video acceleration to see if that helps, as I don't have that release.

I believe Parallels Corp. can run the Demo version of EWB with your sample program
(Demo version available at https://www.elevatesoft.com/download?category=ewb)

and  to reproduce the problem and fix it.

I would be most interested to know if it gets fixed, because I'm itching to upgrade too.  I would have bought it this week except for the EWB compatibility issue.  That makes it a non-starter for me.

Erick
EWB Programming Books and Component Library
http://www.erickengelke.com
Thu, Feb 3 2022 7:44 PMPermanent Link

erickengelke

Just to be clear, I have a few more questions.

Are you getting the GDI+ errors when you are coding the forms, or are then when you run the project?  Or both?

Do you get them if you use specified location, or if you are using responsive design, or both.

Erick
EWB Programming Books and Component Library
http://www.erickengelke.com
Thu, Feb 3 2022 7:53 PMPermanent Link

erickengelke


One more question:

Can you reproduce the error just loading the EWB web page in Internet Explorer?  I hope so,   Because then Parallels can debug it more simply than if they had to install the EWB software, etc.  It would truly be a Windows bug.

The other possibility is that EWB 3.x which will support Edge browser may overcome this problem but skipping IE limtitations.  Whenever that gets released.

Let us know how it goes.

Erick
EWB Programming Books and Component Library
http://www.erickengelke.com
Fri, Feb 4 2022 9:39 AMPermanent Link

Eivind

@Erick

After some extensive testing the last days I managed to find out what was causing the GDI+ errors. To answer your question above, the issue only happened in the EWB3 IDE. Once running in the browser there is no problems at all both on Chrome or Edge.

I did manage to get a hold of a Win 10 ARM version and installed it just to see if it was Win 11 that was the problem. This time I just installed EWB3 and tested. Voila.... It worked and that made be believe it was the Win 11 ARM version that was the problem. Further I went ahead and installed Delphi with no problems. EWB still worked. At the end I installed SQL Server 2014 as the 64bit 2016+ version still cannot run on ARM. While installing SQL Server 2014 I had to install DotNet 3.5.... And this was when disaster hit... EWB was not working again with the same errors. I uninstalled SQL Server 2014 and DotNet 3.5 but the issues still persisted. That led me into believing that Win 11 ARM should also be good as long as I keep the DotNet 3.5 far away. And as it turned out, I now have a functional development environment on Win 11 ARM without SQL Server and IIS. As for IIS until Microsoft have made it available for ARM I use IIS Express. As for my database I installed Azure SQL Edge on my MacOS as a replacement until SQL server is ready for ARM as well. There is also a management studio for Azure SQL called Azure Data Studio that is very similar to SQL Server Management studio.

So yea. Quite happy now with my new MacBook Pro M1.

Cheers

Eivind Brenne
Fri, Feb 4 2022 5:40 PMPermanent Link

erickengelke

Eivind wrote:


>I now have a functional development environment on Win 11 ARM

Thanks for sharing the process you took as well as the results.  This makes sense, and makes me more comfortable so I will order my upgrade M1Pro Mac on Monday.

Have a great weekend.
Erick
EWB Programming Books and Component Library
http://www.erickengelke.com
Image