Jump to content

Which .NET version does Paint.Net choose?


Recommended Posts

I installed Paint.net on an older system, with Windows XP SP3.

Then i got the .NET framework v4.0 and the startup time for Paint.net was quite okay.

I needed some other programs that required the .NET framework(s) so i installed .NET 1.1, 2.0-3.5 too.

Now it seems, Paint.net starts up much slower.

Which version of .NET does Paint.net use in this situation (all .NET versions installed) ?

Link to comment
Share on other sites

Startup time will be slower because NGEN was run with .NET 4. If you have any .NET 2.0 - 3.5 installed, then Paint.NET will use that instead of .NET 4. It's a technical limitation of the version dispatching system.

Just rerun the Paint.NET installer and it will re-NGEN itself, and then startup faster.

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
Share on other sites

Thanks for the clarification!

With the Windows file cache and all, it's kind of hard to test application startup times.

But your explanation is confirmed,

- reinstalled Paint.net, Paint.net folders are now added to NativeImages 2.0.xxx folder in Assembly

- loaded up the RAM with several other heavy applications (Windows file cache emptied)

- started Paint.net, startup seems much better.

Maybe it is possible to add a check, so that Paint.net will check the .NET version it is using, and check if NativeImages already exist for that .NET version?

Link to comment
Share on other sites

Maybe it is possible to add a check, so that Paint.net will check the .NET version it is using, and check if NativeImages already exist for that .NET version?

Not gonna happen. NGEN is a best-faith effort optimization. There are any number of reasons why the native images would be missing, and even then it still requires administrator privilege to generate them. It's not an error, it just results in lower startup performance.This is also an overly niche scenario, and in general it's not a smart use of time to optimize for those.

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
Share on other sites

  • 1 month later...

It depends on what version of Windows you're using.

If you're on XP on your own home computer, then your account probably already has admin privilege. If you're using a computer at work/school, you may not.

If you're on Vista or Win7, then the installer will automatically try to get admin privilege for itself via UAC (User Account Protection). It's the popup dialog that says "This program! Do you trust it! [Continue] [Cancel]" (well, look it up on google images or something to get a better idea of it). It's still possible, if you're using a work/school computer, that this simply may not be possible (most programs run at low privilege by default, and also by default accounts can launch new programs with admin privilege, which is called "elevation").

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...