Issue 113685 - Static BitmapEx causes crash on exit.
Summary: Static BitmapEx causes crash on exit.
Alias: None
Product: Draw
Classification: Application
Component: code (show other issues)
Version: OOo 1.0.0
Hardware: All All
: P3 Trivial (vote)
Target Milestone: 3.4.1
Assignee: groucho266
QA Contact: issues@graphics
Depends on:
Reported: 2010-08-05 14:56 UTC by groucho266
Modified: 2013-04-12 08:23 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Note You need to log in before you can comment on or make changes to this issue.
Description groucho266 2010-08-05 14:56:51 UTC
The soft shadow, introduced by issue 110498, uses indirectly a static BitmapEx
object.  This causes a crash on some systems when the office is exited.

See issue 112758 for a description of the general problem with static BitmapEx

The BitmapEx object in question is not static in itself, but is held by a static
drawinglayer::primitive2d::DiscreteShadow object.  See
ViewContactOfPageShadow::createViewIndependentPrimitive2DSequence() for its
Comment 1 groucho266 2010-08-05 15:00:24 UTC
Fixed by using the vcl::DeleteOnDeinit<> template for the DescreteShadow object.
Comment 2 Raphael Bircher 2013-04-12 00:43:06 UTC

A question, can you provide us a patch?

Greetings Raphael
Comment 3 Ariel Constenla-Haile 2013-04-12 01:53:27 UTC
(In reply to comment #2)
> Thanks,
> A question, can you provide us a patch?
> Greetings Raphael

groucho266 seems to be Andre (or may be some developer from the Sun impress team). Adding him on Cc.
Comment 4 Armin Le Grand 2013-04-12 08:23:16 UTC
ALG: vcl::DeleteOnDeinit is already used in svx/source/sdr/contact/viewcontactofsdrpage.cxx line 168, seems to be in for quite some time.