# xmem problem

**URL:** <https://forums.digi.com/t/xmem-problem/9888>\
**Category:** Rabbit\
**Created:** [May 22, 2007, 10:34am UTC](https://forums.digi.com/t/xmem-problem/9888 "2007-05-22T10:34:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lorenzo](https://avatars.discourse-cdn.com/v4/letter/l/4da419/32.png) [@lorenzo](https://forums.digi.com/u/lorenzo)\
**Post date:** [May 22, 2007, 10:34am UTC](https://forums.digi.com/t/xmem-problem/9888/1 "2007-05-22T10:34:04Z")

</div>

Hi,  
I’m using DC version 9.52 and I’ve a problem with this code:

a=xavail(NULL);  
b=xalloc(MemSize);

The problem is that a=70130 and MemSize=62015 but the compiler give me a run time error like this:  
xmem allocation failed (out of memory)

Why?

---

<div class="post-metadata">

**Author:** ![OmarGarcia](https://avatars.discourse-cdn.com/v4/letter/o/82dd89/32.png) [@OmarGarcia](https://forums.digi.com/u/OmarGarcia)\
**Post date:** [May 29, 2007, 5:25pm UTC](https://forums.digi.com/t/xmem-problem/9888/2 "2007-05-29T17:25:42Z")

</div>

What processor or core module are you using?..
