VB.Net Text Editor stalls when I try and declare a variable

  • Thread starter Thread starter Desmond Cassidy
  • Start date Start date
Hi Urs,
Many thanks for a lengthy, qualified and most helpful reply.

You have almost hit the nail on the head I suppose.

I have a Pentium IV 768 Mb with Norton Anti Virus prot and I work from
home with a network share (VPN ADSL) of the project.

I have Norton Internet Security Professional but don;t seem to be able to
disable it for certain directories...I must be missing something in the
documentation. ??

I will now download FileMON and have a look at the activity....I havn't seen
one of these programs since the early days on RSTS/E and VMS (The best one
was a utility for RSTS/E by a comapany knowns as Software techniques of
Gloucestershire. I love these utilities.....it basically takes away a lot of
the guesswork....

I have an opportunity in the next few weeks to migrate to Winserver2003 and
VS.Net 2003 so that certainly looks like a viable option.

I'll let you know my findings....

Again, many thanks,

Desmond.
 
Desmond,
you should *never ever* work with a network share when you edit a
project with VS.NET!! This is because VS.NET will put lots of temp files
right in the project folders (namely into all the OBJ directories!)
which will of course be much slower than when you work on your local
hard drive!

Instead use VSS (Visual Source safe) or a similar versioning system to
move files back and forth from a server to your local machine.

Regards,
Urs
 
Hi Urs,
Well that is not entirely true....

The VSS Project is in a network share but I have set a 'Working folder'
locally ...every morning I do a 'Get Latest Version' so as I can get the
latest mods made by the othere developers. So everything is local when I am
editing.

Via the Filemon utility I found that when I type a carriage return after I
declare a variable
e.g. Private strJunk as String
then I monitor 2,922 Requests and these are just SUCCESS operations
(IRP_MJ_CREATE) through ALL directoies of the project. It seems to me that
this is where the problem is...isn't there a way of only having to reference
the DLL of the associated projects when I do what I just did ?? Exactly the
same thing happens when I delete the Carriage return !!

I'm a bit lost here for words or ideas for that point.

Cheers,
Desmond.
 
OK...I have worked out why the overhead exists.....Namespaces.

I have defined a Namespace fro my class module to be

Namespace X.Y.CompanyName.CompanyProject
....
....
....
End Namespace

Where X is the Solution top level, Y is the Software Project (1 of 9 as I
mentioned)...

This meant that every time I entered into a class a Return then it went
through eveything in the hierarchy that the top Namespace had under it....

I took out the Namespace declaration (as no other module references it) and
E=mc2 suddenly exposed itself...like lightning...

I have searched high and low in Google for stuff like Namespace
overhead...nothing....

Could somebody enlighten me as to what I am leaving myself open to by NOT
including my Code under a Namespace as described above ??

Cheers,

Desmond.
 
Desmond,
The VSS Project is in a network share but I have set a 'Working folder'
locally ...every morning I do a 'Get Latest Version' so as I can get the
latest mods made by the othere developers. So everything is local when I am
editing.

Ah from our previous post I thought you don't use VSS at all.
Via the Filemon utility I found that when I type a carriage return after I
declare a variable
e.g. Private strJunk as String
then I monitor 2,922 Requests and these are just SUCCESS operations
(IRP_MJ_CREATE) through ALL directoies of the project. It seems to me that
this is where the problem is...isn't there a way of only having to reference
the DLL of the associated projects when I do what I just did ?? Exactly the
same thing happens when I delete the Carriage return !!

I'm not quite sure if you presently still use VS.NET 2002? Because I saw
this very behaviour with the old version. With VS.NET 2003 the problem
went away completely.

Cheers,
Urs
 
Back
Top