Solved

system hangups using vb .NET with .NET4.5

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
MVC DDL Json Not Binding to Model 2 27
Function after success of Jquery/AJAX action 9 28
parsing JSON help 1 20
Updating specific fields only in MVC/Entity controller 2 18
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 …
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to successfully download and install the SARDU utility on Windows 8, without downloading adware.

839 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