473,624 Members | 2,543 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Visual Studio .NET 2003 Hangs when clicking on a function

I have some code that looks a bit like this (note: this isn't the
actual code, it's just here in an attempt to help me explain what
actions I'm doing):

void foo(int bar1)
{
}

void foo(float bar2)
{

foo(3);
}
If I move the cursor by mouse to the word "foo" on the line "foo(3)"
and then do any of the following:

- press "control-f" to search for this function
- hilite the word "foo" by double clicking it and then right click
with the mouse

Then .NET will hang.

It's actually interesting, because if I use the keyboard it seems to
avoid the hang in most cases.

I thought it was an intellisense problem, but I turned off every
intellisense option I could find, and I even tried making the .ncb file
for the solution read only (suggested somewhere else on this forum).

Anyone have any other ideas? Unfortunately I have the bad habit of
doing silly things like clicking on functions with my mouse and then
searching for them, or trying to right click on them to "go to
definition".
thanks,
sam

Nov 17 '05 #1
6 1512
>I have some code that looks a bit like this (note: this isn't the
actual code,


Sam,

Can you reproduce the problem in a new project?

Dave
Nov 17 '05 #2
Hi Dave-
I was able to narrow down the problem. If I make a new project
(default win32 console application) and paste the following code into
the .cpp file containing the default implementation of "main()"(ie ,
just replace everything in that file with this)
-------------------- begin cut ------------------

// crash2.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"

int _tmain(int argc, _TCHAR* argv[])
{
return 0;
}

namespace BAZ
{

I32 Foo(Bar *byzA, Bar *byzB, Rame *res)
{
}

void Foo(Bar *in_byz, Bop *mosh, Bip *bip)
{
}

void Foo(Bar *in_byz, Bip *bip)
{
Foo(&bez, (Bop *)jojo, bip);
}

} // namespace BAZ
------------------------- end cut -------------------------------

Then here are the steps to cause the hang (I tested this on a few other
people's .NET installations here as well)

1) Find the line "Foo(&bez, (Bop *)jojo, bip);"
2) Double click the word "Foo" part the function name is hilited
3) Press "control f" to initialize the find dialog -OR- right click
on the selected "Foo" string and then select "Go To Definition" (I have
the option to initialize the find dialog based on what is hilited, so
that might be part of the reason it crashes when i hit "control-f" --
not positive about that though)
4) Sit and wonder why .NET is hanging and if it is a part of
microsoft's secure computing initiative
Like I said, I've tried this on multiple different computers here and
it hangs on all of them.. The key part seems to be the fact that the
functions are sitting inside the namespace-- if I remove the namespace,
then it doesn't cause a hang.

Are you able to reproduce this at all on your end? I'm still trying to
find an option somewhere that will prevent the hang... argh!

And just to be complete, here is the version info in the "About" window
for my visual studio .net install:

Microsoft Development Environment 2003 Version 7.1.3088
Microsoft .NET Framework 1.1 Version 1.1.4322 SP1
Microsoft Visual C++ .NET 69462-112-0090057-18350

-sam

Nov 17 '05 #3
On 11 Mar 2005 18:38:16 -0800, "sam c" <sa**@insomniac games.com>
wrote:
Hi Dave-
I was able to narrow down the problem. If I make a new project
(default win32 console application) and paste the following code into
the .cpp file containing the default implementation of "main()"(ie ,
just replace everything in that file with this)
<snip>
Then here are the steps to cause the hang (I tested this on a few other
people's .NET installations here as well)

1) Find the line "Foo(&bez, (Bop *)jojo, bip);"
2) Double click the word "Foo" part the function name is hilited
3) Press "control f" to initialize the find dialog -OR- right click
on the selected "Foo" string and then select "Go To Definition" (I have
the option to initialize the find dialog based on what is hilited, so
that might be part of the reason it crashes when i hit "control-f" --
not positive about that though)
4) Sit and wonder why .NET is hanging and if it is a part of
microsoft's secure computing initiative
Like I said, I've tried this on multiple different computers here and
it hangs on all of them.. The key part seems to be the fact that the
functions are sitting inside the namespace-- if I remove the namespace,
then it doesn't cause a hang.

Are you able to reproduce this at all on your end? I'm still trying to
find an option somewhere that will prevent the hang... argh!

And just to be complete, here is the version info in the "About" window
for my visual studio .net install:

Microsoft Development Environment 2003 Version 7.1.3088
Microsoft .NET Framework 1.1 Version 1.1.4322 SP1
Microsoft Visual C++ .NET 69462-112-0090057-18350


I haven't tested your particular program, but browse information can
cause some weird stuff. If your project is build with browse info,
rebuild the entire thing. If *parts* of your project are, but others
not, turn it all on or all off.

Also beware of any files on network drives that are unavailable; these
can cause seemingly interminable hangs just about anytime anywhere.

--
Sev
Nov 17 '05 #4
>I was able to narrow down the problem.

Thanks Sam. I can repro it too.
Then here are the steps to cause the hang (I tested this on a few other
people's .NET installations here as well)

1) Find the line "Foo(&bez, (Bop *)jojo, bip);"
The first time I tried it, It hung for me even before this stage - all
I did was paste your code into the editor, switch to my newsreader to
read your instructions and then click back to VS and it was dead!

You might want to try a similar move yourself.
Like I said, I've tried this on multiple different computers here and
it hangs on all of them.. The key part seems to be the fact that the
functions are sitting inside the namespace-- if I remove the namespace,
then it doesn't cause a hang.


I'd suspect Intellisense as the culprit, but disabling the statement
completion settings doesn't resolve the problem for me - however,
trying the repro again, it then hung when I pressed Ctrl+F as you
described. I suspect the precise hang point may be timing as much as
anything else.

The only good news I have is that it doesn't occur in VS2005 B1.

I suggest that you contact MS support (phone). I'd be pretty confident
it's a bug so you shouldn't be charged, and they may know of a
work-around or have a patch available.

Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq
Nov 17 '05 #5

Just wanted to follow up on the thread.. I talked to Microsoft, it is
indeed a bug, and it will be fixed in visual studio service pack 1.
Until then, you're basically SOL!

-sam

Nov 17 '05 #6
>Just wanted to follow up on the thread.. I talked to Microsoft, it is
indeed a bug, and it will be fixed in visual studio service pack 1.
Until then, you're basically SOL!


Thanks for the confirmation Sam.

I guess we'll see VS2005 RTM way before a VS2003 service pack.

Dave
Nov 17 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
6116
by: Tom Lee | last post by:
Hi, I'm new to .NET 2003 compiler. When I tried to compile my program using DEBUG mode, I got the following errors in the C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7 \include\xdebug file as folows. I need help to resolve them ASAP: cl /c /nologo /MDd /W3 /Od /GR /GM /Zi /GX /D "_DEBUG" /D " WIN32" /D "_W INDOWS" /D "_WINDLL" /D "_AFXDLL" /D "_MBCS" /D "_USRDLL" /
0
1451
by: blegs38552 | last post by:
My computer currently has Visual C++ .NET Standard 2003 installed in Windows XP Home Edition, running inside of Microsoft Visual Studio .NET 2003. I recently acquired Visual Basic.net Standard Version 2002. When I tried to install this, it first required me to run the Microsoft Windows Component Update, and then to install the program. I selected certain features (not the documentation to save disk space), and proceeded to install. At...
5
2567
by: Patrick Olurotimi Ige | last post by:
Hi, I have VStudio.Net 2003 installed but can i install Visual Web Developer also on the same PC. My current .Net Frameork version is 1.1. Will the Visual Web Developer install ASP.NET 2.0? And if i do will it affect my other applications? I want ot build ASP.NET 2.0 apps!!!
1
1580
by: JQA Academia | last post by:
I've reinstalled twice now... I've got the Visual Studio.net Academic version 2003. During installation, I get no errors but when I try to open a new project from the inital start page, it just hangs and then eventually the application stops responding. I'm running on Windows XP Professional, I've made sure IIS is activated. Any Ideas?
6
3358
by: JonSteng | last post by:
..Net Visual Studio Professional 2003 Version 7.1.3088 ..Net Framework 1.1 SP1 Version 1.1.4322 IIS 5.1 Windows XP Professional SP2 Micron T3000 Laptop (1.5 GHz; 1GB RAM; 40GB HD with 17GB Free) I installed FrontPage server extensions to IIS on my computer while following instructions in a Microsoft ASP.Net MCSD training book. After installing the FrontPage Server Extensions I cannot create a new
1
387
by: Daniel | last post by:
for some reason when i deploy my C# application on windows 2003 occasionaly rdr.ToString() hangs where rdr is a System.Data.SqlClient.SqlDataReader. Is there a fix for this? is my visual studio.net out dated?
3
1687
by: robin9876 | last post by:
Is it possible to install Visual Studio 2003 and 2005 on the same pc?
3
6052
by: Edwin Smith | last post by:
I have a 2 form project in VS2005 that now hangs whenever I try to do anything with the second form. This seems to have started when I added some SQL tables from a Pervasive v.9 database using the Pervasive ODBC driver. The devenv.exe process hangs and will not respond with about 50% cpu usage and about 100 megs of memory used. I am running it on an Athlon 64 bit dual core with 32 bit Windows XP pro. I have 2 megs of memory so I don't...
0
7323
jwwicks
by: jwwicks | last post by:
Introduction This tutorial describes how to use Visual Studio to create a new C++ program, compile/run a program, resume work on an existing program and debug a program. It is aimed at the beginning CIS student who is struggling to get their programs working. I work in the computer lab at the college I'm attending and I see many students who don't know how to use the IDE for best results. Visual Studio automatically creates a number of...
0
8249
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
8348
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8493
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7176
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5570
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4084
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4187
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2613
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1493
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.