I am developping an HTML5 version of an old project.
The application is like a slideshow of slides, which contains panoramas.
I am using Phonegap 2.2.0 to package the app on iPad 2.
The slideshow engine is deck.js
Actually, at each slide containing a panorama, i created in JS a new panorama viewer using this sample code:
var viewer = createPanoViewer({swf: 'javascript/libs/krpano/pano.swf', target: settings.target, width: settings.width, height: settings.height});
viewer.addVariable('xml', data.xml);
viewer.addParam('wmode', settings.wmode);
viewer.addVariable('startscene', settings.startscene);
viewer.useHTML5(settings.useHTML5);
viewer.embed();
There can have slide with just text & image between two panoramas.
Trying multiple times the app on my iPad, the app crash after watching 3 or 5 panoramas.
I have tried to completely destroy JS reference with this code:
But the problem doesn't go away.
So, Klaus, did i need to have only one panarama viewer in a div externally placed from the slideshow, and but it on top for one panorama, and loading the nwe pano with a new scene ?
Can you think this will correc the memory issue ?
Thanks by advance
Regards