T O P I C R E V I E W |
xxhxiang |
Posted - Jan 18 2007 : 05:33:29 AM In vc++,if class A contains " include "B.h" " class B contains " include "A.h" " when open the project,the va parses A.h and B.h in a endless circulate. this makes the EMS memory increase rapidly,no endless. Does anybody know the reason? |
4 L A T E S T R E P L I E S (Newest First) |
feline |
Posted - Jan 19 2007 : 07:28:00 AM I have never been able to reproduce this problem with VA using a windows drive. What is D: on your machine? Is it a local drive, a network share, a USB drive, or something else?
Are you able to produce a test project that shows this effect that you would be able to send us? Which IDE and version of VA are you using?
bugfix I tend to agree, but hopefully the actual code uses #ifdef #endif or #pragma once to limit this problem when the code is compiled. Plus sometimes headers just get into a mess when people are not paying attention to what they are doing *sigh* |
bugfix |
Posted - Jan 19 2007 : 04:45:43 AM while vax sure shouldn't go into an endless loop, you have some bad design issue here in first place! |
xxhxiang |
Posted - Jan 18 2007 : 8:38:44 PM I have seen the FAQ. But i am using visual c++ 2005 on mirco windows. I used as follows: A header in D:\\test\\myproject\\include\\aa.h A header in D:\\test\\myproject\\include\\bb.h they include each other i open project in D:\\test\\myproject,then include "D:\\test\\myproject\\include" in my IDE,include aa.h in any header. VA parses endless between aa.h and bb.h |
feline |
Posted - Jan 18 2007 : 12:36:19 PM Have a look at this FAQ
http://docs.wholetomato.com?W316 |