Unloading DWG file
Moderators: SDS, support, admin
Unloading DWG file
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.
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š
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;
Regards Aleš
Re: Unloading DWG file
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.
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
Chat support on Skype: cadsofttools.support