Showing posts with label overflow. Show all posts
Showing posts with label overflow. Show all posts

Marmalade SDK Exception Multiply Overflow

| 0 comments |
I was performing some transformations (scaling) on 2D sprites like this:
CIwMat2D matrix;
rot.Scale(IW_FIXED(2));
When I ran the app I received the following exception:
IwAssert failure (GEOM, 350). Message: Multiply overflow
The avoid this exception, you must set your matrix to the Identity matrix before applying transformations on it like this:
CIwMat2D matrix;
matrix.SetIdentity();
rot.Scale(IW_FIXED(2));
Read More..

Marmalade SDK Data cache overflow allocating XXX Increase GX DataCacheSize currently XXXXX exception

| 0 comments |
You may encounter this error if your application requires caching some data but the reserved cache size by your application does not have enough space.

to solve this, just increase the reserved cache space defined in your app.icf file:

[GX]
DataCacheSize=30000

Read More..