Re: [fpc-pascal] connection problem

2008-03-26 Thread Jesus Reyes
Hi JoshyFun, thanks for your feedback. --- JoshyFun <[EMAIL PROTECTED]> escribió: > Hello Jesus, > > Wednesday, March 26, 2008, 7:55:39 PM, you wrote: > > JR> Hi, I'm experiencing connection problems to bugs.freepascal.org > and > JR> svn.freepascal.org. > > Same problem from Spain but no pr

Re: [fpc-pascal] connection problem

2008-03-26 Thread JoshyFun
Hello Jesus, Wednesday, March 26, 2008, 7:55:39 PM, you wrote: JR> Hi, I'm experiencing connection problems to bugs.freepascal.org and JR> svn.freepascal.org. Same problem from Spain but no problem if I access (in browser mode) using a proxy located in the United States :-? Maybe it is a carrier

[fpc-pascal] connection problem

2008-03-26 Thread Jesus Reyes
Hi, I'm experiencing connection problems to bugs.freepascal.org and svn.freepascal.org. [EMAIL PROTECTED]:~/temp> svn co http://svn.freepascal.org/FPC/svn/lazarus/trunk l svn: requerimiento PROPFIND falló en '/FPC/svn/lazarus/trunk' svn: PROPFIND de '/FPC/svn/lazarus/trunk': 405 Method Not Allowed

Re: [fpc-pascal] Windows unit and SyncObjs unit clash

2008-03-26 Thread Graeme Geldenhuys
On 26/03/2008, Joao Morais <[EMAIL PROTECTED]> wrote: > > > What about use uses Windows under ifndef fpc? > That will work for some units, but not all of them. Some units reference things in Windows unit not related to Critical Section, but I am definitely going to give this a try and see how far

Re: [fpc-pascal] Windows unit and SyncObjs unit clash

2008-03-26 Thread Joao Morais
Graeme Geldenhuys wrote: For lower level stuff, you should use TRTLCriticalSection, never TCriticalSection. It has the advantage of being portable. I'm surprised you actually use the windows unit. That is Evil(tm). The code in question is the tiOPF project which is shared with Delphi & FP

Re: [fpc-pascal] Windows unit and SyncObjs unit clash

2008-03-26 Thread Joao Morais
Marco van de Voort wrote: On Wed, 26 Mar 2008, Graeme Geldenhuys wrote: On 26/03/2008, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: Yes, use fully qualified names. windows.tcriticalsection. syncobjs.tcriticalsection. Why doesn't Delphi compiler complain about it? A quick search reveale

Re: [fpc-pascal] Windows unit and SyncObjs unit clash

2008-03-26 Thread Pete Cervasio
On Wednesday 26 March 2008 08:51:53 Graeme Geldenhuys wrote: > On 26/03/2008, Marco van de Voort <[EMAIL PROTECTED]> wrote: > > Hmm, didn't older (<6) versions simply have this, and did synobjs get > > introduced later? In that case, if Delphi can break compat, so can we. > > I think I still have

Re: [fpc-pascal] Windows unit and SyncObjs unit clash

2008-03-26 Thread Graeme Geldenhuys
On 26/03/2008, Marco van de Voort <[EMAIL PROTECTED]> wrote: > > Hmm, didn't older (<6) versions simply have this, and did synobjs get > introduced later? In that case, if Delphi can break compat, so can we. I think I still have my copy of Delphi 5 lying around. If I can find it, I'll see if TCr

Re: [fpc-pascal] Windows unit and SyncObjs unit clash

2008-03-26 Thread Marco van de Voort
> On Wed, 26 Mar 2008, Graeme Geldenhuys wrote: > > > On 26/03/2008, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: > > > > > > Yes, use fully qualified names. > > > > > > windows.tcriticalsection. > > > syncobjs.tcriticalsection. > > > > > > Why doesn't Delphi compiler complain about it? A q

[fpc-pascal] Question on low-level functions for ttySxx

2008-03-26 Thread Rainer Hantsch
Hello, I am currently modernizing my "serial communications unit", which actually is a OOP wrapper around IOCtrl and termio. It currently supports the following functions: -- functionOpen(portdev: string): boolean; // Open serial port procedur

Re: [fpc-pascal] Windows unit and SyncObjs unit clash

2008-03-26 Thread Michael Van Canneyt
On Wed, 26 Mar 2008, Graeme Geldenhuys wrote: > On 26/03/2008, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: > > > > Yes, use fully qualified names. > > > > windows.tcriticalsection. > > syncobjs.tcriticalsection. > > > Why doesn't Delphi compiler complain about it? A quick search > reveal

[fpc-pascal] Windows GetLastError doesn't work with threads

2008-03-26 Thread Luca Olivetti
I hate to be obnoxious, but I posted a patch for the issue in the subject (WSAGetLastError/GetLastError is reset by the rtl when one is using threads) and I'd like some feedback (if it's the proper solution or is there a better one). http://bugs.freepascal.org/view.php?id=10205 Bye -- Luca _

Re: [fpc-pascal] Windows unit and SyncObjs unit clash

2008-03-26 Thread Graeme Geldenhuys
On 26/03/2008, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: > > Yes, use fully qualified names. > > windows.tcriticalsection. > syncobjs.tcriticalsection. Why doesn't Delphi compiler complain about it? A quick search revealed that Delphi's Windows.pas unit doesn't contain a TCriticalSection

Re: [fpc-pascal] Windows unit and SyncObjs unit clash

2008-03-26 Thread Graeme Geldenhuys
On 26/03/2008, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: > > Yes, use fully qualified names. > > windows.tcriticalsection. > syncobjs.tcriticalsection. That should work > For lower level stuff, you should use TRTLCriticalSection, never > TCriticalSection. > > It has the advantage

Re: [fpc-pascal] Windows unit and SyncObjs unit clash

2008-03-26 Thread Michael Van Canneyt
On Wed, 26 Mar 2008, Graeme Geldenhuys wrote: > Hi, > > I've noticed this ages ago and found a work-around, but never reported > it. I hit the same error again today and thought this time I would > mention it. > > In tiOPF we have some IFDEF's for the 'Windows' unit. Some units also > use the

[fpc-pascal] Windows unit and SyncObjs unit clash

2008-03-26 Thread Graeme Geldenhuys
Hi, I've noticed this ages ago and found a work-around, but never reported it. I hit the same error again today and thought this time I would mention it. In tiOPF we have some IFDEF's for the 'Windows' unit. Some units also use the 'SyncObjs' unit for critical section handling. If 'SyncObjs' unit