Author |
Topic |
|
xxhxiang
New Member
2 Posts |
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? |
|
feline
Whole Tomato Software
United Kingdom
19021 Posts |
|
xxhxiang
New Member
2 Posts |
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 |
|
|
bugfix
Tomato Guru
Germany
324 Posts |
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! |
http://www.mf-sd.de |
|
|
feline
Whole Tomato Software
United Kingdom
19021 Posts |
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* |
zen is the art of being at one with the two'ness |
|
|
|
Topic |
|