forum.alglib.net

ALGLIB forum
It is currently Wed Nov 27, 2024 12:43 am

All times are UTC


Forum rules


1. This forum can be used for discussion of both ALGLIB-related and general numerical analysis questions
2. This forum is English-only - postings in other languages will be removed.



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: testing ALGLIB
PostPosted: Fri Jun 21, 2013 8:50 am 
Offline

Joined: Fri Jun 21, 2013 8:44 am
Posts: 1
Hello, all
I downloaded ALGLIB C++, built it with the AE_USE_ALLOC_COUNTER definition, and ran the tests. test_c runs just fine, but test_i gives me a
FAILURE: alloc_counter is non-zero on end!
at the end. What does that mean and how do I fix it?

Cheers

Ilektra


Top
 Profile  
 
 Post subject: Re: testing ALGLIB
PostPosted: Mon Jun 24, 2013 11:51 am 
Offline
Site Admin

Joined: Fri May 07, 2010 7:06 am
Posts: 927
Thanks for the report! It is confirmed as bug - memory leak in one of the internal ALGLIB objects. It is present only in one of the new functions, introduced in 3.7.0, and this bug will be fixed in upcoming 3.8.0 (expected in less than month).

Meanwhile you can fix it as follows:
1. find ae_shared_pool_internalclear() function

2. find following lines:
> /* destroy seed */
> if( dst->seed_object!=NULL )
> dst->destroy((void*)dst->seed_object);
> dst->seed_object = NULL;

3. replace them by:
> /* destroy seed */
> if( dst->seed_object!=NULL )
> {
> dst->destroy((void*)dst->seed_object);
> ae_free((void*)dst->seed_object);
> dst->seed_object = NULL;
> }


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group