Memory problem in version 1.3.1?
2 posters
Memory problem in version 1.3.1?
Hi everybody,
I just have a strange problem at my small application. I started with the tutorial 6_2 to change the code:
1) I removed the not necessary code
2) Add a specific move function
Everything seams to work fine. Afterwards I duplicated an selected object. I used exactly the same code as sio2interactive wrote in the forum.
The following occurs:
The first frame is okay, but at the second one the world moves about 1cm to the left.
Afterwards I changed my duplicate code as following:
Does anyone have an idea? Even if I add one variable at the beginning of the templateRender method (e.g int test;) the program does not work any more!
In my opinion there has to be a memory problem somewhere in the library!
Thanks a lot for your help.
ludi
I just have a strange problem at my small application. I started with the tutorial 6_2 to change the code:
1) I removed the not necessary code
2) Add a specific move function
Everything seams to work fine. Afterwards I duplicated an selected object. I used exactly the same code as sio2interactive wrote in the forum.
The following occurs:
The first frame is okay, but at the second one the world moves about 1cm to the left.
Afterwards I changed my duplicate code as following:
- Code:
bool DUPLICATE_OBJ = false;
if(DUPLICATE_OBJ) {
NSLog(@"object DUPLICATE");
SIO2object *_new=NULL;
}
Does anyone have an idea? Even if I add one variable at the beginning of the templateRender method (e.g int test;) the program does not work any more!
In my opinion there has to be a memory problem somewhere in the library!
Thanks a lot for your help.
ludi
ludi- Posts : 14
Join date : 2008-10-19
Re: Memory problem in version 1.3.1?
Have you try to debug with Enable Malloc Guard and Instruments (Leaks)???
Re: Memory problem in version 1.3.1?
sio2interactive wrote:Have you try to debug with Enable Malloc Guard and Instruments (Leaks)???
I just tried it with Instruments. There is one peak at the leaks row on exactly the same place as you have in Tutorial 6_1.
Afterwards I enabled Malloc Guard and start the debugger again.
Now the problem appears different. The first frame is still okay, but the second frame is empty!
If I define the variables global (e.g: SIO2object *_new=NULL;), the problem does not occur.
ludi- Posts : 14
Join date : 2008-10-19
Similar topics
» leak of memory
» sio2PhysicInit memory consumption
» Any significant changes to memory handling in 1.3.3?
» sio2Free will make the memory leak????
» Particles System with a little memory leak...
» sio2PhysicInit memory consumption
» Any significant changes to memory handling in 1.3.3?
» sio2Free will make the memory leak????
» Particles System with a little memory leak...
Permissions in this forum:
You cannot reply to topics in this forum