Reduce unnecessary QtCore DLL loads during Symbian app thread creation
authormread <qt-info@nokia.com>
Wed, 30 Nov 2011 13:18:11 +0000 (13:18 +0000)
committermread <qt-info@nokia.com>
Wed, 30 Nov 2011 13:42:27 +0000 (13:42 +0000)
commit04ae67db5330c379ab05e91132dd28c517e280c6
treedd981e4150f14cec496a794ceb376dad714a7b43
parentf86ca84e783c34e701f3742902161cb365e6e940
Reduce unnecessary QtCore DLL loads during Symbian app thread creation

The Symbain fast allocator integration in Qt 4.7 loads QtCore.DLL to
check availablility. This load has been causing a crash in the Nokia
Store app when a different version of QtCore 4.7 is installed. The new
DLL is loaded and it's static data tries to initialise before the
allocator is set up.

This change stores the allocator setup function so that extra DLL loads
are not required. Now the same allocator setup function is used for the
lifetime of the app.

Reviewed-by: Shane Kearns
src/s60main/newallocator_hook.cpp