[Insight-users] puzzle about the compiler heap limit of msvc
Chen Fu
novalet@yahoo.com.cn
Wed, 2 Apr 2003 21:51:08 +0800 (CST)
Hi!
I use msvc7 to compile my little application of itk.
I package itk class into a flowblock.
====================================================
#ifndef FLOWBLOCK_H
#define FLOWBLOCK_H
#include "itkImage.h"
typedef unsigned char PixelType;
typedef itk::Image< PixelType, 2 > ImageType;
class FlowBlock
{
public:
void SetInput(ImageType* input);
ImageType* GetOutput();
};
#endif
====================================================
and wrap some itk class in this block, for example
====================================================
#ifndef SOURCE_H
#define SOURCE_H
#include "itkImageFileReader.h"
class Source: public FlowBlock
{
public:
typedef itk::ImageFileReader< ImageType >
ReaderType;
ReaderType::Pointer reader;
Source()
{
reader = ReaderType::New();
}
void SetInput(ImageType* input)
{
}
ImageType * GetOutput()
{
return reader->GetOutput();
}
};
#endif
=====================================================
besides the source, there are also sink(writer) and
various filter.
But if i include several such header file(.h), the
msvc7 report c1076 error:
compiler limit : internal heap limit reached (msvc)
I turn the /zm to 1000 or 2000, but still has this
error.
I don't know what to do now. Any one can lend me a hand?
=====
Remote Scensing Satellite Ground Station
Chinese Academy of Science
_________________________________________________________
Do You Yahoo!?
雅虎通网络KTV, 随时随地免费卡拉OK~~
http://rd.yahoo.com/mail_cn/tag/?http://cn.messenger.yahoo.com//chat/index.html