EmbeddedRelated.com
Forums

Run Time error:Xmem allocation failed(out of memory)...

Started by zhangaihe2001 January 26, 2005

hello,everybody,my code can be compiled successfully,but when it
appear run time error as title when debugging.has anyone meet the
question and give me some instructions?thank you all! hena

BeiJing
China




>hello,everybody,my code can be compiled successfully,but when it
>appear run time error as title when debugging.has anyone meet the
>question and give me some instructions?thank you all!

It means you ran out of xmem. Can't tell you much more without knowing more
about your program.

Just a wild guess: Did you perhaps allocate xmem (with xalloc()) in a part
of the program that is called more than once? You should either only
allocate the xmem during initialization, or allocate *and free* it every
time you need it. If you allocate xmem every time you want to use it, but
never free it, you'll run out of memory at some point.

Maurits.
HiTECHnologies Industrial Automation B.V.
Industrieweg 30, 3401 MA, IJsselstein, The Netherlands
P.O. box 242, 3400 AE, IJsselstein, The Netherlands
Tel: +31 30 6875335
Fax: +31 30 6875333
E-mail: info@info...
Web: www.hitechnologies.nl

===================================================================
The information contained in this communication is confidential
and may be legally privileged. It is intended solely for the
use of the individual or entity to whom it is addressed and
others authorised to receive it. If you are not the intended
recipient you are hereby notified that any disclosure, copying,
distribution or taking any action in reliance on the contents
of this information is strictly prohibited and may be unlawful.
HiTECHnologies B.V. is neither liable for the contents, nor
for the proper, complete and timely transmission of the
information contained in this communication.
===================================================================