closeFile doesn't work
Moderators: SDS, support, admin
closeFile doesn't work
Hi,
i'm using a temporary file : toto.plt
the first time I load it, it's working !
but, the second time I have a popup wich say that my file toto.plt is ever used.
This error is on my ligne :
what method do I have to use?
isn't the CloseFile() method ??
Thanks
Code: Select all
Try
CadViewerControl1.CloseFile()
Catch ex As Exception
End Try
File.Copy(fileName, "C:\jobe\temp\toto.plt")
CadViewerControl1.LoadFile("C:\jobe\temp\toto.plt")
the first time I load it, it's working !
but, the second time I have a popup wich say that my file toto.plt is ever used.
This error is on my ligne :
Code: Select all
File.Copy(fileName, "C:\jobe\temp\toto.plt")
isn't the CloseFile() method ??
Thanks
Re: closeFile doesn't work
Hello.
The exception you receive doesn't depend on CloseFile() method. You triying to create toto.plt file that is already exists.
Alexander.
The exception you receive doesn't depend on CloseFile() method. You triying to create toto.plt file that is already exists.
Alexander.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
Chat support on Skype: cadsofttools.support