Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Xubuntu, console app, can't make large arrays

Author
Message
Cybermind
Valued Member
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: Denmark
Posted: 4th Jun 2018 14:38 Edited at: 5th Jun 2018 09:53
Hello ( = I am using Netbeans 8.2 on a Xubuntu 16.04 machine. It seems like I have run into a problem with my arrays. I create a few of them but it looks like I can't allocate enough memory for them. If I put all of them in app::begin I get a malloc memory corruption exception. If I split them between app::begin and app::loop I can create all of them without the exception, if I move all of them to app::loop I get the malloc memory corruption again. Is there a limit as to how much memory I can allocate in each of these classes? Oh, and I use "new int[variable]" for my arrays.

EDIT: Nevermind the fool here... A comma is not the same as a multiplier asterisk... (new int[variable,variable] VS. new int[variable*variable])
13/0

Login to post a reply

Server time is: 2024-04-19 22:41:41
Your offset time is: 2024-04-19 22:41:41