# OpenGL program(juce 2.0) crash in windows xp

**URL:** <https://forum.juce.com/t/opengl-program-juce-2-0-crash-in-windows-xp/9234>\
**Category:** General JUCE discussion\
**Created:** [September 13, 2012, 10:13am UTC](https://forum.juce.com/t/opengl-program-juce-2-0-crash-in-windows-xp/9234 "2012-09-13T10:13:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![boltdog](https://avatars.discourse-cdn.com/v4/letter/b/f475e1/32.png) [@boltdog](https://forum.juce.com/u/boltdog)\
**Post date:** [September 13, 2012, 10:13am UTC](https://forum.juce.com/t/opengl-program-juce-2-0-crash-in-windows-xp/9234/1 "2012-09-13T10:13:57Z")

</div>

I run JuceDemo(Juce 2.0) in windows xp, when I select the menu “demo/OpenGL”,  
the program crashes.

I aslo run JuceDemo(Juce 1.5.3) in windows xp, when I select the menu “demo/OpenGL”, it’s normal.

It’s very stange.  
Is there someone encounter the same problem? Thx.

---

<div class="post-metadata">

**Author:** ![Bruce\_Wheaton](https://avatars.discourse-cdn.com/v4/letter/b/71c47a/32.png) [@Bruce\_Wheaton](https://forum.juce.com/u/Bruce_Wheaton)\
**Post date:** [September 13, 2012, 7:46pm UTC](https://forum.juce.com/t/opengl-program-juce-2-0-crash-in-windows-xp/9234/2 "2012-09-13T19:46:41Z")

</div>

Huge number of changes between those two versions.

Why does it crash? What does your debugger say? Or even your OS?

Bruce

---

<div class="post-metadata">

**Author:** ![boltdog](https://avatars.discourse-cdn.com/v4/letter/b/f475e1/32.png) [@boltdog](https://forum.juce.com/u/boltdog)\
**Post date:** [September 14, 2012, 1:36am UTC](https://forum.juce.com/t/opengl-program-juce-2-0-crash-in-windows-xp/9234/3 "2012-09-14T01:36:25Z")

</div>

I found,juce\_OpenGLContext.cpp line 206,access violation,something is null.

```auto
context.extensions.glActiveTexture (GL_TEXTURE0);
```

I quote this block of code and recompile my program,it’ ok.

> [@](#):
>
> ```
> context.extensions.glActiveTexture (GL_TEXTURE0);
> 
> ```

---

<div class="post-metadata">

**Author:** ![Bruce\_Wheaton](https://avatars.discourse-cdn.com/v4/letter/b/71c47a/32.png) [@Bruce\_Wheaton](https://forum.juce.com/u/Bruce_Wheaton)\
**Post date:** [September 14, 2012, 2:58am UTC](https://forum.juce.com/t/opengl-program-juce-2-0-crash-in-windows-xp/9234/4 "2012-09-14T02:58:29Z")

</div>

Can you see which bit is null? It seems odd that GL\_TEXTURE0 would be null, but possible if you have an old OpenGL SDK. But I’d think ‘0’ would be valid-ish value for that.

So is glActiveTexture null?

Bruce
