# eglCreateContext() EGL\_BAD\_ALLOC problem

**URL:** <https://forums.imgtec.com/t/eglcreatecontext-egl-bad-alloc-problem/96>\
**Category:** PowerVR Insider\
**Created:** [July 3, 2008, 9:19am UTC](https://forums.imgtec.com/t/eglcreatecontext-egl-bad-alloc-problem/96 "2008-07-03T09:19:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![saby](https://avatars.discourse-cdn.com/v4/letter/s/f1d935/32.png) [@saby](https://forums.imgtec.com/u/saby)\
**Post date:** [July 3, 2008, 9:19am UTC](https://forums.imgtec.com/t/eglcreatecontext-egl-bad-alloc-problem/96/1 "2008-07-03T09:19:32Z")

</div>

I use POWERVR SDK OpenGL ES 1.0.   
During the initialization eglCreateContext() problem.
  

&nbsp;
  

return value is EGL\_BAD\_ALLOC.
  

&nbsp;
  

In some cases, this value does this occur?

---

<div class="post-metadata">

**Author:** ![xmas](https://avatars.discourse-cdn.com/v4/letter/x/958977/32.png) [@xmas](https://forums.imgtec.com/u/xmas)\
**Post date:** [July 7, 2008, 4:28pm UTC](https://forums.imgtec.com/t/eglcreatecontext-egl-bad-alloc-problem/96/2 "2008-07-07T16:28:47Z")

</div>

This indicates that the initialisation of the host OpenGL context fails. Could you please run an example in a debugger and check the debug output? What hardware are you using?
