From csorda at ...69... Thu Dec 1 15:21:10 2005 From: csorda at ...69... (csorda@libero.it) Date: Thu, 1 Dec 2005 15:21:10 +0100 Subject: [Gambas-devel] opengl glarea sample Message-ID: Hi, Where can I find a sample on pipe comunication? My problem is the following: ls|my_gambas_program Best regards. From csorda at ...69... Thu Dec 1 16:52:32 2005 From: csorda at ...69... (csorda@libero.it) Date: Thu, 1 Dec 2005 16:52:32 +0100 Subject: [Gambas-devel] pipe sample Message-ID: Sorry for the object > Hi, > Where can I find a sample on pipe comunication? > My problem is the following: > > ls|my_gambas_program > > Best regards. > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_idv37&alloc_id865&op From gambas at ...1... Thu Dec 1 17:19:31 2005 From: gambas at ...1... (Benoit Minisini) Date: Thu, 1 Dec 2005 17:19:31 +0100 Subject: [Gambas-devel] pipe sample In-Reply-To: References: Message-ID: <200512011719.32002.gambas@...1...> On Thursday 01 December 2005 16:52, csorda at ...69... wrote: > Sorry for the object > > > Hi, > > Where can I find a sample on pipe comunication? > > My problem is the following: > > > > ls|my_gambas_program > > > > Best regards. > > > > > > What do you want to do exactly ? -- Benoit Minisini From csorda at ...69... Thu Dec 1 17:39:26 2005 From: csorda at ...69... (csorda@libero.it) Date: Thu, 1 Dec 2005 17:39:26 +0100 Subject: [Gambas-devel] pipe sample Message-ID: Hi Benoit, :-) I have an application that writes data on stdout. My application will have to read data from the standard input (pipe) and to visualize them on a form. I hope to have been clear. Best regards, Carlo Sorda > On Thursday 01 December 2005 16:52, csorda at ...69... wrote: > > Sorry for the object > > > > > Hi, > > > Where can I find a sample on pipe comunication? > > > My problem is the following: > > > > > > ls|my_gambas_program > > > > > > Best regards. > > > > > > > > > > > What do you want to do exactly ? > > -- > Benoit Minisini > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Gambas-devel mailing list > Gambas-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-devel > From sourceforge-raindog2 at ...19... Fri Dec 2 00:31:22 2005 From: sourceforge-raindog2 at ...19... (Rob Kudla) Date: Thu, 1 Dec 2005 18:31:22 -0500 Subject: [Gambas-devel] pipe sample In-Reply-To: References: Message-ID: <200512011831.25515.sourceforge-raindog2@...19...> On Thu December 1 2005 11:39, csorda at ...69... wrote: > My application will have to read data from the standard input > (pipe) and to visualize them on a form. I hope to have been Here you go.... In the future, this sort of question should go to the gambas-user mailing list. (A good rule of thumb is: if you're programming in Gambas, post to gambas-user, and if you're programming in C to enhance or fix Gambas, post to gambas-devel.) Rob -------------- next part -------------- A non-text attachment was scrubbed... Name: popstdin-0.0.4.tar.gz Type: application/x-tgz Size: 1014 bytes Desc: not available URL: From csorda at ...69... Fri Dec 2 12:02:44 2005 From: csorda at ...69... (csorda@libero.it) Date: Fri, 2 Dec 2005 12:02:44 +0100 Subject: [Gambas-devel] pipe sample Message-ID: Hi Rob, thanks for your tips. I suggest to insert this sample in the guide on IDE (help). Use gambas-user for Gambas programmers and gambas-devel for gambas developement, I think is a good rule. Best regards, Carlo Sorda. > On Thu December 1 2005 11:39, csorda at ...69... wrote: > > My application will have to read data from the standard input > > (pipe) and to visualize them on a form. I hope to have been > > Here you go.... > > In the future, this sort of question should go to the gambas-user > mailing list. (A good rule of thumb is: if you're programming > in Gambas, post to gambas-user, and if you're programming in C > to enhance or fix Gambas, post to gambas-devel.) > > Rob > From gambasfr at ...4... Sat Dec 10 23:04:27 2005 From: gambasfr at ...4... (Fabien Bodard) Date: Sat, 10 Dec 2005 23:04:27 +0100 Subject: [Gambas-devel] Bug ? on arrays Message-ID: <200512102304.27672.gambasfr@...4...> Hi, arsObject.Insert(BoxProps) Where BoxProps is another string[] not work... It not add anything... regards, Fabien From gambasfr at ...4... Sat Dec 10 23:08:46 2005 From: gambasfr at ...4... (Fabien Bodard) Date: Sat, 10 Dec 2005 23:08:46 +0100 Subject: [Gambas-devel] Bug ? on arrays In-Reply-To: <200512102304.27672.gambasfr@...4...> References: <200512102304.27672.gambasfr@...4...> Message-ID: <200512102308.46795.gambasfr@...4...> Le Samedi 10 D?cembre 2005 23:04, Fabien Bodard a ?crit?: > Hi, > > arsObject.Insert(BoxProps) > > Where BoxProps is another string[] not work... > > It not add anything... > > regards, > Fabien For a new time my mail is sened too soon... the proplem come from me .. i apologize Fabien From gambasfr at ...4... Sun Dec 11 00:21:59 2005 From: gambasfr at ...4... (Fabien Bodard) Date: Sun, 11 Dec 2005 00:21:59 +0100 Subject: [Gambas-devel] BUGS Message-ID: <200512110021.59699.gambasfr@...4...> There is a series of segmentation fault snapshot For the major parts there comme from this loop : PUBLIC SUB ToolButton2_Click() DIM s AS String DIM hClass AS class DIM o AS Object o = hReport.Find(tv.Current.key) IF IsNull(o) THEN RETURN PRINT Object.Class(o) hClass = Classes[Object.Class(o)] FOR EACH s IN hClass.Symbols IF hClass[s].Kind = Class.Property AND s <> "Parent" THEN PRINT s PRINT s & Object.GetProperty(o, s) ENDIF NEXT CATCH Message.Error(Subst("&1\n&2\n&3", error.Code, error.text, error.Where)) END And more precisely on this line : PRINT s & Object.GetProperty(o, s) I know that my line is not perfect... because properties are strings, integer but array and object too... But normally the catch line is sufficient too block these errors. Sometime the object.GetProperty say me not enouth arguments... how can i give arguments ? I've a stack overflow on some object... but it's mabe in my code... Regards, Fabien Bodard -------------- next part -------------- A non-text attachment was scrubbed... Name: Fichier texte Type: text/x-diff Size: 5475 bytes Desc: not available URL: From gambasfr at ...4... Sun Dec 11 00:27:38 2005 From: gambasfr at ...4... (Fabien Bodard) Date: Sun, 11 Dec 2005 00:27:38 +0100 Subject: [Gambas-devel] This is another exemple of curious output Message-ID: <200512110027.38905.gambasfr@...4...> This project have 2 class MyClass2 inherits MyClass1 MyClass1 have an integer property id set at 10 MyClass2 give another String property Name set as "MyName" If Parse on the class Property and call properties value by Object.GetProperty I've : id = My Name Name = My Name ????? Is it normal doctor ? Regards, Fabien Bodard -------------- next part -------------- A non-text attachment was scrubbed... Name: classBugs-0.0.1.tar.gz Type: application/x-tgz Size: 901 bytes Desc: not available URL: From gambas at ...1... Sun Dec 11 01:09:02 2005 From: gambas at ...1... (Benoit Minisini) Date: Sun, 11 Dec 2005 01:09:02 +0100 Subject: [Gambas-devel] This is another exemple of curious output In-Reply-To: <200512110027.38905.gambasfr@...4...> References: <200512110027.38905.gambasfr@...4...> Message-ID: <200512110109.03125.gambas@...1...> On Sunday 11 December 2005 00:27, Fabien Bodard wrote: > This project have 2 class > > MyClass2 inherits MyClass1 > > MyClass1 have an integer property id set at 10 > MyClass2 give another String property Name set as "MyName" > > If Parse on the class Property and call properties value by > Object.GetProperty > > I've : > > id = My Name > Name = My Name > > > ????? > > Is it normal doctor ? Mmm... No. Can you send me a project for the bugs of your other mail please? -- Benoit Minisini From gambas at ...1... Sun Dec 11 01:25:44 2005 From: gambas at ...1... (Benoit Minisini) Date: Sun, 11 Dec 2005 01:25:44 +0100 Subject: [Gambas-devel] This is another exemple of curious output In-Reply-To: <200512110109.03125.gambas@...1...> References: <200512110027.38905.gambasfr@...4...> <200512110109.03125.gambas@...1...> Message-ID: <200512110125.44144.gambas@...1...> On Sunday 11 December 2005 01:09, Benoit Minisini wrote: > On Sunday 11 December 2005 00:27, Fabien Bodard wrote: > > This project have 2 class > > > > MyClass2 inherits MyClass1 > > > > MyClass1 have an integer property id set at 10 > > MyClass2 give another String property Name set as "MyName" > > > > If Parse on the class Property and call properties value by > > Object.GetProperty > > > > I've : > > > > id = My Name > > Name = My Name > > > > > > ????? > > > > Is it normal doctor ? > > Mmm... No. > > Can you send me a project for the bugs of your other mail please? OK. This bug is fixed. Here is a patch! -- Benoit Minisini -------------- next part -------------- A non-text attachment was scrubbed... Name: gbx_c_class.c Type: text/x-csrc Size: 17246 bytes Desc: not available URL: From gambasfr at ...4... Sun Dec 11 11:50:31 2005 From: gambasfr at ...4... (Fabien Bodard) Date: Sun, 11 Dec 2005 11:50:31 +0100 Subject: [Gambas-devel] This is another exemple of curious output In-Reply-To: <200512110125.44144.gambas@...1...> References: <200512110027.38905.gambasfr@...4...> <200512110109.03125.gambas@...1...> <200512110125.44144.gambas@...1...> Message-ID: <200512111150.31765.gambasfr@...4...> Le Dimanche 11 D?cembre 2005 01:25, Benoit Minisini a ?crit?: > On Sunday 11 December 2005 01:09, Benoit Minisini wrote: > > On Sunday 11 December 2005 00:27, Fabien Bodard wrote: > > > This project have 2 class > > > > > > MyClass2 inherits MyClass1 > > > > > > MyClass1 have an integer property id set at 10 > > > MyClass2 give another String property Name set as "MyName" > > > > > > If Parse on the class Property and call properties value by > > > Object.GetProperty > > > > > > I've : > > > > > > id = My Name > > > Name = My Name 23 > > > > > > > > > ????? > > > > > > Is it normal doctor ? > > > > Mmm... No. > > > > Can you send me a project for the bugs of your other mail please? > > OK. This bug is fixed. Here is a patch! ok this is a blend of my report component and a viewer... in the same project. in the open dialog choose cont.report then in the tree select the first box and use the button after the printer one(it have no icon) Do the same for image and label in the tree... you will see the three error types. Regards, Fabien Bodard Mabe your patch can do someting ... i need to try it this afternoon * From gambasfr at ...4... Sun Dec 11 11:51:44 2005 From: gambasfr at ...4... (Fabien Bodard) Date: Sun, 11 Dec 2005 11:51:44 +0100 Subject: [Gambas-devel] This is another exemple of curious output In-Reply-To: <200512110125.44144.gambas@...1...> References: <200512110027.38905.gambasfr@...4...> <200512110109.03125.gambas@...1...> <200512110125.44144.gambas@...1...> Message-ID: <200512111151.45089.gambasfr@...4...> Le Dimanche 11 D?cembre 2005 01:25, Benoit Minisini a ?crit?: > On Sunday 11 December 2005 01:09, Benoit Minisini wrote: > > On Sunday 11 December 2005 00:27, Fabien Bodard wrote: > > > This project have 2 class > > > > > > MyClass2 inherits MyClass1 > > > > > > MyClass1 have an integer property id set at 10 > > > MyClass2 give another String property Name set as "MyName" > > > > > > If Parse on the class Property and call properties value by > > > Object.GetProperty > > > > > > I've : > > > > > > id = My Name > > > Name = My Name 23 > > > > > > > > > ????? > > > > > > Is it normal doctor ? > > > > Mmm... No. > > > > Can you send me a project for the bugs of your other mail please? > > OK. This bug is fixed. Here is a patch! ok this is a blend of my report component and a viewer... in the same project. in the open dialog choose cont.report then in the tree select the first box and use the button after the printer one(it have no icon) Do the same for image and label in the tree... you will see the three error types. Regards, Fabien Bodard Mabe your patch can do someting ... i need to try it this afternoon * -------------- next part -------------- A non-text attachment was scrubbed... Name: gbreport2-0.0.5.tar.gz Type: application/x-tgz Size: 156727 bytes Desc: not available URL: From gambasfr at ...4... Sun Dec 11 13:08:55 2005 From: gambasfr at ...4... (Fabien Bodard) Date: Sun, 11 Dec 2005 13:08:55 +0100 Subject: [Gambas-devel] This is another exemple of curious output In-Reply-To: <200512111151.45089.gambasfr@...4...> References: <200512110027.38905.gambasfr@...4...> <200512110125.44144.gambas@...1...> <200512111151.45089.gambasfr@...4...> Message-ID: <200512111308.55138.gambasfr@...4...> Thank Benoit I've now installed your patch... and .. all work fine now :) mabe this bug must be corrected on the 1.0 version too Regards, Fabien From gambasfr at ...4... Sun Dec 11 22:40:59 2005 From: gambasfr at ...4... (Fabien Bodard) Date: Sun, 11 Dec 2005 22:40:59 +0100 Subject: [Gambas-devel] About Arrangement under a container. Message-ID: <200512112241.00033.gambasfr@...4...> Hi, all I've a problem, On trying to do an autoarrangement of my toolboxes i've see that is no way to choose the order of widget under a container from code... At less it will be usefull if object.Lower or object.Raise set a container refresh...That rearrange the container. The same thing appear in the Split component too ! EXPORT PRIVATE $oParent AS Object PRIVATE oPanel AS Panel PRIVATE oTitle AS Label PRIVATE oPic AS PictureBox PRIVATE oButClose AS ToolButton PUBLIC SUB _New(Parent AS Object) $oParent = Parent $oParent.Arrangement = arrange.Vertical oPanel = NEW Panel($oParent) oPanel.Lower() 'This not work !, the panel is alway at the bottom ! of the container and not at the top. oPanel.Border = border.Raised oPanel.Height = 30 oPanel.Arrangement = Arrange.Horizontal oTitle = NEW Label(oPanel) otitle.Text = $oParent.Title END In the same way can you implement the Reparent function such as the gtk one ? Regards, Fabien Bodard From gambasfr at ...4... Sun Dec 11 23:06:08 2005 From: gambasfr at ...4... (Fabien Bodard) Date: Sun, 11 Dec 2005 23:06:08 +0100 Subject: [Gambas-devel] About Arrangement under a container. In-Reply-To: <200512112241.00033.gambasfr@...4...> References: <200512112241.00033.gambasfr@...4...> Message-ID: <200512112306.08239.gambasfr@...4...> Le Dimanche 11 D?cembre 2005 22:40, Fabien Bodard a ?crit?: > Hi, all > > I've a problem, On trying to do an autoarrangement of my toolboxes i've see > that is no way to choose the order of widget under a container from code... > > At less it will be usefull if object.Lower or object.Raise set a container > refresh...That rearrange the container. The same thing appear in the Split > component too ! The Lower property work for qt but not on gtk component > EXPORT > > PRIVATE $oParent AS Object > PRIVATE oPanel AS Panel > PRIVATE oTitle AS Label > PRIVATE oPic AS PictureBox > PRIVATE oButClose AS ToolButton > PUBLIC SUB _New(Parent AS Object) > > $oParent = Parent > $oParent.Arrangement = arrange.Vertical > > oPanel = NEW Panel($oParent) > > oPanel.Lower() > 'This not work !, the panel is alway at the bottom ! of the container and > not at the top. > > oPanel.Border = border.Raised > oPanel.Height = 30 > oPanel.Arrangement = Arrange.Horizontal > oTitle = NEW Label(oPanel) > otitle.Text = $oParent.Title > > > END > > > In the same way can you implement the Reparent function such as the gtk one > ? > > Regards, > Fabien Bodard > From gambas at ...1... Mon Dec 12 11:38:27 2005 From: gambas at ...1... (Benoit Minisini) Date: Mon, 12 Dec 2005 11:38:27 +0100 Subject: [Gambas-devel] This is another exemple of curious output In-Reply-To: <200512111308.55138.gambasfr@...4...> References: <200512110027.38905.gambasfr@...4...> <200512111151.45089.gambasfr@...4...> <200512111308.55138.gambasfr@...4...> Message-ID: <200512121138.28011.gambas@...1...> On Sunday 11 December 2005 13:08, Fabien Bodard wrote: > Thank Benoit > I've now installed your patch... and .. all work fine now :) > > mabe this bug must be corrected on the 1.0 version too > > > Regards, > Fabien > It's done! -- Benoit Minisini From dcamposf at ...176... Tue Dec 13 13:30:34 2005 From: dcamposf at ...176... (Daniel Campos) Date: Tue, 13 Dec 2005 13:30:34 +0100 Subject: [Gambas-devel] gb.net updated Message-ID: <7259b5ae0512130430u3409acaeo@...178...> Hi: New version of gb.net component. It adds an "id" or "handle" property to the ServerSocket, Socket and UdpSocket classes which gives access to internal socket descriptor. When an object of any of these classes receive a socket from the system, using the socket() call, and prior to connect(), bind(), or listen() calls, it generates a "Socket" event, so the programmer can use setsockopt() or ioctl() in that event to add any exotic option prior to the connection process, using external functions from glibc. Here's the version: http://gambas.gnulinex.org/net/gb.net.051213.tar.bz2 Benoit, could you add this version for the next developement release? Regards, D. Campos -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at ...1... Tue Dec 13 13:43:06 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 13 Dec 2005 13:43:06 +0100 Subject: [Gambas-devel] gb.net updated In-Reply-To: <7259b5ae0512130430u3409acaeo@...178...> References: <7259b5ae0512130430u3409acaeo@...178...> Message-ID: <200512131343.06719.gambas@...1...> On Tuesday 13 December 2005 13:30, Daniel Campos wrote: > Hi: > > New version of gb.net component. It adds an "id" or "handle" property to > the ServerSocket, Socket and UdpSocket classes which gives access to > internal socket descriptor. But you already inherited it from the Stream class. You don't have to overwrite it; you have to return it from the "handle" function of the stream implementation. For example, in the Socket class implementation, you just have to return it from your CSocket_stream_handle() function instead of always returning zero. Regards, -- Benoit Minisini From dcamposf at ...176... Tue Dec 13 13:50:47 2005 From: dcamposf at ...176... (Daniel Campos) Date: Tue, 13 Dec 2005 13:50:47 +0100 Subject: [Gambas-devel] gb.net updated In-Reply-To: <200512131343.06719.gambas@...1...> References: <7259b5ae0512130430u3409acaeo@...178...> <200512131343.06719.gambas@...1...> Message-ID: <7259b5ae0512130450l3236c673g@...178...> > > > But you already inherited it from the Stream class. You don't have to > overwrite it; you have to return it from the "handle" function of the > stream > implementation. > > For example, in the Socket class implementation, you just have to return > it > from your CSocket_stream_handle() function instead of always returning > zero. Do you think there will be no problems with your internal gbx code to manage streams if I return a value different from Zero? I think I removed that due to any problem with any of your interpreter functions that checks the value of the stream handle... Regards, D. Campos Regards, > > -- > Benoit Minisini > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Gambas-devel mailing list > Gambas-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-devel > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at ...1... Tue Dec 13 14:14:58 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 13 Dec 2005 14:14:58 +0100 Subject: [Gambas-devel] gb.net updated In-Reply-To: <7259b5ae0512130450l3236c673g@...178...> References: <7259b5ae0512130430u3409acaeo@...178...> <200512131343.06719.gambas@...1...> <7259b5ae0512130450l3236c673g@...178...> Message-ID: <200512131414.58877.gambas@...1...> On Tuesday 13 December 2005 13:50, Daniel Campos wrote: > > But you already inherited it from the Stream class. You don't have to > > overwrite it; you have to return it from the "handle" function of the > > stream > > implementation. > > > > For example, in the Socket class implementation, you just have to return > > it > > from your CSocket_stream_handle() function instead of always returning > > zero. > > Do you think there will be no problems with your internal gbx code to > manage streams if I return a value different from Zero? I think I removed > that due to any problem with any of your interpreter functions that checks > the value of the stream handle... > > Regards, > > D. Campos > The interpreter uses the stream handle returned by this function in the following cases: 1) When closing a stream, if the stream handle is >= 0, then GB.Watch() is called to stop watching this file descriptor if it is watched. Then the stream close function is called. 2) When using LOCK or UNLOCK, the stream handle is used. 3) When calling Lof(), if the stream lof function returns a zero length, then the stream handle is used to call ioctl(..., FIONREAD, ...) to know how many bytes are readable on the handle. 4) To implement the Stream.Handle / Stream.Id property. That's all (I think so) :-) Note that you chose to return 0, that is a perfectly valid file handle. If you don't want to return any file handle, you have to return (-1), or to pass a NULL as stream handle function pointer. Regards, -- Benoit Minisini From rporticio at ...7... Thu Dec 15 04:10:51 2005 From: rporticio at ...7... (Ramon Orticio) Date: Wed, 14 Dec 2005 19:10:51 -0800 (PST) Subject: [Gambas-devel] basic concepts Message-ID: <20051215031051.68789.qmail@...408...> dear friends, i'm a newbie in programming and was referred to your forum by a friend rob from the gambas user's list. i did some vb programming but not much. i was just facinated how gambas was made. i think it be worthwhile to know how was it created in order to have a good grasp of the language and possibly if my ability would permit to also contribute to the improvement of the gambas. basically may i know how was the compiler and interpreter of gambas made. what are the underlying concepts on this. thanks for any idea and your patience to neophytes like me. ramon __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From dcamposf at ...176... Thu Dec 15 10:50:07 2005 From: dcamposf at ...176... (Daniel Campos) Date: Thu, 15 Dec 2005 10:50:07 +0100 Subject: [Gambas-devel] gb.net updated In-Reply-To: <200512131414.58877.gambas@...1...> References: <7259b5ae0512130430u3409acaeo@...178...> <200512131343.06719.gambas@...1...> <7259b5ae0512130450l3236c673g@...178...> <200512131414.58877.gambas@...1...> Message-ID: <7259b5ae0512150150sd80d963u@...178...> OK, Now the Socket and UdpSocket classes use the native Id property: http://gambas.gnulinex.org/net/gb.net.051214.tar.bz2 ...and yes, I was using 0 as an invalid value, some times I feel I am #$%&!!!! Regards, D. Campos 2005/12/13, Benoit Minisini : > > On Tuesday 13 December 2005 13:50, Daniel Campos wrote: > > > But you already inherited it from the Stream class. You don't have to > > > overwrite it; you have to return it from the "handle" function of the > > > stream > > > implementation. > > > > > > For example, in the Socket class implementation, you just have to > return > > > it > > > from your CSocket_stream_handle() function instead of always returning > > > zero. > > > > Do you think there will be no problems with your internal gbx code to > > manage streams if I return a value different from Zero? I think I > removed > > that due to any problem with any of your interpreter functions that > checks > > the value of the stream handle... > > > > Regards, > > > > D. Campos > > > > The interpreter uses the stream handle returned by this function in the > following cases: > > 1) When closing a stream, if the stream handle is >= 0, then GB.Watch() is > called to stop watching this file descriptor if it is watched. Then the > stream close function is called. > > 2) When using LOCK or UNLOCK, the stream handle is used. > > 3) When calling Lof(), if the stream lof function returns a zero length, > then > the stream handle is used to call ioctl(..., FIONREAD, ...) to know how > many > bytes are readable on the handle. > > 4) To implement the Stream.Handle / Stream.Id property. > > That's all (I think so) :-) > > Note that you chose to return 0, that is a perfectly valid file handle. If > you > don't want to return any file handle, you have to return (-1), or to pass > a > NULL as stream handle function pointer. > > Regards, > > -- > Benoit Minisini > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Gambas-devel mailing list > Gambas-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-devel > -------------- next part -------------- An HTML attachment was scrubbed... URL: From psaborio1 at ...7... Thu Dec 22 22:02:13 2005 From: psaborio1 at ...7... (pablo saborio) Date: Thu, 22 Dec 2005 13:02:13 -0800 (PST) Subject: [Gambas-devel] Merry Christmas Message-ID: <20051222210213.92007.qmail@...410...> For all gambas developers: Our best wishes of friendship and peace in these days. Sincerely, Jose and Pablo Saborio. __________________________________________ Yahoo! DSL ? Something to write home about. Just $16.99/mo. or less. dsl.yahoo.com