Fixing 35071 - mimetype regeneration

Ravikiran Rajagopal ravi at ee.eng.ohio-state.edu
Wed Mar 26 16:48:09 GMT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,
  I am trying to fix http://bugs.kde.org/show_bug.cgi?id=35071 without much 
success. KMimeType::Ptr's pointee does not seem to update even after the 
system configuration cache is rebuilt. How do I force it to update? Should I 
add a method to KMimeType asking it to update? Or is this a case of the 
compiler (gcc, in my case) optimizing away some access, which we can resolve 
by making some variable volatile? If not, I would strongly prefer a 
KmimeType::update() function.
  I can generate new pointers to the same mimetype (via KMimeType::mimeType) 
which point to updated data. If that is the only way, how do I delete the 
pointer? Allocating the pointer on the stack (in a function) seems to cause 
crashes when the application exits (KstaticDeleter::deleteStaticDeleters); I 
never delete the pointer variable or its pointee explicitly.

Regards,
Ravi
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+gdnJbI8Y8y0oVXcRAuobAJ9IzSOD6cIChmeroORIwDX3Hvs3uQCfR8c6
v4tDvOGxj6SYrZQcpg0hkLY=
=G9tG
-----END PGP SIGNATURE-----





More information about the kde-core-devel mailing list