On 9/27/07, Muthu Annamalai <[EMAIL PROTECTED]> wrote:
>
>  I upgraded to 2.1.0 RC2 and I am getting Object Reference error when I
> use Backup or Restore Method. I went back to the previous version and it is
> working fine.
>
> My Backup Method Code
>
> Public Function BackupDatabase(ByVal backupPath As String) As Boolean
>
>         If backupPath = String.Empty Then Return False
>

In C++ and C# this are always true. I'm not sure if with this language that
work in same way.

        Try
>             With New FbBackup
>                 'Running db connection string
>                 .ConnectionString = My.Settings.ConnectionString()
>                 'Provide a new fbk file with backup path
>                 .BackupFiles.Add(New FbBackupFile(backupPath, 2048))
>                 .Verbose = True
>                 .Options = FbBackupFlags.IgnoreLimbo
>                 .Execute()
>                 If .State = FbServiceState.Closed Then
>                     Return True
>                 End If
>             End With
>         Catch ex As Exception
>             HandleException(ex, "Backup Database")
>             Return False
>         End Try
>
> End Function
>
> Thanks!
>
> Muthu Annamalai
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Firebird-net-provider mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/firebird-net-provider
>
>


-- 
Rubén D. Guíñez G.
Software Developer
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Firebird-net-provider mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Reply via email to