Page 1 of 1

Unloading DWG file

Posted: 25 Nov 2009, 16:57
by Softdata
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š

Re: Unloading DWG file

Posted: 27 Nov 2009, 18:42
by support
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.