Jump to content

  • Log In with Google      Sign In   
  • Create Account


memory leak


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 FGFS   Members   -  Reputation: 190

Like
0Likes
Like

Posted 30 March 2014 - 03:04 AM

Hi

after integrating:

http://nehe.gamedev.net/tutorial/sphere_mapping_quadrics_in_opengl/15005/

in my x-plane plugin, it eats memory.

Any ideas on how to locate and eliminate the problem? What could it be?

Many thanks

Michael

 

 



Sponsor:

#2 ProtectedMode   Members   -  Reputation: 1106

Like
2Likes
Like

Posted 30 March 2014 - 04:32 AM

You're question is a bit vague. What did you mean with integrating? Did you copy the code or did you write your own code based on it? Have you already tried tools like this? And to be certain, what programming language are you using?



#3 FGFS   Members   -  Reputation: 190

Like
0Likes
Like

Posted 30 March 2014 - 05:55 AM

PS: Solved, it needed a GLuint cast.

 

 

 

Thanks. It seems to boil down that I need to add glDeleteTextures:

XPLMBindTexture2d(gTexture[8], 0);
...
glDeleteTextures(1, &gTexture[8]);

I get:
Invalid arguments ' Candidates are: void glDeleteTextures(int, const unsigned int *)
gTexture is defined as:
XPLMTextureID gTexture[MAX_TEXTURES];
 

Any ideas? Thanks again


Edited by FGFS, 30 March 2014 - 07:22 AM.





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS