Page 1 of 1

closeFile doesn't work

Posted: 09 Sep 2009, 18:01
by yochima
Hi,

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")


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 :

Code: Select all

 File.Copy(fileName, "C:\jobe\temp\toto.plt")
what method do I have to use?
isn't the CloseFile() method ??

Thanks

Re: closeFile doesn't work

Posted: 01 Oct 2009, 13:07
by support
Hello.
The exception you receive doesn't depend on CloseFile() method. You triying to create toto.plt file that is already exists.

Alexander.