Issue when adding DGKC on Form (VBNET)

Forum for reporting problems
ghisbar
Posts: 0
Joined: Tue Jan 10, 2023 4:41 pm

Issue when adding DGKC on Form (VBNET)

Post by ghisbar »

Hello,

I am testing the Patch Sample.
When I put the DKGC component on the frame I have a warning message.
Drop DGKC issue 1.JPG
Drop DGKC issue 1.JPG (23.64 KiB) Viewed 31540 times
And Visual Studio stop.

My environnement :
  • Win7,
    Visual Studio 2019,
    DG Kernel 7.0 May 19 2022 5314
Can anybody help?

nickz
Site Admin
Posts: 236
Joined: Fri Jul 26, 2013 3:58 am

Re: Issue when adding DGKC on Form (VBNET)

Post by nickz »

Hello, Ghisbar

Sorry about that.
I am sure there is a problem, just as an encouragement:
I have tried to reproduce it as:
- Installed 5314 update
- Started VS 2019 as admin
- Opened the installed VB Patch sample
- Opened the Patch.vb form in designer
- Made the form little larger to insert another instance of the DGKC control
- In the Toolbox > Components clicked DGKC and placed on the form OK. No exceptions.
- In properties changed ShowGlobal Axes to true
- Started the app in debugger. It runs OK. See the picture

Are you doing it differently? Could you give us more info? You can also write to us via Contact Page

Kind regards
Nick Zubchenko
DInsight
Attachments
DesignBug.png
DesignBug.png (63.14 KiB) Viewed 31537 times

nickz
Site Admin
Posts: 236
Joined: Fri Jul 26, 2013 3:58 am

Re: Issue when adding DGKC on Form (VBNET)

Post by nickz »

A thing to try:

Visual Studio caches controls, so the version of DGKC.dll may be out of date and incompatible with the installed code. Try replacing the DGKC in the toll box:
Open the Toolbox with a dummy new VB app and a designer opened just to see the Toolbox.
Right-click Components > DGKC. Choose Delete. Close Visual Studio (important).
Restart Visual Studio and reopen the Toolbox.
Right-click Components the components tab. Select Choose items. Browse to the installed DGKC (D:\Projects\DGKernel_7_0\Bin\AnyCPU\DGKC.dll is the default).

Cheers

ghisbar
Posts: 0
Joined: Tue Jan 10, 2023 4:41 pm

Re: Issue when adding DGKC on Form (VBNET)

Post by ghisbar »

Hello nickz

I have intalled 5314 update (that's the first time I try your product, no older versions)
- Started VS 2019 as admin
- Install DGKC.dll in toolbox and restart VS 2019
- Opened the installed VB Patch sample
- Opened the Patch.vb form in designer (D:\Projects\DGKernel_7_0\Samples\NET\VB\Patch\Patch.sln)
And I have an issue VS , stop to work.

nickz
Site Admin
Posts: 236
Joined: Fri Jul 26, 2013 3:58 am

Re: Issue when adding DGKC on Form (VBNET)

Post by nickz »

Gisbar,

Please try this:
5343/DGKernel_7_0.exe

It is an unofficial update, we just have compiled. We have replaced rendering in designer with a safe mode rendering. It should work. Please let me know if it does not.

It is a temporary workaround to get you going with the evaluation.

Your original picture shows that the problem is in the design mode rendering. It is a bottleneck. There is tricky functionality to get a 3D image of the model under numerous constraints applied by the design mode.

We still could not reproduce the problem on several machines, but we see few improvements to make this functionality more robust. It will take few days to add them. There will be an official update next week.

Regards

ghisbar
Posts: 0
Joined: Tue Jan 10, 2023 4:41 pm

Re: Issue when adding DGKC on Form (VBNET)

Post by ghisbar »

Hello nickz,

I have intalled 5343 update
- Started VS 2019 as admin
- Install DGKC.dll in toolbox and restart VS 2019
- Opened the installed VB Patch sampl e(D:\Projects\DGKernel_7_0\Samples\NET\VB\Patch\Patch.sln)
And I have an issue VS , stop to work.

I restarted VS 2019
-opened a new project
- Opened the Form1.vb in designer
- Made the form little larger to insert an instance of the DGKC control
- In the Toolbox > Components clicked DGKC and placed on the form
and i have a warning message :
Drop DGKC issue 2.JPG
Drop DGKC issue 2.JPG (144.33 KiB) Viewed 31507 times
I expect that will help you

nickz
Site Admin
Posts: 236
Joined: Fri Jul 26, 2013 3:58 am

Re: Issue when adding DGKC on Form (VBNET)

Post by nickz »

Hello Gisbar,

This is weird. This is the code in the method which throwed the exception:

Code: Select all

	private void OnPaintSafeMode(Graphics g)
        {
            Font drawFont = new Font("Arial", 32); SolidBrush drawBrush = new SolidBrush(Color.DarkRed);
            float x = 40.0F; float y = 40.0F;
            g.DrawString("DG Kernel Control", drawFont, drawBrush, x, y);
            g.DrawString("Safe design mode", drawFont, drawBrush, x, y + 70.0F);
        }
You could try this:
5348/DGKernel_7_0.exe
We have replaced using font there with drawing a simple red rectangle.

I do not have much hope, though. The fact that the above code does not work means there is something wrong with .NET on your side. Can you upgrade Windows? Support for W7 has stopped in 2020. It would save you time with this software at least. v7.0 was built with Visal Studio 2019 also, but it was updated in 2020 before the release.

Regards
Nick

nickz
Site Admin
Posts: 236
Joined: Fri Jul 26, 2013 3:58 am

Re: Issue when adding DGKC on Form (VBNET)

Post by nickz »

Hello Gisbar,

We have posted the official update 5349: Downloads. It has few improvements in exceptions handling and also added error logging.

Regards

ghisbar
Posts: 0
Joined: Tue Jan 10, 2023 4:41 pm

Re: Issue when adding DGKC on Form (VBNET)

Post by ghisbar »

Hello nickz,

I updated to Win10 and Microsoft Visual Studio Community 2019 Version 16.11.23 (.Net Framework 4.5)

I intall the official update 5349
- Started VS 2019 as admin
- Install DGKC.dll in toolbox and restart VS 2019
- Opened the installed VB Patch sampl e(D:\Projects\DGKernel_7_1\Samples\NET\VB\Patch\Patch.sln)
And I have an issue, VS stop to work.

Sorry but I stop the tests.
I'll may be try again later.

nickz
Site Admin
Posts: 236
Joined: Fri Jul 26, 2013 3:58 am

Re: Issue when adding DGKC on Form (VBNET)

Post by nickz »

Hello Gisbar

I am very sorry about the problems and thank you for the effort.
We will keep working on it.
I have sent you a private message.

Nick

Post Reply