CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Search found 5 matches
CCS Forum Index
Author Message
  Topic: malloc()
abs

Replies: 5
Views: 12908

PostForum: General CCS C Discussion   Posted: Thu May 20, 2004 12:25 pm   Subject: malloc()
Do you have the USE DYNAMIC_MEMORY directive?

I believe you need this directive to instruct the compiler to create the __DYNAMIC_HEAD object.

I placed the following directive at the top of my pr ...
  Topic: malloc
abs

Replies: 18
Views: 36253

PostForum: General CCS C Discussion   Posted: Thu May 20, 2004 12:17 pm   Subject: Re: malloc
The following code doesn't allocate indipendents parts of memory for the
strings but overwrites totally or partially the locations of memory, loosing
the real content of the strings.
It's a bug o ...
  Topic: Malloc not working in larger program
abs

Replies: 8
Views: 18766

PostForum: General CCS C Discussion   Posted: Wed May 19, 2004 12:06 pm   Subject: Malloc not working in larger program
I found that my change to ptr and using saveing node->next made no effect.

I also plased a '#use *=16' directive at the top of my program, but I don't know what that does ??? Yet, it may have he ...
  Topic: Malloc not working in larger program
abs

Replies: 8
Views: 18766

PostForum: General CCS C Discussion   Posted: Wed May 19, 2004 10:08 am   Subject: dynamic_memory malloc free traverse bug error infinite loop
Originally, I had problems compiling a program that used stdlibm.h and 'malloc()' and 'free()'.

The following use of pragma (found in other postings) allowed the compiler to finish.

Then mallo ...
  Topic: Malloc not working in larger program
abs

Replies: 8
Views: 18766

PostForum: General CCS C Discussion   Posted: Wed May 19, 2004 9:56 am   Subject: malloc free bug hang traverse loop
I noticed that 'free()' breaks after a few (on the third) freeing. The free routine calls 'traverse()'. Traverse walks to the end of the freed memory and spins on the last node.

I will investigate ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group