On Tue, Sep 06, 2011 at 10:41:27AM +0100, Andrew Ross wrote:
> > Not calling lt_dlexit at all seems wrong. After all one should tidy up. 
> > If marking drivers as resident works then maybe we should do this for all
> > cases? What I have not yet tested is what happens if you call plend 
> > the subsquently call plinit again (for example using an interactive 
> > driver like octave). I need to check this before we decide on a solution. 
> 
> I've tried it with my patched Debian version (qt.so marked as resident,
> but still calling lt_dlexit() ) and it seems that repeated plinit / plend
> calls using the qt driver are ok, at least with octave. From this I 
> think that marking all drivers as resident is unlikely to have serious
> side effects. 

I've gone ahead and commited the change to mark all drivers as resident. 

I've tested with octave and this finally cures the long standing crash
with the cairo driver when you repeatedly call plinit / do some plot / plend.
The problem in this case was different (reinitialising the library caused a 
crash), but by not unloading the library we get round the problem.

Based on this it seems a sensible thing to do, but please test to make sure
it doesn't break anything on other systems (particularly Windows) and other
drivers.

Andrew

------------------------------------------------------------------------------
Using storage to extend the benefits of virtualization and iSCSI
Virtualization increases hardware utilization and delivers a new level of
agility. Learn what those decisions are and how to modernize your storage 
and backup environments for virtualization.
http://www.accelacomm.com/jaw/sfnl/114/51434361/
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to