Solved

system hangups using vb .NET with .NET4.5

Posted on 2014-02-27
6
379 Views
Last Modified: 2014-03-17
I have a very large, multi-form VB .NET program using Visual Studio 10 (VB) and .NET 4.0 with SQL Server - it works well and quickly
When installed on a .NET 4.5 machine there is a 30 - 60 second pause when loading a new form into a MDI interface for BUILT applications, not apparent in debug mode on development PC.
This is still present when compiled with VB13 and targeted to .NET 4.5.1
The code just executes a load command, previously instantaneous. Something must have changed in the memory management with .NET 4.5
How can I restore the short load times, please?
0
Comment
Question by:alexking
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 16

Expert Comment

by:Kalpesh Chhatrala
ID: 39893857
you did not provided any error message.

if you did not handle errors then you can retrieve error Message from Control Panel->Administrative Tools -> Event Viewer.
0
 

Author Comment

by:alexking
ID: 39909349
No error messages, just long delays loading forms.
Further investigation shows that checking box 'Prefer 32 bit' in properties overcomes the effect.
However, I am running a 64 bit system - so seems nonsensical
0
 
LVL 16

Expert Comment

by:Kalpesh Chhatrala
ID: 39909450
did you try to build for x64 CPU ?
0
 

Accepted Solution

by:
alexking earned 0 total points
ID: 39917112
Using WIndows 8 or Server 2012 .NET 4.5.1 and vb13:

1. I built for x64 and it was slow to load forms when built - but fast in vb13 development mode
2. Ticked (checked) 'Prefer 32' and it was fast when built.
'Prefer 32' was grey when project converted from vb10 to vb13 so started new project and imported all forms etc. to recover the ability to use this option.

This all seems inconsistent - am I missing something?
I want a fast build that can be used both with .NET 4.0 and .NET 4,5,1 on 32 and 64 bit systems. A LOT of windows XP systems still out there!

so, as I've 'sort of' solved the problem myself, but VERY inelegantly, the question now is:
'How should I be doing this to get a single, fast and inclusive project?'
0
 

Author Closing Comment

by:alexking
ID: 39933743
This worked, although seems a compromise. No-one suggested anything better.
0

Featured Post

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

With Windows evolving further, the built-in protective mechanisms get better and better. Still, Microsoft is not very good at introducing those to the technical community. This article is about a new bitlocker functionality that could revolutionize …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This Micro Tutorial will teach you how to reformat your flash drive. Sometimes your flash drive may have issues carrying files so this will completely restore it to manufacturing settings. Make sure to backup all files before reformatting. This w…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question