Re: [CrystalSpace] #929: Circular csRef/csWeakRef with explicit reset in destructor results in assert

"CrystalSpace" <[email protected]>
Newsgroups gmane.comp.graphics.crystalspace.tracker
Message-ID <[email protected]>
#929: Circular csRef/csWeakRef with explicit reset in destructor results in
assert
---------------------+------------------------------------------------------
 Reporter:  thebolt  |       Owner:  thebolt 
     Type:  defect   |      Status:  accepted
 Priority:  major    |   Milestone:          
Component:  libs     |     Version:  V1.9    
 Keywords:           |  
---------------------+------------------------------------------------------
Changes (by thebolt):

  * owner:  admin => thebolt
  * status:  new => accepted


Comment:

 Problem localized to csWeakRefArray<T>::Find. Its argument ends up being
 csWeakRef<T>, thus constructing a new weak ref to its argument. This
 argument is then copied, and destroyed, triggering a IncRef on the real
 pointer -> BOM!

-- 
Ticket URL: <http://trac.crystalspace3d.org/trac/CS/ticket/929#comment:1>
CrystalSpace <http://www.crystalspace3d.org/>
Free open-source 3D SDK.
------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of 
discussion for anyone considering optimizing the pricing and packaging model 
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.