Hello Everyone:

Today i have another problem..

Using VS2008 C#, Firebird 2.0 embedded, NET provider 2.5 alfa, Win Xp SP2. 

This files are in the app root folder:

\data
\intl
fbembed.dll
FirebirdSql.Data.FirebirdClient.dll (2.5)
icudt30.dll
icuin30.dll
icuuc30.dll
msvcp71.dll
msvcr71.dll
myApp.exe


The app run fine, BUT when close the main form, the app still run in memory.
In VS debug mode it necessary to press Shift+F5 in order to stop the app. In
other words the appl never end. if yo not open the fbconnetion.. the app
close fine.. the problem is the Provider.

The same code using Firebird 2.0 embedded, NET provider 1.7  (NO PROBLEM)

            string apppath =
System.IO.Path.GetDirectoryName(Application.ExecutablePath.ToString());

            FbConnectionStringBuilder fbcs = new
FbConnectionStringBuilder();
            fbcs.ServerType = FbServerType.Embedded;
            fbcs.Database = apppath + @"\" + this.textBox1.Text;
            fbcs.Charset = "NONE";
            fbcs.ClientLibrary = apppath + @"\fbembed.dll"; //Only in 2.5
(1.7 not available) 

            using (FbConnection fb = new FbConnection(fbcs.ToString()))

            {
                try{
                    fb.Open();
                    DataTable dt = new DataTable();
                    FbCommand fbc = new FbCommand("SELECT * FROM table1",
fb);
                    FbDataAdapter fbda = new FbDataAdapter(fbc);
                    fbda.Fill(dt);
                    this.dataGrid1.DataSource = dt;
                    fb.Close();
                    
                    fbc.Dispose();
                    fbc = null;
                    fbda.Dispose();
                    fbda = null;
                   
                }
                catch (FbException fbex){
                    MessageBox.Show(fbex.Message);
                }
            }

Any idea?

thanks

-- 
View this message in context: 
http://www.nabble.com/NET-Provider-2.5-alfa-and-fb-embedded-Firebird-2.0-ERROR%21%21%21-tp16451201p16451201.html
Sent from the firebird-net-provider mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Reply via email to