QJ.NET | Videos | Forums | iPhone | MMORPG | Nintendo DS | Wii | PlayStation 3 | PSP | Xbox 360 | PC | Downloads | Contact Us
Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact

QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides

Go Back   QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides > Developers Corner > PSP Development, Hacks, and Homebrew > PSP Development Forum
The above video goes away if you are a member and logged in, so log in now!

Memory leak or stupid error?

This is a discussion on Memory leak or stupid error? within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; So, earlier today I decided to do a little programming exercise to learn a bit about tables. I tried making ...

Reply
 
LinkBack Thread Tools
Old 10-22-2005, 07:56 PM   #1
Premium Member
 
Lancer's Avatar
 
Join Date: Sep 2005
Posts: 44
Trader Feedback: 0
Default Memory leak or stupid error?

So, earlier today I decided to do a little programming exercise to learn a bit about tables. I tried making a script to fill a table with random characters from another table and then print the table to the screen.

An hour or so and several errors later, my code is finally working... sorta. Each iteration is approximately half the speed of the previous one. By the 5th or 6th time through the loop, the program is running at about 1 iteration per minute.

After a while the script stops responding to input and the system has to be shut off. You have to hold down the power button for about 10 seconds to turn it off and to get it back on you have to slide the switch twice.

What the hell is going on here? o_O

Some other questions:
1. When I make a variable in a function local, the variable is "deleted" after the function ends, right?

2. If I reassign the value of a local variable in a function do I have to remind Lua Player that it's local?

Thanks in advance.
Attached Files
File Type: txt script.lua.txt‎ (5.2 KB, 10 views)
Lancer is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
error , leak , memory , stupid

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -8. The time now is 09:10 AM.



Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © 2009, QJ.NET. All Rights Reserved.
Contact Us