[fpc-pascal] Destroy vs Free: Memory Leak?

2010-09-06 Thread Brian Winfrey
I have a TestCase that has this issue.  If I call obj.Free, I am unable to step into the Destroy method and heaptrc indicates a memory leak.  If I call obj.Destroy everything works as expected.  Following the call to Free - ... if (obj <> nil) then obj.Destroy; it would seem that the object must be

Re: [fpc-pascal] lNet getting the local IP

2010-10-06 Thread Brian Winfrey
On Wed, Oct 6, 2010 at 7:09 AM, wrote: > Send fpc-pascal mailing list submissions to >        fpc-pas...@lists.freepascal.org > > To subscribe or unsubscribe via the World Wide Web, visit >        http://lists.freepascal.org/mailman/listinfo/fpc-pascal > or, via email, send a message with subject

Re: [fpc-pascal] lNet getting the local IP

2010-10-07 Thread Brian Winfrey
>> On 06/10/10 14:27, Felipe Monteiro de Carvalho wrote: >>> Ok, thanks everyone, it seams that I managed to extract a function >>> from Silvio's code which doesn't use Synapse. I only tested in Windows >>> so far: >>> >>> unit chesstcputils; >>> >>> {$mode objfpc}{$H+} >>> >>> interface >>> >>> us

Re: [fpc-pascal] lNet getting the local IP

2010-10-07 Thread Brian Winfrey
; I tested again, and discovered that's not is necessary a connection to a > web. > I changed to 0.0.0.0 and returned 127.0.0.1, perfect! :) > I will use this function. Thanks very much again. :) > 2010/10/7 Brian Winfrey >> >> >> On 06/10/10 14:27, Felipe Monteir

Re: [fpc-pascal] lNet getting the local IP

2010-10-07 Thread Brian Winfrey
I don't know if you noticed, but it appears that code has some depracated properties that should be changed. Here are the modifications I made in exploring this issue: program GetPrimaryIpAddress; {$mode objfpc} uses baseunix, unixtype, sockets, SysUtils; procedure Get(out AddrOut: stri

[fpc-pascal] lNet getting the local IP

2010-10-08 Thread Brian Winfrey
:o A hard coded address will of course fail if it cannot be reached. The code was an example, you should use it as such. I substituted my router's ip for google's and it works.;) Choose a different address that would not fail in a specific situation. As another example, one could rea

Re: [fpc-pascal] IntList

2010-10-19 Thread Brian Winfrey
Take a look at http://code.google.com/p/fprb/. I have just perused it, but it looks pretty good. Brian. > > Currently, the FPC team is looking at an implementation of Vlado Boza > for a standard template library for inclusion in FPC. > > The code is on > > http://code.google.com/p/stlpascal > >

Re: [fpc-pascal] What are the issues involved in threads sharing variables?

2010-10-19 Thread Brian Winfrey
> Polling where the list size is highly dynamic you will need protect > it.  I think FPC has thread safe list objects too. Yes it does, Classes.TThreadList I think. I thought it was a conatiner for threads, but it is a safe list. ___ fpc-pascal maillist

Re: [fpc-pascal] Building FPC with debug information

2010-10-20 Thread Brian Winfrey
> make OPT="-O-" DEBUG=1 all When I ran this I see that both -dDEBUG and -dRELEASE are passed on the fpc command line. Is that correct? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] TPLY

2010-10-25 Thread Brian Winfrey
I recently saw a semi working example of a Java to Delphi converter that was done with javacc. Unfortunately it would only convert simple java (v 1.4 maybe). Can anyone recommend a good place to start reading or offer any advise to accomplish this with TPLY. I am looking into porting some Java l

Re: [fpc-pascal] Re: TPLY

2010-10-26 Thread Brian Winfrey
> I prefer doing this manually, syntax conversion is easy, but library design > is totally different. A conversion of the Java code will provide a good starting point I think. Additionally, learning TPLY or lex/yacc could prove very useful I think. Do you have grammer files for syntax conversion

Re: [fpc-pascal] TPLY

2010-10-27 Thread Brian Winfrey
On Wed, Oct 27, 2010 at 9:21 AM, Brian Winfrey wrote: >> there is a port to Lazarus here: >> >> http://www.tcoq.org/ >> >> with some examples. I can help you if needed. The documentation is quite >> complete. > > Thanks it looks interesting, I like the

Re: [fpc-pascal] Re: TPLY

2010-10-28 Thread Brian Winfrey
Thank you, What techiniques have you used in the past that you could share to get me started? On Wed, Oct 27, 2010 at 8:04 PM, leledumbo wrote: > > Learn compilation technique, a recursive descent parser should be easy to > understand and code instead of learning automatic lexer and parser > gene

Re: [fpc-pascal] Re: Re: TPLY

2010-10-29 Thread Brian Winfrey
Well, seems like you all have given some material to get me started. As nobody suggested sticking with TPLY or plex/bison I will back-burner that and proceed with crenshaw/oberon. Thanks to everyone. ___ fpc-pascal maillist - fpc-pascal@lists.freepasca

Re: [fpc-pascal] TPLY

2010-10-29 Thread Brian Winfrey
Thanks, I'll look into this as well. On Fri, Oct 29, 2010 at 2:19 AM, Thierry Coq wrote: > Brian, > thanks for the diff, I'll take it into account and publish an update. > > On 28/10/2010 18:50, Brian Winfrey wrote: > ... >> >> The changes I made in this

Re: [fpc-pascal] MSEide+MSEgui rev.2.4

2010-11-01 Thread Brian Winfrey
Which address should I be using? It looks like the UUID and revision are the same while Last changed revision and path are different. svn info http://svn.freepascal.org/svn/fpc/tags/release_2_4_2 Path: release_2_4_2 URL: http://svn.freepascal.org/svn/fpc/tags/release_2_4_2 Repository Root: http:/

Re: [fpc-pascal] MSEide+MSEgui rev.2.4

2010-11-02 Thread Brian Winfrey
> > The fixes_2_4 is already at version 2.4.3 and contains everything from > 2.4.2 and more... > Thank you. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] TReader.ReadProperty

2010-11-04 Thread Brian Winfrey
See post from about two weeks ago. "Building FPC with debug information" On Wed, Nov 3, 2010 at 3:39 AM, Roland Turčan - RoTurSoft wrote: > > > On Wed, Nov 3, 2010 at 9:17 AM, Michael Van Canneyt > wrote: >>> >>> PS: How can I debug TReader class, because debuger steps over my calls >>> from >>>

[fpc-pascal] Re: make fpc

2010-11-21 Thread Brian Winfrey
I also tried "make cycle" as outlined in programmers guide, but results are the same. On Sun, Nov 21, 2010 at 10:03 AM, Brian Winfrey wrote: > What version should fpc display (Revision: 16393). > > When I get latest and make /usr/bin/fpc is at version 2.4.2. >

Re: [fpc-pascal] make fpc

2010-11-22 Thread Brian Winfrey
On Mon, Nov 22, 2010 at 1:48 AM, Jonas Maebe wrote: > > On 21 Nov 2010, at 19:03, Brian Winfrey wrote: > >> What version should fpc display (Revision: 16393). >> >> When I get latest and make /usr/bin/fpc is at version 2.4.2. >> >> fpc -vut dummy.pas >&g

Re: [fpc-pascal] Cannot get TFPTimer to work

2010-12-02 Thread Brian Winfrey
See .../fpcsrc/packages/fcl-base/examples/testtimer.pp for example usage. On Thu, Dec 2, 2010 at 10:39 AM, Darius Blaszyk wrote: > Whatever I tried, I cannot get TFPTimer to work. Can someone help? For > some reason the OnTimer even is never fired. Tried on Windows and Linux. > Here's a snippet

Re: [fpc-pascal] JSON - RTTI streaming.

2011-01-20 Thread Brian Winfrey
On Wed, Jan 5, 2011 at 3:12 PM, Michael Van Canneyt wrote: > Hello, > > For those of you that need JSON support: > > I have committed support for streaming published properties (properties for > which RTTI  is generated) from objects to JSON and vice versa, in a unit > fpjsonrtti. > > Not the full

Re: [fpc-pascal] Win32 Application Query.

2011-01-31 Thread Brian Winfrey
On Sun, Jan 23, 2011 at 2:25 AM, Justin Smyth wrote: > Hi guys > > I've been working on a application to application communications protocol > via named pipes. > > the basic idea would be for Application A to change a Component Property on > Applications B ( ie the visible property) or a text or c

Re: [fpc-pascal] Javascript in Desktop Applications

2011-02-07 Thread Brian Winfrey
On Mon, Feb 7, 2011 at 6:27 AM, wrote: > > > On Mon, 7 Feb 2011, Andrew Brunner wrote: > >> On Mon, Feb 7, 2011 at 7:35 AM,   wrote: >>> >>> A cross-platform solution is to use one of libsee or BESEN. >>> >>> The latter is implemented in 100% native Object Pascal. >>> >>> Michael. >> >> BESEN is