LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-03-2007, 09:43 PM   #1
Four
Member
 
Registered: Aug 2005
Posts: 298

Rep: Reputation: 30
video games: not enough memory?


I get not enough memory? No leaks bythe way and it just loads alot of pictures. However when run in debuging using a debugger it runs as expected. I remember there are options to say that it is expected to use alot of memory when run or something like that. How do I do that? Maby I'm wrong?

This game I made is origonally for linux however I made a windows version. I wondered why it doesn't work unless I use a debuger untill I ran the windows version with wine on linux, and wine gave "not enough memory" while it was loading the bmp images. And it explains a weird pointer problems on windows however no problem when run in some debuger.

On windows I use MS Visual C++ 6.0 and on linux g++. Linux version seems more stable and all I changed on the windows version is getting time.

Also it appears c++ "new" doesn't return 0 on error?

The game uses opengl, glut
2players
"tanks" blow each other up in 3d world

Last edited by Four; 02-03-2007 at 09:45 PM.
 
Old 02-04-2007, 01:40 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
You should be able to allocate as much as your user permissions allow. Usually it means more than your application should ever need. Have you checked how big areas you're trying to allocate?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Video Games Hero rvijay General 2 01-29-2006 06:48 PM
Gory Video Games DanTaylor General 21 01-26-2006 11:09 AM
See video games are healthy..... stabile007 General 2 05-23-2005 04:12 PM
Video games Squall General 44 02-22-2004 10:12 PM
VMWARE video drivers and games MasterKin8T Linux - Software 4 09-26-2003 09:04 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration