"Dev S Shrestha" <dev@iastate.edu> wrote in message
news:bkfbpt$nd6$1@news.iastate.edu...[color=blue]
> I am having run time error trying to allocate a chunk of memory for am[/color]
image[color=blue]
> file statically. When I allocated dynamically with new statement, it[/color]
worked[color=blue]
> just fine. If anyone knows is there is a maximul limit of static memory[/color]
that[color=blue]
> I can assign.[/color]
Any implementation will almost always place a finite
limit upon the amount of 'automatic' or 'static'
storage available to a program. This limit is
specific to each implementation. Many offer
a certain amount of control over this via
configuration options or 'option switches'.
Consult your documentation.
This isn't really a question about the C++ language,
but about your particular implementation of it,
which is not topical here (but you probably didn't
know that :-)
Information about the nature and topic of this newsgroup
is available here:
http://www.slack.net/~shiva/welcome.txt
General information about C++ is available here:
http://www.parashift.com/c++-faq-lite/
HTH,
-Mike
-Mike