Solved

system hangups using vb .NET with .NET4.5

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

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

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…
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
This Micro Tutorial will show you how to maximize your wireless card to its maximum capability. This will be demonstrated using Intel(R) Centrino(R) Wireless-N 2230 wireless card on Windows 8 operating system.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

688 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