MTL: Problem: Debug assertion failed with sparse types under Microsoft Visual Studio 2005

View: New views
1 Messages — Rating Filter:   Alert me  

MTL: Problem: Debug assertion failed with sparse types under Microsoft Visual Studio 2005

by Сергей Авдеев :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

   I try to execute an example (sparse_matrix.cc) from mtl-2.1.2-22 and get "debug assertion failed" (attached). The error occur in line 85 of the example in expression B(0,2) = 2; . Then I try to execute others example. So, there is a list of break down examples: array2D.cc , sparse_copy.cc, sparse_matrix.cc, sparse_mult.cc . All this examples contain routine with sparse storage types. Error occur deep in library (5 levels of nesting), where MTL works with STL (usually call std::vector methods). And error usually occur in STL code.
   I don't know how debug this, because I must not change STL code and I really don't know how to change MTL. Only one idea in this direction: remove working vector class with another one (may be another std::vector<> implementation or boost::vector implementation). But I have not started realize yet.
   If you are familiar with this problem or suppose anything about reasons, please, tell me.


_______________________________________________
This list is archived at http://www.osl.iu.edu/MailArchives/mtl-devel/

MTL_sparse_error.jpg (38K) Download Attachment