Solved

system hangups using vb .NET with .NET4.5

Posted on 2014-02-27
6
362 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
Comment Utility
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
Comment Utility
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
Comment Utility
did you try to build for x64 CPU ?
0
 

Accepted Solution

by:
alexking earned 0 total points
Comment Utility
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
Comment Utility
This worked, although seems a compromise. No-one suggested anything better.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Security measures require Windows be logged in using Standard User login (not Administrator).  Yet, sometimes an application has to be run “As Administrator” from a Standard User login.  This paper describes how to create a shortcut icon to launch a…
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…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

743 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

14 Experts available now in Live!

Get 1:1 Help Now