Can't find file in error message

Discussion in 'Mac Programming' started by Help123me, Sep 23, 2009.

  1. Help123me macrumors newbie

    Joined:
    Sep 23, 2009
    #1
    Hi,
    I'm trying to compile and execute a program written in c++, but there are some problems. I can compile it, but when I try to execute the GUI file, I get the following error:

    Last login: Wed Sep 23 10:22:55 on ttys001
    /Users/praktikant/Desktop/CancerSim/GUI ; exit;
    maggy:~ praktikant$ /Users/praktikant/Desktop/CancerSim/GUI ; exit;
    Assertion failed: (0), function aglSetIntegerHIViewRef, file aglHIView.c, line 395.
    Abort trap
    logout

    [Prozess beendet]

    Before I could compile it, I had to change the AGLDrawable functions to WindowRef, cause it is deprecated for Mac-OSX-Version 10.5 and later.
    The problem is, that I can't find he file aglHIView.c, and I really searched the whole PC with 'find'. ANd also there isn't a function called 'aglSetIntegerHIViewRef', only 'aglSetInteger'.
    I don't know, what I should do now, so it would be great, if someone can help me!

    Thanks
     
  2. rowsdower macrumors 6502

    Joined:
    Jun 2, 2009
    #2
    That is probably an assertion inside a library. You don't have aglHIView.c because you only have the compiled library, not the source. My guess is that you are giving a bad argument to a function in the library. If you use a debugger you should be able to find what call in your program causes the problem. Otherwise, it could be a bug in the library.
     
  3. Help123me thread starter macrumors newbie

    Joined:
    Sep 23, 2009
    #3
    okay, thank you, now I understand why I can't find it:rolleyes:
    I'll try to debug it, but I can't use the mac at the moment, so I will tell you later, if it worked:)
     

Share This Page