Re: [Firebird-net-provider] Some questions?
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jiri Cincura Sent: Saturday, July 19, 2008 15:31 To: For users and developers of the Firebird .NET providers Subject: Re: [Firebird-net-provider] (no subject) On Sat, Jul 19, 2008 at 4:40 AM, Pham Huu Le quoc phuc [EMAIL PROTECTED] wrote: I downloaded Provider 2.1, I found somes problems: 1. variable shouldDisposeSelectCommand in FbDataAdapter class not assign anywhere but it's used. Look at line 147. 2. FBScript constructor with parameter filename, I think should has contructor with script input. I build a web service program, client program read file and send script to server, I use FBScript class to update into DB. There's a ctor with TextReader param. I write a client - server program. At client, user select a script sql file, my program read and send script to server. At server, I want new FbScript with ctor parameter is script(not TextReader). I can't pass TextReader to server. 3. Function: RemoveComments(string source) of Fbscrip should change from private to public. I want remove commmends on script without init FbScript Reason? -- Jiri {x2} Cincura (CTO x2develop.com) http://blog.vyvojar.cz/jirka/ | http://www.ID3renamer.com - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Firebird-net-provider mailing list Firebird-net-provider@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/firebird-net-provider - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Firebird-net-provider mailing list Firebird-net-provider@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/firebird-net-provider
Re: [Firebird-net-provider] (no subject)
When I compile from source, it has warning, shouldDisposeSelectCommand is assigned anywhere. www.tonyvn.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jiri Cincura Sent: Saturday, July 19, 2008 15:31 To: For users and developers of the Firebird .NET providers Subject: Re: [Firebird-net-provider] (no subject) On Sat, Jul 19, 2008 at 4:40 AM, Pham Huu Le quoc phuc [EMAIL PROTECTED] wrote: I downloaded Provider 2.1, I found somes problems: 1. variable shouldDisposeSelectCommand in FbDataAdapter class not assign anywhere but it's used. Look at line 147. 2. FBScript constructor with parameter filename, I think should has contructor with script input. I build a web service program, client program read file and send script to server, I use FBScript class to update into DB. There's a ctor with TextReader param. 3. Function: RemoveComments(string source) of Fbscrip should change from private to public. Reason? -- Jiri {x2} Cincura (CTO x2develop.com) http://blog.vyvojar.cz/jirka/ | http://www.ID3renamer.com - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Firebird-net-provider mailing list Firebird-net-provider@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/firebird-net-provider - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Firebird-net-provider mailing list Firebird-net-provider@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/firebird-net-provider
Re: [Firebird-net-provider] Some questions?
Pham Huu Le Quoc Phuc wrote: There's a ctor with TextReader param. I write a client - server program. At client, user select a script sql file, my program read and send script to server. At server, I want new FbScript with ctor parameter is script(not TextReader). I can't pass TextReader to server. Um, you need to look up the documentation for TextReader. It's exactly what you are after. 3. Function: RemoveComments(string source) of Fbscrip should change from private to public. I want remove commmends on script without init FbScript Reason? The source code for FbScript is available, if you need your own version, just use it. You can't make every method public just because someone, somewhere, might one day want it. You'd be creating a maintenance nightmare for yourself. Dean. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Firebird-net-provider mailing list Firebird-net-provider@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/firebird-net-provider
Re: [Firebird-net-provider] Some questions?
Hello: I write a client - server program. At client, user select a script sql file, my program read and send script to server. At server, I want new FbScript with ctor parameter is script(not TextReader). I can't pass TextReader to server. Are you sending it as a String ?? if yes, what prevents you to create the TextReader in the server ?? I want remove commmends on script without init FbScript That method should remain as it's right now IMHO xD -- Carlos Guzmán Álvarez Vigo-Spain http://carlosga.wordpress.com - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/___ Firebird-net-provider mailing list Firebird-net-provider@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/firebird-net-provider
Re: [Firebird-net-provider] Some questions?
Thank for your reply, Please tell me more TextReader? www.tonyvn.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dean Harding Sent: Wednesday, July 23, 2008 13:24 To: For users and developers of the Firebird .NET providers Subject: Re: [Firebird-net-provider] Some questions? Pham Huu Le Quoc Phuc wrote: There's a ctor with TextReader param. I write a client - server program. At client, user select a script sql file, my program read and send script to server. At server, I want new FbScript with ctor parameter is script(not TextReader). I can't pass TextReader to server. Um, you need to look up the documentation for TextReader. It's exactly what you are after. 3. Function: RemoveComments(string source) of Fbscrip should change from private to public. I want remove commmends on script without init FbScript Reason? The source code for FbScript is available, if you need your own version, just use it. You can't make every method public just because someone, somewhere, might one day want it. You'd be creating a maintenance nightmare for yourself. Dean. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Firebird-net-provider mailing list Firebird-net-provider@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/firebird-net-provider - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Firebird-net-provider mailing list Firebird-net-provider@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/firebird-net-provider
Re: [Firebird-net-provider] Some questions?
Pham Huu Le Quoc Phuc wrote: Thank for your reply, Please tell me more TextReader? http://msdn.microsoft.com/en-us/library/system.io.textreader.aspx And, specifically for your case: http://msdn.microsoft.com/en-us/library/system.io.stringreader.aspx Dean. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Firebird-net-provider mailing list Firebird-net-provider@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/firebird-net-provider
Re: [Firebird-net-provider] (no subject)
On Wed, Jul 23, 2008 at 8:18 AM, Pham Huu Le Quoc Phuc [EMAIL PROTECTED] wrote: When I compile from source, it has warning, shouldDisposeSelectCommand is assigned anywhere. http://firebird.svn.sourceforge.net/svnroot/firebird/NETProvider/trunk/NETProvider/source/FirebirdSql/Data/FirebirdClient/FbDataAdapter.cs public FbDataAdapter(string selectCommandText, FbConnection selectConnection) : base() { this.SelectCommand = new FbCommand(selectCommandText, selectConnection); this.shouldDisposeSelectCommand = true; } -- Jiri {x2} Cincura (CTO x2develop.com) http://blog.vyvojar.cz/jirka/ | http://www.ID3renamer.com - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Firebird-net-provider mailing list Firebird-net-provider@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/firebird-net-provider
Re: [Firebird-net-provider] Some questions?
On Wed, Jul 23, 2008 at 8:10 AM, Pham Huu Le Quoc Phuc [EMAIL PROTECTED] wrote: I want remove commmends on script without init FbScript The FbScript isn't general purpose parser for working with scripts. It's created for running statements from scripts, without any parsing the script yourself. -- Jiri {x2} Cincura (CTO x2develop.com) http://blog.vyvojar.cz/jirka/ | http://www.ID3renamer.com - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Firebird-net-provider mailing list Firebird-net-provider@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/firebird-net-provider
[Firebird-net-provider] [FB-Tracker] Created: (DNET-169) When using connection string like database=host/port:path the port isn't assigned
When using connection string like database=host/port:path the port isn't assigned --- Key: DNET-169 URL: http://tracker.firebirdsql.org/browse/DNET-169 Project: .NET Data provider Issue Type: Bug Affects Versions: 2.5.0 Alpha 2, 2.5.0 Alpha 1, 2.1.0, 2.0.1 Reporter: Jiri Cincura Assignee: Jiri Cincura Priority: Minor When using connection string like database=host/port:path the port isn't assigned. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://tracker.firebirdsql.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Firebird-net-provider mailing list Firebird-net-provider@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/firebird-net-provider
[Firebird-net-provider] still FbRemoteEvent
Hi Jiri, is it possible to somehow implement an IDisposable pattern for FbRemoteEvent? There are a lot of small problems now. For instance: if i pass an connection object to the FbRemoteEvent constructor there are as far as i understand two possibilities 1) i as owner responsible for destroying this connection object - doesn't work for now, if i dispose connection, there is a socket exception, cause RemoteEvent still tries to read from already disposed stream 2) FbRemoteEvent should destroy it - i didn't find any place in code, where FbRemoteEvent would manage connection dispose. As i understand, you cannot stop it from listening at all. the thread, that is reading responses from server is declared background and reads until owning window is destroyed (and causes bunch of ThreadAbortedException's) to understand the problem, consider this test case FbConnection conn1 = new FbConnection(); conn1.Open(); revent = new FbRemoteEvent(conn1, new[] { event }); revent.RemoteEventCounts += revent_RemoteEventCounts; revent.QueueEvents(); revent.CancelEvents(); revent.RemoteEventCounts -= revent_RemoteEventCounts; revent.Connection = null; //this will cause an socket exception conn1.Dispose(); Is there any possibility to implement some Stop method (that causes stoppage of all socket/thread stuff) - in my opinion - CancelEvents might do this work. And it would be nice to know, that the same functionality (and also dispose of connection) would be done in Dispose method. We can still dispose connection on our own, but only if we can stop socket listening (and this must be clearly stated in docu). -- View this message in context: http://www.nabble.com/still-FbRemoteEvent-tp18607434p18607434.html Sent from the firebird-net-provider mailing list archive at Nabble.com. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Firebird-net-provider mailing list Firebird-net-provider@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/firebird-net-provider