Results 1 to 4 of 4

Thread: Probelms with fopen on GLUT ES and EGL

  1. #1
    Junior Member
    Join Date
    Mar 2008

    Probelms with fopen on GLUT ES and EGL

    I try to read texture files (jpg, tga) but I can't. The problem is that on GLUT ES, fopen() on a jpg or tga file gives a null pointer whereas on a txt file, there is no problem. On EGL, the problem is :

    Data Abort: Thread=9744e000 Proc=80096f40 'texture.exe'
    AKY=00004001 PC=0001bdd0(texture.exe+0x0000bdd0) RA=00015024(texture.exe+0x00005024) BVA=1e000004 FSR=00000407
    Unhandled exception at 0x0001bdd0 in texture.exe: 0xC0000005: Access violation reading location 0x00000004.
    The thread 0x5792b1ee has exited with code 0 (0x0).

    Could anyone help me ?


  2. #2
    Senior Member
    Join Date
    May 2006
    fopen is neither related to GLUT ES or EGL (or OpenGL ES which is the topic of this subforum).

    If fopen fails and returns a NULL pointer, check whether
    - the file exists
    - you have permission to open it
    - you're using the right mode ("rb")
    - you have typos in the filename
    Georg Kolling, Imagination Technologies
    Please ask questions specific to PowerVR hardware or SDKs on the PowerVR Insider Forum |

  3. #3
    Junior Member
    Join Date
    Mar 2008
    The problem does not come from GLUT ES or anything else but only from my inanity : I did not think that my emulator can not know what is "D:\something" whereas "\\StorageCard\\" is better ...



  4. #4
    I'd like to know that too! But very good question!

Similar Threads

  1. difference between fopen and fopen_s
    By jai in forum OpenCL
    Replies: 0
    Last Post: 11-09-2012, 05:20 AM
  2. Replies: 2
    Last Post: 05-11-2007, 12:44 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Proudly hosted by Digital Ocean