DELPHI AREA
MESSAGE BOARD
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   FavoritesFavorites   Watched TopicsWatched Topics     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TSimpleGraph Bug???

 
Post new topic   Reply to topic   printer-friendly view    DELPHI AREA Forum Index -> DELPHI AREA's Products
View previous topic :: View next topic  
Author Message
Neftalí
Member


Joined: 18 Apr 2005
Posts: 3
Location: Spain

PostPosted: 18/04/05 15:00    Post subject: TSimpleGraph Bug??? Reply with quote

Hello.

At First excuse-me for my bad English... Crying or Very sad

I'am working in a project using the TSimpleGraph component. The thematic one of the project is "Yard Plannig"; It's similar to a parking of cars, but with containers.
I'am creating aprox. 1200 objects in the simpleGraph. All it's working OK, but reviewing the application i think that in the Destroy procedure of the object TSimpleGraph the created objects are not being freed.

Thare are a simple test to make.

I Have created a Destroy Method in TRectangleNode like:

destructor Destroy; override;

and its corresponding implementation.

When the Destroy procedure of the SimpleGraph object is Executed, the code of TRectangleNode.destroy never is Execute and the object is not freed.

To ensure this i have executed the project using AQTime (Profiler) and it's confirmed this.

_________________
___________________
Neftalí
Back to top
View user's profile Send private message
Stefan
Moderator


Joined: 27 Sep 2004
Posts: 100
Location: Belgium, Antwerp

PostPosted: 19/04/05 11:57    Post subject: Reply with quote

Hi,

Thank you for reporting this.
For now I suggest you update the component yourself so that it frees the objects. We will fix this in the next release, which will be on SourceForge under the extgraph project: http://sourceforge.net/projects/extgraph

Stefan
Back to top
View user's profile Send private message Send e-mail
Neftalí
Member


Joined: 18 Apr 2005
Posts: 3
Location: Spain

PostPosted: 19/04/05 14:33    Post subject: Reply with quote

I already have made the changes to correct that error in my code. In the Destroy routine of the component simply i have cross the list of created objects and to release them one by one (for instruction); This change recover the lost memory.

Thanks.

_________________
___________________
Neftalí
Back to top
View user's profile Send private message
Kambiz
Administrator


Joined: 07 Mar 2003
Posts: 1044
Location: Tehran, Iran

PostPosted: 21/04/05 18:33    Post subject: Reply with quote

Neftalí:

Thanks for reporting the memory leak.
I fixed the memory leak in SimpleGraph.


Stefan:

Just for your information, I modified the following procedures to fix thr bug.

Code:
TSimpleGraph.ObjectListChange;
TSimpleGraph.SelectionListChange;
TGraphLink.VerifyLinkedObjects;
TMemoryHandleStream.Destroy;

Thanks everybody and regards

_________________
Kambiz
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    DELPHI AREA Forum Index -> DELPHI AREA's Products All times are GMT
Page 1 of 1

Add to favorites

 
Jump to:  
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 vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group