Memory problem/question [SOLVED]
Posted: 2008-04-22T15:08:51-07:00
Hi all,
I was wondering if someone could give me some advice on the segmentation fault I get from this piece of code:
int main(void)
{
MagickWandGenesis();
int var[2100000];
}
I think it is a memory problem because I dont get the error if I use "int var[2000000]". Anyway, it looks like 2000000 integer entries shouldnt take up much memory. How can I reduce the memory used by MagickWandGenesis (or better MagickCoreGenesis) and still being able to manipulate average size pictures?
Thank you.
Efo
I was wondering if someone could give me some advice on the segmentation fault I get from this piece of code:
int main(void)
{
MagickWandGenesis();
int var[2100000];
}
I think it is a memory problem because I dont get the error if I use "int var[2000000]". Anyway, it looks like 2000000 integer entries shouldnt take up much memory. How can I reduce the memory used by MagickWandGenesis (or better MagickCoreGenesis) and still being able to manipulate average size pictures?
Thank you.
Efo