Change initialization of typeRepository [Was: [Bug 201455] kdevelop crashes on startup on Windows]
Andreas Pakulat
apaku at gmx.de
Fri Aug 7 04:47:54 UTC 2009
On 07.08.09 04:09:24, Yaron wrote:
> https://bugs.kde.org/show_bug.cgi?id=201455
>
>
>
>
>
> --- Comment #6 from Yaron <yhirsch netvision net il> 2009-08-07 04:09:21 ---
> One reason seems to be the order of initialization of global variables:
>
> instantiationInformationRepository (line 116 in
> kdevplatform/language/duchain/instantiationinformation.cpp) calls
> typeRepositoryManager() which in turn returns a pointer to typeRepository (line
> 85 in kdevplatform/language/duchain/repositories/typrepository.cpp) which
> hasn't been initialized. Immediately after this pointer is being used in
> RepositoryManager::createRepository() but as noted, it hasn't been initialized.
Thanks Yaron for the analysis. The attached patch should fix the
initialization, however I'd like to have a comment from David wether
this could potentially break something. David?
I couldn't test wether this helps on windows, but at least it doesn't
seem to break anything on linux.
Andreas
--
Long life is in store for you.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_initialization_typeRepository.diff
Type: text/x-diff
Size: 2587 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20090807/962e4fa3/attachment.bin>
More information about the KDevelop-devel
mailing list