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
 Locking machine
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

eco
Tomato Guru

102 Posts

Posted - Nov 16 2005 :  12:13:15 PM  Show Profile
to try an engine, I need a class width 1000 put and get methods, and like i'm lazy, i decided to use macros to do that, here are my macros :

#define FIELD_N( n ) \ virtual HRESULT STDMETHODCALLTYPE get##n( VARIANT* pVal ) { return mycode(); } \ virtual HRESULT STDMETHODCALLTYPE put##n( VARIANT Val ) { return mycode(); }

#define FIELD_10N( n ) \ FIELD_N( n##0 ) FIELD_N( n##1 ) FIELD_N( n##2 ) FIELD_N( n##3 ) FIELD_N( n##4 ) FIELD_N( n##5 ) FIELD_N( n##6 ) FIELD_N( n##7 ) FIELD_N( n##8 ) FIELD_N( n##9 )

#define FIELD_100N( n ) \ FIELD_10N( n##0 ) \ FIELD_10N( n##1 ) \ FIELD_10N( n##2 ) \ FIELD_10N( n##3 ) \ FIELD_10N( n##4 ) \ FIELD_10N( n##5 ) \ FIELD_10N( n##6 ) \ FIELD_10N( n##7 ) \ FIELD_10N( n##8 ) \ FIELD_10N( n##9 )

so when i use my macro like that :

class xxx
{
FIELD_100N( 1 )
FIELD_100N( 2 )
FIELD_100N( 3 )
FIELD_100N( 4 )
FIELD_100N( 5 )
FIELD_100N( 6 )
FIELD_100N( 7 )
FIELD_100N( 8 )
FIELD_100N( 9 )
FIELD_100N( 10 )
}

my machine is locked for a while (a good one) if i put my cursor on every line inside the class definition.
(i get a biprocessor)

i can understand why, but can't you imagine a code in the source to disable VAssist parsing

like that :

//{{VAExclude
... something that is hard to parse
//}}VAExlude


feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Nov 16 2005 :  5:33:36 PM  Show Profile
odd. i have just copied and pasted these macros and this class into a C++ header file here, using VS 2003 with VA 1432.

there is a slight delay and the CPU goes to 100% moving the caret through the class, but the delay is no more than 3 or 4 seconds. nothing is locking up at all for me.

i am using a 3gig AMD machine with 1 gig of ram, so it is not incredibly powerful.

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000