C++ Questions and Answers

Solve problems and approach solutions. Just ask and lurkers wi...
Oct 23, 2018 16:51
oh thanks
Oct 23, 2018 16:47
Oh well then what would be the shortest way to store it in source?
Oct 23, 2018 16:32
Hello everyone. Can I store pure binary data in raw strings?
 

Lounge<C++>

Today we're daydreaming about C++26 reflection
Oct 13, 2018 12:50
well it's only used locally to compress some data so I guess that's ok like that
Oct 13, 2018 12:27
oh thanks
Oct 13, 2018 12:13
Hello everyone! If I have a struct like "struct a{int a :4; int b :4;} is it putting them like (a <<4) | (b & 0xF) or the way around into memory?
Apr 29, 2017 19:12
hello everyone
 

SQL

Got a SQL question? Any SQL flavor here, just ask. Indicate yo...
Apr 28, 2017 18:21
Why can't I use DELETE with IF EXISTS?
Apr 28, 2017 18:21
hello everyone
 

Android

Don't say hi. Don't ask questions. Don't have fun. Don't do an...
Mar 8, 2017 19:42
that's me when I saw that error
Mar 8, 2017 19:42
(╯°□°)╯︵ ┻━┻
Mar 8, 2017 19:26
have you tried restarting it?
Mar 8, 2017 19:26
What...
Mar 8, 2017 19:26
but other sites work right?
Mar 8, 2017 19:14
that's really strange
Mar 8, 2017 19:12
yeah
Mar 8, 2017 19:08
yup
Mar 8, 2017 19:07
amazon works for me
Mar 8, 2017 19:06
That's the funny part. I've never had this crash on windows. Also it creates the first 12 or so chunks then crashes. The same code that made the first 12.
Mar 8, 2017 18:48
intermittent?
Mar 8, 2017 18:42
Yeah that's true.
Mar 8, 2017 18:41
Also a fun fact is that it runs for a few times then crashes...
Mar 8, 2017 18:41
But java is java
Mar 8, 2017 18:40
Libgdx is multiplatform so I'm kinda only using linux because it takes ages to compile for android
Mar 8, 2017 18:40
Linux, and Android
Mar 8, 2017 18:39
But that doesn't explain the exception
Mar 8, 2017 18:39
Oh sorry didn't see that
Mar 8, 2017 18:38
Also as I walk on the stacktrace it should have been 51...
Mar 8, 2017 18:38
I knew that but this doesn't make sense because 64 is a lot smaller
Mar 8, 2017 18:38
Hmm interesting
Mar 8, 2017 18:36
Hmm that's the one I've seen too.
Mar 8, 2017 18:33
And TILES_PER_CHUNK is 64*64
Mar 8, 2017 18:33
this.drawable = new SpriteCache(Config.TILES_PER_CHUNK, false);
Mar 8, 2017 18:32
Mar 8, 2017 18:31
Sorry
Mar 8, 2017 18:30
Mar 8, 2017 18:30
Yeah a sec
Mar 8, 2017 18:29
@Code the error is "java.lang.IllegalArgumentException: initialCapacity is too large: 64"
Mar 8, 2017 18:28
Hmm the same code runs on windows
Mar 8, 2017 18:28
@Code the stacktrace says that that's the line throwing it
Mar 8, 2017 18:26
@Ahmed if (initialCapacity > 1 << 30) throw new IllegalArgumentException("initialCapacity is too large: " + initialCapacity); is the code and it's in libgdx
Mar 8, 2017 18:25
@Ahmad but the code is throwing an exception that it's larger
Mar 8, 2017 18:24
Is there anyone who can explain why 64 > 1<<30?
Mar 8, 2017 18:21
Is there anyone who knows libgdx?
Mar 8, 2017 18:14
Hello everyone.
Mar 8, 2017 18:14
I have read and understood the rules.
 

 Android Era with Kotlin and Java

Important: Read dos and don'ts here: androidera.github.io . Ma...
Mar 8, 2017 18:10
is here someone who knows libgdx?
Mar 8, 2017 18:10
hello everyone
Jul 23, 2016 15:32
so old java