# context sharing failed

**URL:** <https://forums.imgtec.com/t/context-sharing-failed/754>\
**Category:** PowerVR Insider\
**Created:** [July 6, 2010, 12:35pm UTC](https://forums.imgtec.com/t/context-sharing-failed/754 "2010-07-06T12:35:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![skeram](https://avatars.discourse-cdn.com/v4/letter/s/f04885/32.png) [@skeram](https://forums.imgtec.com/u/skeram)\
**Post date:** [July 6, 2010, 12:35pm UTC](https://forums.imgtec.com/t/context-sharing-failed/754/1 "2010-07-06T12:35:57Z")

</div>

Hello.  
OGLES-1.1\_WINDOWS\_PCEMULATION\_2.06.26.0649.  
  
Third paramert of function eglCreateContext is EGLContext share\_context  
It “Specifies the EGL rendering context with which to share texture objects”.  
I try to set it to value - previously created context.  
And program failed with access violation.   
  
What should i do?

---

<div class="post-metadata">

**Author:** ![JoeDavis](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.imgtec.com/joedavis/32/71_2.png) [@JoeDavis](https://forums.imgtec.com/u/JoeDavis)\
**Post date:** [July 30, 2010, 7:54am UTC](https://forums.imgtec.com/t/context-sharing-failed/754/2 "2010-07-30T07:54:27Z")

</div>

Hi Skeram,  
  
  
  
  
  
I apologise for the slow reply.  
  
  
  
  
  
The Khronos specification for this function can be found here: [http://www.khronos.org/opengles/documentation/opengles1\_0/html/eglCreateContext.html](http://www.khronos.org/opengles/documentation/opengles1_0/html/eglCreateContext.html)  
  
  
  
  
  
As described in the ‘Description’ section of this spec, the content you pass in to this function must share the same address space as the newly created context (i.e. belong to the same process). An access violation is likely to occur if you pass in a context that is not within the same address space as the context you are trying to create.  
  
  
Is this likely to be the cause of your problem, or are you getting this error when attempting to create a new context within the same process?  
  
  
  
  
  
If possible, you should try to use a single context for your whole application.
