Solved

system hangups using vb .NET with .NET4.5

Posted on 2014-02-27
6
365 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Ever wondered why Windows 8 and 10 don't seem to accept your GPO-based software deployment while Windows 7 does? Read on.
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…

911 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now