Re: [fpc-pascal] Inherit interface from 2 interfaces
On Fri, Apr 8, 2011 at 6:16 AM, michael.vancann...@wisa.be wrote: On Fri, 8 Apr 2011, Zaher Dirkey wrote: 2011/4/7 Flávio Etrusco flavio.etru...@gmail.com On Wed, Apr 6, 2011 at 1:37 PM, Zaher Dirkey parm...@gmail.com wrote: Can i do that? type IIntf3 = interface(IIntf11, IIntf2) end; Thanks in advance. -- Zaher Dirkey For Corba interfaces, yes. Not for COM interfaces. http://www.freepascal.org/docs-html/ref/refse39.html I added {$INTERFACES CORBA} but same error ~Fatal: Syntax error, ) expected but , found~ in the line ~IIntf3 = interface(IIntf11, IIntf2)~ The whole idea of interfaces is to avoid multiple inheritance. So you can never inherit from more than one interface. Also not in CORBA interfaces. The mentioned page of the manual nowhere states that this is possible. It just says that for CORBA interfaces, the interface does not descend from IUnknown. Michael. My bad, I just answered based on the Delphi implementation. I sent the link just for the sake of reference. Best regards, Flávio ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] Problems with an FPC server
Hi, The server hosting the FPC mailing lists, ftp site, wiki and community site has crashed badly yesterday. Almost everything has been restored from backup in the mean time, but some things (mailing list subscriptions/posts, wiki edits, ...) from 7 or 8 April may have been lost. The main website, svn repository and bugs database are hosted on another machine and were unaffected. Jonas___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Problems with an FPC server
I had also problem connecting to the svn: svn: OPTIONS of 'http://svn.freepascal.org/svn/fpc/trunk': Could not resolve hostname `svn.freepascal.org': Host not found (http://svn.freepascal.org) It happened only for 30 minutes or so ... Ido LINESIP - Opening the source for communication http://www.linesip.com http://www.linesip.co.il On Sat, Apr 9, 2011 at 21:10, Jonas Maebe jonas.ma...@elis.ugent.be wrote: Hi, The server hosting the FPC mailing lists, ftp site, wiki and community site has crashed badly yesterday. Almost everything has been restored from backup in the mean time, but some things (mailing list subscriptions/posts, wiki edits, ...) from 7 or 8 April may have been lost. The main website, svn repository and bugs database are hosted on another machine and were unaffected. Jonas___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] Problems with GetMem
ZeelandNet Webmail I get strange errors when using GetMem. In my app I keep on allocating and freeing memory in a variable. At a certain moment I do keep getting a SIGSEGV on the GetMem call when trying to allocate exactly 128bytes. However allocating other sizes seems to work just fine. Is there some logical explanation what could be going on here? Is there a way for me to test the cause? I have tried to create a simple example that reproduces the error but without success, if needed I will post the entire library source, just wanted to ask first if I miss something obvious. Regards, Darius ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Problems with GetMem
On 10 Apr 2011, at 00:20, dhkblas...@zeelandnet.nl dhkblas...@zeelandnet.nl wrote: I get strange errors when using GetMem. In my app I keep on allocating and freeing memory in a variable. At a certain moment I do keep getting a SIGSEGV on the GetMem call when trying to allocate exactly 128bytes. However allocating other sizes seems to work just fine. Is there some logical explanation what could be going on here? Most likely it's memory corruption: writing into a freed memory block, writing outside the bounds of an allocated memory block, ... Compiling with -gh may help pinpoint it, and if not and you're on a Unix-based platform, you can try Valgrind. Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] Parsing commandline parameters with wildcards on Linux
Hi all, I ran into a problem with resolving commandline parameters, due to wildcard expansion by bash. Consider the following code: for i := 1 to paramcount do writeln(i,': ',paramstr(i)); My program expects input from the commandline in the form scopy source dest when you now specify wildcards on the commandline, they will be expanded by bash, so the output will be like this: bart@simenon:~/LazarusProjecten/ConsoleProjecten/scopy ./scopy * 1: backup 2: lib 3: scopy 4: scopy.ico 5: scopy.lpi 6: scopy.lpr 7: scopy.res 8: x bart@simenon:~/LazarusProjecten/ConsoleProjecten/scopy However from inside my program I cannot distinguish between the followin 2 scenarios: 1: x is the last item in the list expanded by bash or 2: the commandline actually was scopy * x Scenario 1 is a syntax error, and it should not be treated as if it were scenario 2. Things get even more confusing when i use a syntax like scopy source dest excludefilter bart@simenon:~/LazarusProjecten/ConsoleProjecten/scopy ./scopy * y *.bak 1: 123 2: 1233 3: 12333 4: 123.bak 5: 123.tmp 6: 456.bak 7: backup 8: lib 9: scopy 10: scopy.ico 11: scopy.lpi 12: scopy.lpr 13: scopy.res 14: x 15: y 16: 123.bak 17: 456.bak Obviously this is a common scenario on Linux, so how to treat it? I would prefer to expand the wildcards by myself, but it seems I have no access to what the user actually typed on the commandline? Bart ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal