From: <and...@us...> - 2011-09-07 09:52:19
|
Revision: 11914 http://plplot.svn.sourceforge.net/plplot/?rev=11914&view=rev Author: andrewross Date: 2011-09-07 09:52:13 +0000 (Wed, 07 Sep 2011) Log Message: ----------- Mark all drivers as resident, not just qt driver, since we have had issues in the past with other drivers (e.g. cairo driver) which would likely have been solved by this patch. Modified Paths: -------------- trunk/src/plcore.c Modified: trunk/src/plcore.c =================================================================== --- trunk/src/plcore.c 2011-09-06 14:02:29 UTC (rev 11913) +++ trunk/src/plcore.c 2011-09-07 09:52:13 UTC (rev 11914) @@ -3272,10 +3272,11 @@ driver->drvnam, drvspec ); driver->dlhand = lt_dlopenext( drvspec ); - - if (strcmp(driver->drvnam,"qt") == 0) { - lt_dlmakeresident(driver->dlhand); - } + + // Mark all drivers resident to prevent problems + // with atexit handlers / library reinitialisation such + // as those seen with qt and cairo drivers. + lt_dlmakeresident(driver->dlhand); } // If it still isn't loaded, then we're doomed. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |