Hello,
I found that in one particular file in the project deleting, inserting and sometimes even editing will have delays of 20 seconds between every keystroke. I did some investigation and this is the results.
First I removed all includes; restarted IDE a few times in between and cleared the cache etc. just to make sure G?? no change.
Then I noticed that at the end of the file inserting a line was as fast as normal so I started locking for the line where this changed and found it eventually:
catch(int nError)
{
TRACE("*** Catched RSN Error %d\\n", nError);
}
catch(CException* e)
{
DELETE_EXCEPTION(e); // <-----------------------
CString sEvent;
sEvent.Format("Load Failed on \\"%s\\"", sFilename);
CQueue::LogEvent(sEvent);
}
Before this line everything is painfully slow, after this line things are as normal.
Now the G?goodG? thing is; removing this line helps - Sort ofG?
The problem then just moved 4 lines up to where the TRACE is.
Now I got crafty; I swapped the catch(intG? ) section with the catch(CExceptionG?) section and the problem was gone. So I thought. Eventually I found the slow spot again 1200 lines up.
Position = m_lGpi.GetHeadPosition();
while(Position) // <-------------
{
CGpi *pGpi = m_lGpi.GetNext(Position);
I remarked this line of code and sure enough the slow spot moved up another 1000 lines or so.
CoCreateGuid(&m_guidConfiguration);
m_mNamedPictures.InitHashTable(101); // <-------------
CTimeline::Start(this);
Now - here things get interesting; this line actually had a breakpoint set on it and when the breakpoint is removed the problem disappears. Now I did the litmus test and uninstalled VAX and tried it G?? no problems what so ever. Installed VAX again and after a while (after the database had been built) the problem reemerges.
Any ideas?
Cu,
Michael