Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Bizzare hardlock in only one file.
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

gunvulture
Junior Member

11 Posts

Posted - May 14 2006 :  6:11:13 PM  Show Profile  Reply with Quote
When using VAX 1445, Visual Studio 2k3 will hardlock, but only in one certain file. However it will hardlock inevitably withing 10 minutes or so, often within 2 or 3 minutes. It only ever occurs when I'm editing code in one specific file, and if I disable VAX, the locks disappear. There isn't anything uber-fancy going on in the source file; it is a basic c++ file, very light template use, compiles fine. I have no idea what the deal is. I can minimize and restore VS, otherwise all I can do is rightclick->close and "End Now".

The project has many many other files, and I can edit those files with impunity.

I'm going to try and rename the file and see if that affects it. I will report back...

gunvulture
Junior Member

11 Posts

Posted - May 14 2006 :  6:18:33 PM  Show Profile  Reply with Quote
Renaming the file has no effect.
Go to Top of Page

rhummer
Tomato Guru

USA
527 Posts

Posted - May 14 2006 :  10:01:25 PM  Show Profile  Reply with Quote
Try commenting out blocks of code and see if you can isolate it to one block of code. I'm having the same issue with a file but haven't tried to isolate the problem yet.

Tools Engineer - Raven Software
VS2005 SP2/VS2008 SP1 - VAX <LATEST> - Win 7 x64

Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - May 15 2006 :  6:35:47 PM  Show Profile  Reply with Quote
is anyone able to share such a file with me? i can have a go and see if i can reproduce the problem. if you simply sit in a problem file and trigger:

VAssistX -> Tools -> Reparse Current File

does this cause the IDE to lock up? if so this would make it a lot faster and easier to trim the file down. still not fun due to all of the lockup's, but faster.

zen is the art of being at one with the two'ness
Go to Top of Page

rhummer
Tomato Guru

USA
527 Posts

Posted - May 15 2006 :  7:17:25 PM  Show Profile  Reply with Quote
feline: I'm currently trying to widdle down the file.

SOme info..its nothing too fancy.. Just some win32 windowing stuff for a Tool we use.

The lock up occurs meer seconds after opening the file so I don't have time to tell vax to reparse it.

I've gone through and commented out the meat of all the methods so they are pretty much stubs that won't compile and it still occurs..

My IDE just sits there at ~50% CPU chewing away at memory.

I'll post with more info when I have it.

Tools Engineer - Raven Software
VS2005 SP2/VS2008 SP1 - VAX <LATEST> - Win 7 x64

Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - May 15 2006 :  8:10:55 PM  Show Profile  Reply with Quote
Remove your #includes first to rule out a header file.
Go to Top of Page

rhummer
Tomato Guru

USA
527 Posts

Posted - May 15 2006 :  8:12:20 PM  Show Profile  Reply with Quote
Thats what I was thinking before I had to leave for the day. I'll check again in the morning.

Tools Engineer - Raven Software
VS2005 SP2/VS2008 SP1 - VAX <LATEST> - Win 7 x64

Go to Top of Page

rhummer
Tomato Guru

USA
527 Posts

Posted - May 16 2006 :  10:13:51 AM  Show Profile  Reply with Quote
Well I cleared out the VA X DB files so it would reparse everything on restart, and that seems to have fixed teh issue. Maybe the DB became corrupt somehow. I was able to toallly isolate the issue but I opened a header that was included in the file and it forced the lock up too.. Which their was nothing special. It has three classes in the file. One class has the two others as friends, and the first class as the 2nd class as a friend. Possibly it was getting confused with friend classes?

ie:


class A
{
    friend class B;
    ...
    ...
};

class B
{
    friend class C;
    friend class A;
    ...
    ...
    list<A*> aList;
};

class C
{
   ...
   ...
   list<B*> classBList
}

Tools Engineer - Raven Software
VS2005 SP2/VS2008 SP1 - VAX <LATEST> - Win 7 x64


Edited by - rhummer on May 16 2006 10:16:04 AM
Go to Top of Page

gunvulture
Junior Member

11 Posts

Posted - May 16 2006 :  5:53:08 PM  Show Profile  Reply with Quote
When I get home I can check out the things you suggest. If necessary I can send you the file, since it is a side project.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - May 16 2006 :  5:55:29 PM  Show Profile  Reply with Quote
i have some code that uses friend classes much like this example and have never had a problem with it, not that this actually proves anything.

gunvulture can you try:

VA Options -> Performance -> General -> Rebuild symbol databases
VA Options -> Performance -> General -> Clear history, cache and temporary files

and see if this helps? it sounds like this was the solution for rhummer

zen is the art of being at one with the two'ness
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - May 17 2006 :  08:31:02 AM  Show Profile  Reply with Quote
FWIW, Rebuild implies clear history, et al.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000