Advertisement



Go Back   Zune Boards > Zune Discussions > Zune Games > Development Discussions

New Member?



 
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Development Discussions All developers who are coding games may stop by here for any help, suggestions, and everything development related.

Reply
 
LinkBack Thread Tools
Old 06-16-2008, 11:31 AM   #1 (permalink)
Zuner
 
yeloshu's Avatar
 
Join Date: Nov 2007
Posts: 56
Reputation: 11
Default Unknown error in my code (Memory leak?)


First off, yes, SimReality, you do see some of the code from AA in there. I'm still a noob at the whole game component thing so I've been usin your state manager and menus. I plan on completely rewriting most of the code when I actually have most of the thing running right though, so I'm not tryin to pass your work off as mine.

Also, I don't know too much about resource management so I might be a little off about my diagnosis, but here it goes.

This is a little project I've been workin on for maybe two or three weeks now. I got a lot of work down on it over the past week and things are startin to come together. Problem is, it's started actin up on me. The whole thing runs smooth until you try to end the game at which point, sometimes it will hang and you have to hard reset it. Also, sometimes, when I run it from Visual Studio after deploying it, as opposed to just running it on the Zune while it's unplugged, it will pop up with an OutOfMemory exception or something like that. There is no way I am using all 16mb on this thing, or even close so I'm thinking I'm not disposing of something correctly or I'm doing something else wrong. I can't pinpoint the source of the problem either, but I think it is probably lurking somewhere in either Dialog.cs or MapGameState.cs. It wasn't doing it before I made a few changes to those. Any help would be greatly appreciated as an unstable game isn't much better than no game at all.

Here's a rar: http://cid-168f84f535deaf6d.skydrive...20Test%201.rar

Sorry, I've found no way to consistently reproduce the error, I'm just hopin someone will spot some obvious coding issue that I don't know about.

PS:My touchpad is kinda fubar. It likes to hold down(dpad down, it's physically in the correct position) for no reason and not read my dpad clicks sometimes and for that reason, this game is run through touches rather than presses so no 30's allowed, sorry.

Edit: Wow, I feel like a genius. Yeah, it would, in fact, be a good idea to post the code too. Doh.

Edit 2: Yeah, it takes a second to deploy the first time, I've got a half a kb pic for each of the 151 buggers in there.

Edit 3: Pasteall Pages:
MapGameState.cs
Dialog.cs
Sorry, never heard of pasteall before now, but thanks for the tip.




Last edited by yeloshu : 06-16-2008 at 11:53 AM.




yeloshu is offline   Reply With Quote
Old 06-16-2008, 11:39 AM   #2 (permalink)
zB Programmer
Experienced Member
 
LedZepp's Avatar
 
Join Date: Mar 2007
Posts: 975
Reputation: 119
Default

Link, or just your code would help, lol




LedZepp is offline   Reply With Quote
Old 06-16-2008, 11:47 AM   #3 (permalink)
Jr. Member
 
SimReality's Avatar
 
Join Date: May 2008
Posts: 410
Reputation: 60
Default

How about instead of linking the whole project, why not go to a site like PasteAll.org and just put up the code you think is the problem? Then I (along with everyone else) don't have to download and sort through all sorts of stuff to try and help you.



SimReality is offline   Reply With Quote
Old 06-16-2008, 12:05 PM   #4 (permalink)
Zuner
 
yeloshu's Avatar
 
Join Date: Nov 2007
Posts: 56
Reputation: 11
Default

If it helps any, I think I encountered the problem most when changing the string passed to the instance of the Dialog class I make in the beginning of MapGameState.




yeloshu is offline   Reply With Quote
Reply


Thread Tools

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT -8. The time now is 09:04 PM.

 
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0 RC8
vB Ad Management by =RedTyger=
(C) ZuneBoards 2006-2007
Copyright © 2006 - 2008 Zune Boards | About Zune Boards | Legal | A member of the Crowdgather Forum Community