Re: [fpc-devel] SVN connection was closed error
2009/7/10 Michael Schnell mschn...@lumino.de: I do use this method with another git server via an url = git+ssh://anonym...@... prefix. Works great, some 10 times faster and much more reliable than http: If sourceforge does support this method (as the page suggests) I would need a read-only username and a password. The username does not seem to be anonymous: Reading about the Git user permissions, it seems that you can access a git repository in (read-only) mode via ssh as long as you are a registered SourceForge.net user. So it seems the username in question will be your registered username, instead of anonymous. http://sourceforge.net/apps/trac/sourceforge/wiki/Git%20permission%20management This is how I understood the above web page, but they are not very clear on that point. An example would have been nice. If this does not work, I would suggest you take up the issue with SourceForge support. Alternatively, asb your network admin to open the Git port (I really can't see issues with such a task) or I can add you as a developer to fpGUI but with read access only. Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
[fpc-devel] Assign Self
Hi, Are we supposed to be able to assign to Self? FPC accepts the attached unit, but seems strange to me to allow this? Micha {$mode objfpc} unit selfass; interface type TTestObj = class procedure TestSelf; end; implementation procedure TTestObj.TestSelf; begin Self := nil; end; end. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Assign Self
On 11 Jul 2009, at 12:53, Micha Nelissen wrote: Are we supposed to be able to assign to Self? Yes. FPC accepts the attached unit Kylix also. Jonas ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Assign Self
Jonas Maebe wrote: On 11 Jul 2009, at 12:53, Micha Nelissen wrote: Are we supposed to be able to assign to Self? Yes. When would it be used? Micha ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Assign Self
In our previous episode, Micha Nelissen said: Yes. When would it be used? Maybe something in pooled object creation? ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Assign Self
On 11 Jul 2009, at 13:11, Micha Nelissen wrote: Jonas Maebe wrote: On 11 Jul 2009, at 12:53, Micha Nelissen wrote: Are we supposed to be able to assign to Self? Yes. When would it be used? You can find some examples here: * http://www.google.com/codesearch?hl=enq=%22self%3A%3D%22+lang%3Apascal * http://www.google.com/codesearch?hl=enq=%22self+%3A%3D%22+lang%3Apascal Note that some hits, like the one in cgbase.pas of FPC, refer to the self parameter of objects, not of classes. Jonas ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Assign Self
Jonas Maebe wrote: Note that some hits, like the one in cgbase.pas of FPC, refer to the self parameter of objects, not of classes. ... or a local variable or a field in a record ... Only ones I found are TExpression and TContractForm, but those don't win a readability contest, like below one in which self is abused as a kind of temporary variable of the right type: procedure tcontractform.add; begin self:=tcontractform.create(owner); self.insert.enabled:=true; self.btnregion.enabled:=true; self.showmodal; end; Gives me the creeps, but I guess nothing strange will happen as other people's references to the original Self aren't modified. Micha ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Assign Self
Micha Nelissen wrote: procedure tcontractform.add; begin self:=tcontractform.create(owner); self.insert.enabled:=true; self.btnregion.enabled:=true; self.showmodal; end; In this case I guess there is even a memory leak in the sense that Owner is usually Application which is a variable existing for lifetime of program. So although this temporary form is freed eventually it takes up memory until end of program lifetime AFAICS. A temporary variable named LeakedContractForm would have been much clearer then :-P. Or put Self.Free at the end which is even creepier. Micha ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
[fpc-devel] SVN error with macosall.pas
When i update FPC from SVN repo it updated for 10 mbytes then i had this error Error: REPORT of '/svn/fpc/!svn/vcc/default': 200 OK (http://svn2.freepascal.org:8080) I tried to update every folder it work fine until i found that file can not updated with the same error http://svn2.freepascal.org:8080/svn/fpc/trunk/packages/univint/src/MacOSAll.pas That file not found in my work copy yet. I used WinXp and TortoiseSVN, also i test it with a command line svn client, with different mirrors. Can we have the source of FPC with .svn directories for last release of FPC then i can start update from it. Thanks in advanced -- Zaher Dirkey ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] SVN error with macosall.pas
Sometimes I get issues with TortoiseSVN. First make a backup of your current work copy. Download the latest version of TortoiseSVN and checkout from the repository again to a new folder. If you have made changes in your old work copy, export your work copy to a new directory to get rid of SVN folders. And copy exported version over your newly checkedout folder. Hope that helps. -Carolos On Sat, Jul 11, 2009 at 1:19 PM, Zaher Dirkey parm...@gmail.com wrote: When i update FPC from SVN repo it updated for 10 mbytes then i had this error Error: REPORT of '/svn/fpc/!svn/vcc/default': 200 OK (http://svn2.freepascal.org:8080) I tried to update every folder it work fine until i found that file can not updated with the same error http://svn2.freepascal.org:8080/svn/fpc/trunk/packages/univint/src/MacOSAll.pas That file not found in my work copy yet. I used WinXp and TortoiseSVN, also i test it with a command line svn client, with different mirrors. Can we have the source of FPC with .svn directories for last release of FPC then i can start update from it. Thanks in advanced -- Zaher Dirkey ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] SVN error with macosall.pas
2009/7/11 Zaher Dirkey parm...@gmail.com: Have you thought of maybe using the Git mirror instead? The initial clone is a 54MB download, but then you have the whole FPC history including all the branches like trunk, fixes_2_2 etc... Another nice feature is that the local copy is much cleaner - no more duplicates of all files so your local copy takes up less space, no more .svn directories in every folder (git only has one .git in the root of the project), etc.. The mirror is hosted on GitHub available via $ git clone git://github.com/graemeg/freepascal.git Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] SVN error with macosall.pas
Graeme Geldenhuys schrieb: 2009/7/11 Zaher Dirkey parm...@gmail.com: Another nice feature is that the local copy is much cleaner - no more duplicates of all files so your local copy takes up less space, If I care about this, I use a compressing file system or compress even single folders instead of expecting this from the application. no more .svn directories in every folder (git only has one .git in the root of the project), etc.. ... and get a fast machine. Resolving the deltas took ages on my arm box. So the whole git clone took almost 30 min thought I got the data rather quickly with 293 KiB/s. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] SVN error with macosall.pas
On 11 Jul 2009, at 14:19, Zaher Dirkey wrote: When i update FPC from SVN repo it updated for 10 mbytes then i had this error Error: REPORT of '/svn/fpc/!svn/vcc/default': 200 OK (http://svn2.freepascal.org:8080) I guess there's a limit somewhere in the apache config that limits certain kinds of webdav streams to 10MB. Jonas ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] SVN error with macosall.pas
Another nice feature is that the local copy is much cleaner - no more duplicates of all files so your local copy takes up less space, no more .svn directories in every folder (git only has one .git in the root of the project), etc.. I think this is a feature and not a bug, I use often this feature because I have setup a shortcut in lazarus and some icon in total commander, for running external diff tool (kdiff3 in linux and winmerge in windows) of my local copy against svn version. It would be nice if the same thing could be made with git, and even as git can hold whole history, it would be interesting to choose any specific revision to do the diff, how? btw how do git deals with revisions? with svn having a short number tagging a revision is handy even when it could make you crazy like when tracking changes on branches or tags :) Jesus Reyes A. ¡Obtén la mejor experiencia en la web! Descarga gratis el nuevo Internet Explorer 8. http://downloads.yahoo.com/ieak8/?l=mx ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus Apache module crashes during concurrent requests
It should be working. You have to make sure you delete the httpd13 and httpd20 directories from your fpc units folder (where httpd.o and .ppu is stored) so only the httpd22 folder remains there. Otherwise the wrong units might be linked with your module and then crash when called. With the latest Lazarus SVN you can find some examples for web apache modules and cgi programs under the lazarus /components/fpweb/demo/ folder. AB Leonardo M. Ramé wrote: Does this was fixed? I'm trying to deploy an apache 2.2.9 module, it compiles and loads ok (it doesn't crash apache) but its exported function isn't called, I'm using the same code ABorka used in this example. This is my configuration: Free Pascal Compiler version 2.2.4-3 [2009/06/03] for i386 Copyright (c) 1993-2008 by Florian Klaempfl Linux debian 2.6.26-1-686 #1 SMP Fri Mar 13 18:08:45 UTC 2009 i686 GNU/Linux Leonardo. - Original Message From: ABorka fpc-de...@aborka.com To: FPC developers' list fpc-devel@lists.freepascal.org Sent: Tuesday, September 30, 2008 11:03:26 PM Subject: Re: [fpc-devel] Lazarus Apache module crashes during concurrent requests Nevermind, on Ubuntu the request_rec is only 384 bytes for FPC instead of 412. But that still does not explain why the handler function is not even getting called by apache. ABorka wrote: OK, after 4 days of pulling my (remaining) hair out I was able to compile a basic C apache module on Ubuntu 8.04 (apache 2.2.8). It seems both fpc/lazarus (not working apache module) and the C compiled (working apache module) one shows sizeof(request_rec) = 412 sizeof(module_struct) = 56 So the length seems to be the same for for both. Still, the Lazarus compiled apache module doesn't even load in apache (mod_hello.pp or any of the other examples included in fpc). If the exports is included then it loads but doesn't work at all: modified mod_hello.pp from fpc/packages/httpd22/examples/ {*** * Test library of the Apache Pascal Headers ***} library mod_hello; {*** * The mode must be objfpc on this unit because the unix code uses * some extensions introduced on Free Pascal ***} {$ifdef fpc} {$mode objfpc}{$H+} {$endif} {$IFDEF WIN32} {$DEFINE WINDOWS} {$ENDIF} {$define Apache2_2} uses SysUtils, httpd {$ifndef Apache1_3}, apr{$endif}; var test_module: module; public name 'test_module'; default_module_ptr: Pmodule; const MODULE_NAME = 'mod_hello.so'; {*** * Free Pascal only supports exporting variables on Windows ***} { $ifdef WINDOWS}//commented out, exports work in Linux now exports test_module name 'test_module'; { $endif}//commented out, exports work in Linux now . .snip . Not sure why the Lazarus/fpc apache modules do not work on apache 2.2.8 or 2.2.9 on Ubuntu. The above module is loaded, the handler registering function is called, but the handler never gets triggered when the module is called from a browser. Michael Van Canneyt wrote: Any suggestions? Yes: please print the size of the Request_rec (or TRequest_Rec) and the same record in C. Compare if they are equal. Same for the module record. If they are not equal, then we know it is a problem with the pascal definition of this record. I've had to do this exercise about 30 times myself on various platforms to get it right. Maybe they changed the size again. Michael. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel