Re: [Firebird-net-provider] Compiling for mono
I could get Firebird provider running on Mono, using embedded server. I did some changes to the conditional compilation definitions (#if) and an addition to resources processing. How can I get these integrated in the official code? Ernesto Cullen 2014-07-30 5:36 GMT-03:00 diskuze : > Hi, probably best idea is to use the build for Mono/Linux from > firebirdsql.org. Or you can build it yourself, there’s a configuration > with same name in project. > > > > -- > > Mgr. Jiri Cincura > > Independent IT Specialist > > > -- > Infragistics Professional > Build stunning WinForms apps today! > Reboot your WinForms applications with our WinForms controls. > Build a bridge from your legacy apps to the future. > > http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk > ___ > Firebird-net-provider mailing list > Firebird-net-provider@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/firebird-net-provider > > -- "Either write something worth reading or do something worth writing" B. Franklin -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/___ Firebird-net-provider mailing list Firebird-net-provider@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/firebird-net-provider
Re: [Firebird-net-provider] Problem reading resources on linux
As far as I understand, with embedded server you don't specify the server; just the database name, eventually with the full path. I've tested both with and without path. I've copied all files from lib directory under firebird, so the linux equivalents to icu*.dll etc are present. Also copied firebird.msg, .conf and security2.fdb. I think the server is working fine, I can create the database with isql; there is something wrong with the provider's resources, or the way they are accessed in mono. Ernesto 2014-07-29 11:12 GMT-03:00 Edward Mendez : > Ernesto, > > > > In my connection string for Embedded Server (on Windows) I have the > following; > > > > "data source=localhost;Client Library=|DataDirectory|fbembed.dll;initial > catalog=\.FDB;user > id=sysdba;password=masterkey;server type=1" > > > > I needed to specify the path to the Database File, along with the Path to > the fbembed.dll and also the localhost. I also needed to include the > following files in my output folder… > > > > firebird.conf, firebird.msg, ib_util.dll, icudt30.dll, icuin30.dll, > icuuc30.dll > > > > Hope this helps, > > > > Ed Mendez > > > > *From:* Ernesto Cullen [mailto:ernestocul...@gmail.com] > *Sent:* Tuesday, July 29, 2014 9:28 AM > *To:* firebird-net-provider@lists.sourceforge.net > *Subject:* [Firebird-net-provider] Problem reading resources on linux > > > > I've created a small program to test firebird access with an embedded > server on linux (with mono), but I am getting errors related to resources. > > > This is the program: > namespace ConsoleFBTest > { > class MainClass > { > public static void Main (string[] args) > { > Console.WriteLine ("Creating database..."); > FbConnection.CreateDatabase( > "ServerType=1;client > library=libfbembed;Dialect=3;Database=test.fdb;User=sysdba;password=masterkey" > ); > } > } > } > > > > easy enough, I just want to create a database. I've copied all firebird > lib/* files into target dir, along with firebird.msg, security2.fdb, > firebird.conf, intl/*. I tested that the embedded server works copying also > isql and executing from command line. > > When I run previous program, both from MonoDevelop and from command line, > I get the output below. I think it may have to do with resources formatting > or embedding in the firebird client dll? maybe eol characters? old mono > version? running out of ideas here, please help! > > Ernesto Cullen > > > > Mono version: > - > mono --version > Mono JIT compiler version 2.10.8 (tarball Mon Apr 7 03:54:27 IST 2014) > Copyright (C) 2002-2011 Novell, Inc, Xamarin, Inc and Contributors. > www.mono-project.com > TLS: __thread > SIGSEGV: altstack > Notifications: epoll > Architecture: amd64 > Disabled: none > Misc: debugger softdebug > LLVM: supported, not enabled. > GC:Included Boehm (with typed GC and Parallel Mark) > > NETProvider: NETProvider-4.2.0.0-MONO_LINUX > > Firebird: FirebirdCS-2.5.3.26778-0.amd64 > > > > program output > --- > > Creating database... > > Unhandled Exception: System.ObjectDisposedException: The object was used > after being disposed. > at System.IO.UnmanagedMemoryStream.Seek (Int64 offset, SeekOrigin loc) > [0x0] in :0 > at System.Resources.ResourceReader.LoadResourceValues > (.ResourceCacheItem[] store) [0x0] in :0 > at System.Resources.ResourceReader+ResourceEnumerator.FillCache () > [0x0] in :0 > at System.Resources.ResourceReader+ResourceEnumerator..ctor > (System.Resources.ResourceReader readerToEnumerate) [0x0] in unknown>:0 > at System.Resources.ResourceReader.GetEnumerator () [0x0] in > :0 > at System.Resources.ResourceSet.ReadResources () [0x0] in unknown>:0 > at System.Resources.ResourceSet.GetObjectInternal (System.String name, > Boolean ignoreCase) [0x0] in :0 > at System.Resources.ResourceSet.GetObject (System.String name, Boolean > ignoreCase) [0x0] in :0 > at System.Resources.ResourceSet.GetStringInternal (System.String name, > Boolean ignoreCase) [0x0] in :0 > at System.Resources.ResourceSet.GetString (System.String name) [0x0] > in :0 > at FirebirdSql.Data.Common.IscException.BuildSqlState () [0x0] in > :0 > at FirebirdSql.Data.Common.IscException.BuildExceptionData () [0x0] > in :0 > at FirebirdSql.Data.Client.Native.FesC
[Firebird-net-provider] Problem reading resources on linux
I've created a small program to test firebird access with an embedded server on linux (with mono), but I am getting errors related to resources. This is the program: namespace ConsoleFBTest { class MainClass { public static void Main (string[] args) { Console.WriteLine ("Creating database..."); FbConnection.CreateDatabase("ServerType=1;client library= libfbembed;Dialect=3;Database=test.fdb;User=sysdba;password=masterkey"); } } } easy enough, I just want to create a database. I've copied all firebird lib/* files into target dir, along with firebird.msg, security2.fdb, firebird.conf, intl/*. I tested that the embedded server works copying also isql and executing from command line. When I run previous program, both from MonoDevelop and from command line, I get the output below. I think it may have to do with resources formatting or embedding in the firebird client dll? maybe eol characters? old mono version? running out of ideas here, please help! Ernesto Cullen Mono version: - mono --version Mono JIT compiler version 2.10.8 (tarball Mon Apr 7 03:54:27 IST 2014) Copyright (C) 2002-2011 Novell, Inc, Xamarin, Inc and Contributors. www.mono-project.com TLS: __thread SIGSEGV: altstack Notifications: epoll Architecture: amd64 Disabled: none Misc: debugger softdebug LLVM: supported, not enabled. GC:Included Boehm (with typed GC and Parallel Mark) NETProvider: NETProvider-4.2.0.0-MONO_LINUX Firebird: FirebirdCS-2.5.3.26778-0.amd64 program output --- Creating database... Unhandled Exception: System.ObjectDisposedException: The object was used after being disposed. at System.IO.UnmanagedMemoryStream.Seek (Int64 offset, SeekOrigin loc) [0x0] in :0 at System.Resources.ResourceReader.LoadResourceValues (.ResourceCacheItem[] store) [0x0] in :0 at System.Resources.ResourceReader+ResourceEnumerator.FillCache () [0x0] in :0 at System.Resources.ResourceReader+ResourceEnumerator..ctor (System.Resources.ResourceReader readerToEnumerate) [0x0] in :0 at System.Resources.ResourceReader.GetEnumerator () [0x0] in :0 at System.Resources.ResourceSet.ReadResources () [0x0] in :0 at System.Resources.ResourceSet.GetObjectInternal (System.String name, Boolean ignoreCase) [0x0] in :0 at System.Resources.ResourceSet.GetObject (System.String name, Boolean ignoreCase) [0x0] in :0 at System.Resources.ResourceSet.GetStringInternal (System.String name, Boolean ignoreCase) [0x0] in :0 at System.Resources.ResourceSet.GetString (System.String name) [0x0] in :0 at FirebirdSql.Data.Common.IscException.BuildSqlState () [0x0] in :0 at FirebirdSql.Data.Common.IscException.BuildExceptionData () [0x0] in :0 at FirebirdSql.Data.Client.Native.FesConnection.ParseStatusVector (System.IntPtr[] statusVector, FirebirdSql.Data.Common.Charset charset) [0x0] in :0 at FirebirdSql.Data.Client.Native.FesDatabase.ParseStatusVector (System.IntPtr[] statusVector) [0x0] in :0 at FirebirdSql.Data.Client.Native.FesDatabase.CreateDatabase (FirebirdSql.Data.Common.DatabaseParameterBuffer dpb, System.String dataSource, Int32 port, System.String database) [0x0] in :0 at FirebirdSql.Data.FirebirdClient.FbConnectionInternal.CreateDatabase (FirebirdSql.Data.Common.DatabaseParameterBuffer dpb) [0x0] in :0 at (wrapper remoting-invoke-with-check) FirebirdSql.Data.FirebirdClient.FbConnectionInternal:CreateDatabase (FirebirdSql.Data.Common.DatabaseParameterBuffer) at FirebirdSql.Data.FirebirdClient.FbConnection.CreateDatabase (System.String connectionString, Int32 pageSize, Boolean forcedWrites, Boolean overwrite) [0x0] in :0 at FirebirdSql.Data.FirebirdClient.FbConnection.CreateDatabase (System.String connectionString) [0x0] in :0 at ConsoleFBTest.MainClass.Main (System.String[] args) [0x0] in :0 [ERROR] FATAL UNHANDLED EXCEPTION: System.ObjectDisposedException: The object was used after being disposed. at System.IO.UnmanagedMemoryStream.Seek (Int64 offset, SeekOrigin loc) [0x0] in :0 at System.Resources.ResourceReader.LoadResourceValues (.ResourceCacheItem[] store) [0x0] in :0 at System.Resources.ResourceReader+ResourceEnumerator.FillCache () [0x0] in :0 at System.Resources.ResourceReader+ResourceEnumerator..ctor (System.Resources.ResourceReader readerToEnumerate) [0x0] in :0 at System.Resources.ResourceReader.GetEnumerator () [0x0] in :0 at System.Resources.ResourceSet.ReadResources () [0x0] in :0 at System.Resources.ResourceSet.GetObjectInternal (System.String name, Boolean ignoreCase) [0x0] in :0 at System.Resources.ResourceSet.GetObject (System.String name, Boolean ignoreCase) [0x0] in :0 at System.Resources.ResourceSet.GetStringInterna
[Firebird-net-provider] Compiling for mono
Hi all, I am trying to port an application using Firebird from Windows (.net 4.0) to Linux under Mono, and I am having problems with the firebird provider. I try to compile it using MonoDevelop 5.0 and could not build the project 'FirebirdSql.Data.FirebirdClient'. I get several errors regarding EntityFramework, which I resolved defining 'NET_35' in project options (there are #if (!(NET_35 && !ENTITY_FRAMEWORK)) directives in several files, but the project had 'NET_40' defined), but I'm still getting errors like 'System.Data.Metadata' namespace not found. - why is the expression using NET_35? does it compile in .net 4 under mono? - Is the 'Entity' folder usable/needed under linux? I removed the 'Entity' folder from the project. Now the build stops saying that FirebirdSql.Data.FirebirdClient/FirebirdClient/FbCommand.cs(22,22): Error CS1061: Type `FirebirdSql.Data.FirebirdClient.FbCommand' does not contain a definition for `expectedColumnTypes' and no extension method `expectedColumnTypes' of type `FirebirdSql.Data.FirebirdClient.FbCommand' could be found. Are you missing an assembly reference? (CS1061) (FirebirdSql.Data.FirebirdClient) Looking at the top of the file I find the definition: #if (!(NET_35 && !ENTITY_FRAMEWORK)) private Type[] expectedColumnTypes; #endif ENTITY_FRAMEWORK is not defined, NET_35 is defined, so the expression evaluates to if !(true && true) -> false so the expectedColumnTypes definition is not compiled. - is this array needed when Entity_framework is not defined, i.e. in Linux? if so, the expression is wrong. Or, - if this array is not needed outside Entity framework, its usage should be enclosed in similar #if expression (lines 318, 368) How do you compile the mono dll included in the release? thanks, Ernesto Cullen -- "Either write something worth reading or do something worth writing" B. Franklin -- Infragistics Professional Build stunning WinForms apps today! Reboot your WinForms applications with our WinForms controls. Build a bridge from your legacy apps to the future. http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk___ Firebird-net-provider mailing list Firebird-net-provider@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/firebird-net-provider
Re: [Firebird-net-provider] OT: Firebirdtutorial etc.
I can help with this, have already produced some translations of existing Firebird docs in docbook format. I can update the content as well, and post it here or in the doc list so we all can comment and get a good useful documentation Ernesto Cullen Jiri Cincura escribió: > Hi *, > > we're looking for some volunteers to extract not outdated (we can > discuss it here) content from %subj% (I can provide you all complete > HTML pages) in DocBook format. Then the Firebird project will be able > to maintain it more easily and prepare some nice looking HTMLs/PFDs > for use. > > Don't be shy. ;) > > -- ___ Firebird-net-provider mailing list Firebird-net-provider@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/firebird-net-provider
Re: [Firebird-net-provider] Leaving the project
Carlos, WE have to thank you for your good work! I hope you enjoy your time at home now :-D Ernesto Cullen Carlos escribió: > Hello: > > I have decided to leave the project, the reason is mainly that i have > left to do development in my spare time and really i'm going to > continue in that situation for a long time, really, right now the last > thing i want when i reach home is get coding again > > I want to give great thanks to all of you for your help and support in > all the time i was active in the development of the .NET provider :) - 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