Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
.NET 4 and Visual Studio 2010 General Discussions For discussing anything about .NET 4, WPF, WCF, the rest of the .NET 4 Framework, and Visual Studio 2010 that isn't about a specific Wrox book. Please post code questions about a specific language (C#, VB, ASP.NET, etc) in the correct language forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET 4 and Visual Studio 2010 General Discussions section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old October 20th, 2010, 04:21 PM
Friend of Wrox
Points: 2,523, Level: 20
Points: 2,523, Level: 20 Points: 2,523, Level: 20 Points: 2,523, Level: 20
Activity: 27%
Activity: 27% Activity: 27% Activity: 27%
 
Join Date: Jun 2003
Location: Denver, CO, USA.
Posts: 409
Thanks: 57
Thanked 1 Time in 1 Post
Default VS 2010 locks up entire computer?

Just started working with VS 2010 a few weeks ago. I've had no trouble converting existing VS 2008 projects and everything was going along fine until I tried creating a new Windows project.

Now, every so often when I fire up this project in the IDE, it locks up the entire workstation before displaying the Form. Aside from moving the mouse, I cannot do anything else on the computer when this happens; windows will not accept focus, the keyboard stops working, and I can't even get Task Manager to open to kill the process!

I've let it sit for as long as 15 minutes hoping whatever it's trying to do will eventually complete or time out, but no such luck. It requires a hard shut down of the entire system (and an unusually lengthy reboot) to get the system running again. Not only that, but every time this happens the solution/project seems to get corrupted. Thereafter, I see a dialog box that says:

The following module was built either with optimizations enabled or without debug information:

<executable path and file name>

To debug this module, change its project build configuration to Debug mode...

The Debug Configuration IS set to Debug (active) and changing it to just Debug makes no difference, nor does changing it to Release, All Configurations, back again, or any combination you can think of! It just keeps throwing this pesky warning message, and the only way to get rid of it is create a new project and reload all the objects into it. I've done this four times now and it's getting very tedious!

And this is not the world's most complex process, either! All it's doing currently is getting the names of tables in a SQL Server database and populating a listview, but SOMETIMES it just never seems to get there. It's all of one lousy form and two I/O classes, and is execurting maybe two dozen lines of code before it displays the Form.

Does anybody have any idea why this is happening and what I can do to stop this?
Reply With Quote
  #2 (permalink)  
Old October 21st, 2010, 08:52 AM
Friend of Wrox
Points: 2,523, Level: 20
Points: 2,523, Level: 20 Points: 2,523, Level: 20 Points: 2,523, Level: 20
Activity: 27%
Activity: 27% Activity: 27% Activity: 27%
 
Join Date: Jun 2003
Location: Denver, CO, USA.
Posts: 409
Thanks: 57
Thanked 1 Time in 1 Post
Default

This gets weirder! I have just discovered that ocne this happens, I am unable to open the code or designer windows for the form. The first time I try to do so after restarting VS, it opens a window containing line after line that looks like this:

00000000 00 00 00 00 00 00 00 00 00...
00000010 00 00 00 00 00 00 00 00 00...

It also opens a dialog box that says the vb files is already open and asks me if I want to close it. Responding with Yes, or attempting to open the form.vb file returns this message:

There is no editor available for
'filename.exe'

Make sure the application of the file type (.vb) is installed.

I then tried opening the form.vb in Notepad. Unlike other form.vb files, it appears to be 5K of null values. VS seems to have eaten all of the code! And if I then try running it in the debugger, it throws this error during compilation:

Unable to open module file 'form.vb': System Error &H80041feb&

Interestingly, I am still able to edit VB classes in the same project, not that thats of much help if I can't even run it now.

Off to create yet another new project to see if I can figure out how to avoid this. <sigh>
Reply With Quote
  #3 (permalink)  
Old October 21st, 2010, 10:03 AM
Friend of Wrox
Points: 2,523, Level: 20
Points: 2,523, Level: 20 Points: 2,523, Level: 20 Points: 2,523, Level: 20
Activity: 27%
Activity: 27% Activity: 27% Activity: 27%
 
Join Date: Jun 2003
Location: Denver, CO, USA.
Posts: 409
Thanks: 57
Thanked 1 Time in 1 Post
Default

I've managed to finish debugging it without locking up my workstation again. Wish I could say I've fixed whatever was causing it.

There's still something wrong because it will not let me compile a Release version. I'm going to create a new thread about that.

Still interested in hearing any theories on what was causing my computer to lock up.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Access 2010 and Access Services with SP 2010 kmaford BOOK: Professional SharePoint 2010 Development 0 September 14th, 2010 04:25 PM
Visual Studio 2010 in Focus at Great Indian Developer Summit 2010 shaguf5575 ASP.NET 1.x and 2.0 Application Design 0 February 24th, 2010 06:03 AM
Visual Studio 2010 in Focus at Great Indian Developer Summit 2010 shaguf5575 ASP.NET 1.x and 2.0 Application Design 0 February 24th, 2010 06:02 AM
VB code locks up?? gfitz11 Access VBA 2 February 6th, 2009 04:54 PM
ASP.Net application times out, locks up computer davidayres VS.NET 2002/2003 0 March 18th, 2005 10:30 AM



All times are GMT -4. The time now is 02:41 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.