Intellisense magically disappearing!

G

Guest

I've written a DLL assembly in C#. I've built the DLL, and reference it from other projects. The assembly contains a single file, containing a single abstract class. This class contains loads of static "helper" methods, as well as a load of nested abstract classes that also contain static "helper" methods. This set up allows me to write code like the following

FormMethods.BusinessObjectEvents.HandleIsEditChanged([argument list.....])
FormMethods.ConstructorCall([argument list.....])

As you can see, the class is very "structured", but the code in the class isn't at fault. Now, straight after I add a reference to the built assembly, Intellisense works fine. When press the 'dot' key, the intellisense pops up, at all levels of the heirarchy. But then, a few minutes later, for apparently no reason at all, Intellisense on this item stops working properly (it is fine everywhere else). Then, I'll only be able to see methods at the main class level. None of the nested classes appear, so I'm not able to access their methods via Intellisense, although they are still there, since if I type them out unaided, the code compiles. I've tried all the usual stuff - this problem isn't triggered by build warnings or errors (as often happens). It's as though it's happening at random.

Historically, the referenced assembly has been a project referenced from within the same solution, an assembly referenced by picking up the compiled DLL, and an assembly registered in the GAC. In all cases, the Intellisense magically disappears at random.

The only solution I've found, is that if the reference to the assembly is removed, and then added again, I buy myself about another 2 minutes of full Intellisense before it goes again! Not an ideal situation, since the classes in the assembly are very complex, and have large argument lists. Coding them unaided is a nightmare

Any help would be greatly appreciated

Thanks

Guy.
 
T

Tian Min Huang

Hello Guy,

Thanks for your post. As I understand, the problem you are faing is that
Intellisense randomly does not work. I think more information is needed
before moving forward:

Does the problem occurs to a specific referenced assembly or to all the
assemblies? Is the Intellisense still working on other items?

Generally speaking, the classview and intellisense data is stored .projdata
files which reside in the directory below. When the problem comes up, I
suggest that you can delete the .projdata files and see if it will work
around the problem then.
project directory\obj\debug\*.projdata

Have you checked this issue on other systems? Is it possible to send me a
sample project and tell me the detailed steps to reproduce the problem? I
will be glad to test on my side in order to check what was going on.

I look forward to hearing from you.

Have a nice day!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top