Unloading DWG file

Discuss and ask questions about CAD VCL (Delphi and C++ Builder).

Moderators: SDS, support, admin

Post Reply
Softdata
Posts: 5
Joined: 10 Apr 2009, 17:11

Unloading DWG file

Post by Softdata » 25 Nov 2009, 16:57

I need to load diferent files or unload them.
I wrote this code, but I am not sure if DWG file is freed. Each time i draw some file, memory consumtion increases and since this can happen 100 times it is necessary not to have leaks. Do you have some example of how to unload loaded file.

Code: Select all

If FileExists (FileName) Then Begin
  FsgPaintBox.Picture.LoadFromFile(FileName);
  Img := TsgDXFImage(FsgPaintBox.Picture.Graphic);
  Img.BorderSize := 0;
...
End Else Begin
  FsgPaintBox.Picture.Graphic := Nil;
  Img := Nil;
End;
I would also like to know , if there is any news about ACAD2010 format. My cusomers are allredy complaining. When can we expect this?

Regards Aleš

support
Posts: 3271
Joined: 30 Mar 2005, 11:36
Contact:

Re: Unloading DWG file

Post by support » 27 Nov 2009, 18:42

Hello.
The code seems correct. DWG leacks can take plase in other part. If possible, please paste more code (or send to support@cadsofttools.com).
Implementing of the AutoCAD 2010 format is in final stage, we can give you beta-version, if neccesary.

Alexander.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Post Reply