This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

problem with calloc()

Hi.

I'm having a small problem, when I use calloc() in my application the application wont start up, it never reach main.

Are there some setting that I need to enable, or..

Hope somebody can help me, thanks
Soeren Panduro

Parents
  • a couple of solutions:
    * you might need to make a call to a library function to allocate the pool for dynamic memory allocation.
    * does your startup file indicate the presence of a heap?
    * don't use dynamic memory allocation all together! (the best choice, probably)

Reply
  • a couple of solutions:
    * you might need to make a call to a library function to allocate the pool for dynamic memory allocation.
    * does your startup file indicate the presence of a heap?
    * don't use dynamic memory allocation all together! (the best choice, probably)

Children