Re: [lazarus] Proposition of patch for bugreport 1445 and 1443

2005-11-20 Thread Bogusław Brandys
Mattias Gaertner wrote: On Wed, 16 Nov 2005 16:57:45 +0100 Bogus__aw Brandys [EMAIL PROTECTED] wrote: Hello, Proposition attached. Mainly it uses PD_RETURNDC option for printers dialogs and strong returned DC into fDC. This returned DC has all options selected by user applied :-) As for

Re: [lazarus] Problem with Threads

2005-11-20 Thread Bogusław Brandys
Felipe Monteiro de Carvalho wrote: Hello, I am having problems with a multi-threaded application. It crashes on Windows. Upon startup the program creates a secondary thread with CreateSuspended := True Then, when pressing a button, the thread is resumed. I changed the Execute method of

[lazarus] Small problem

2005-11-20 Thread Andrew Higgs
Hi all, I have noticed that if the Property Inspector or the Main Window with the component palette on has focus when F9 is pressed the project is built and run twice. I am running with FPC2.0.0 and Lazarus 0.9.11 (8189) on Linux. Regards Andrew Higgs

[lazarus] Re: Problem with Threads

2005-11-20 Thread Felipe Monteiro de Carvalho
Bogusław Brandys wrote: Create bugreport, attach *this* project which is not working,describe. What FPC version,what Lazarus version and revision ? The first step is to reproduce bug. I found the smallest possible program witch can reproduce the bug. It is a simple form with a single button

Re: [lazarus] Problem with current svn

2005-11-20 Thread Mattias Gaertner
On Sat, 19 Nov 2005 12:44:52 + C Western [EMAIL PROTECTED] wrote: The current svn does not compile: gtkint.pp has {$I gtkfiledialogutilsh.inc} but gtkfiledialogutilsh.inc does not exist Sorry. My fault. Fixed. Mattias _

[lazarus] Re: Problem with Threads

2005-11-20 Thread Felipe Monteiro de Carvalho
Bogusław Brandys wrote: Working without problems with lazarus 0.9.11 revision 8188 and FPC 2.0.3 from 2005-11-17 Great to hear that! I was already recreating the thread code with Win API and almost recreating the GUI on Delphi 7 ... By the way : Why you are using suspend inside thread ?

Re: [lazarus] Re: Problem with Threads

2005-11-20 Thread Ales Katona
Felipe Monteiro de Carvalho wrote: Bogusław Brandys wrote: Working without problems with lazarus 0.9.11 revision 8188 and FPC 2.0.3 from 2005-11-17 Great to hear that! I was already recreating the thread code with Win API and almost recreating the GUI on Delphi 7 ... By the way : Why

[lazarus] Re: Problem with Threads

2005-11-20 Thread Felipe Monteiro de Carvalho
Bogusław Brandys wrote: Working without problems with lazarus 0.9.11 revision 8188 and FPC 2.0.3 from 2005-11-17 How do you compile a subversion FPC on Windows? Is 2.0.3 the subversion version? Using cygwin the make command will activate Borland Make and fail. So I changed to use the make

Re: [lazarus] Re: Problem with Threads

2005-11-20 Thread Michalis Kamburelis
Felipe Monteiro de Carvalho wrote: Bogusław Brandys wrote: Working without problems with lazarus 0.9.11 revision 8188 and FPC 2.0.3 from 2005-11-17 How do you compile a subversion FPC on Windows? Is 2.0.3 the subversion version? Using cygwin the make command will activate Borland Make and

Re: [lazarus] Re: Problem with Threads

2005-11-20 Thread Bogusław Brandys
Felipe Monteiro de Carvalho wrote: Bogusław Brandys wrote: Working without problems with lazarus 0.9.11 revision 8188 and FPC 2.0.3 from 2005-11-17 How do you compile a subversion FPC on Windows? Is 2.0.3 the subversion version? Using cygwin the make command will activate Borland

[lazarus] Re: Problem with Threads

2005-11-20 Thread Felipe Monteiro de Carvalho
Michalis Kamburelis wrote: In short, what you most probably want is to run command c:/Programas/FPC2.0.0/bin/i386-win32/make.exe \ -C c:/Programas/FPC Is there a precompiled version of FPC that includes the TThread fixes? I can only find 2.0.0 binaries to download... ok, make kept

Re: [lazarus] Re: Problem with Threads

2005-11-20 Thread Vincent Snijders
Felipe Monteiro de Carvalho wrote: Michalis Kamburelis wrote: In short, what you most probably want is to run command c:/Programas/FPC2.0.0/bin/i386-win32/make.exe \ -C c:/Programas/FPC Is there a precompiled version of FPC that includes the TThread fixes? I can only find 2.0.0

Re: [lazarus] Re: Problem with Threads

2005-11-20 Thread Michalis Kamburelis
Felipe Monteiro de Carvalho wrote: Michalis Kamburelis wrote: In short, what you most probably want is to run command c:/Programas/FPC2.0.0/bin/i386-win32/make.exe \ -C c:/Programas/FPC Is there a precompiled version of FPC that includes the TThread fixes? I can only find 2.0.0

[lazarus] Re: Problem with Threads

2005-11-20 Thread Felipe Monteiro de Carvalho
Vincent Snijders wrote: The lazarus win32 snapshots contain current fpc 2.1.1. Thank god we have snapshots!!! They can make the difference when you desperately need to deliver that project. The test project no longer crashes. many thanks, Felipe

[lazarus] Redirection of stdout to Memo component, problems

2005-11-20 Thread bobby
Hi everyone, I'm stuck with an assignment for my studies. My assignment is to make a GUI for a disassembler. Now, the professor want it to be multi-platform (Win32/Linux). I saw a output-redirection example in Lazarus WIKI (one with memory stream), but the problem is that it's limited to very

AW: [lazarus] Problem with Threads

2005-11-20 Thread Christian U.
I use threads with fpc 2.0.0 for 3 projects and 2 librarys (acs,glscene) and have no problems with this stuff in linux and windows Christian _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the

Re: [lazarus] Redirection of stdout to Memo component, problems

2005-11-20 Thread Michalis Kamburelis
bobby wrote: Hi everyone, I'm stuck with an assignment for my studies. My assignment is to make a GUI for a disassembler. Now, the professor want it to be multi-platform (Win32/Linux). I saw a output-redirection example in Lazarus WIKI (one with memory stream), but the problem is that it's

Re: [lazarus] Redirection of stdout to Memo component, problems

2005-11-20 Thread bobby
Michalis Kamburelis wrote: bobby wrote: Hi everyone, I'm stuck with an assignment for my studies. My assignment is to make a GUI for a disassembler. Now, the professor want it to be multi-platform (Win32/Linux). I saw a output-redirection example in Lazarus WIKI (one with memory stream), but

Re: [lazarus] Redirection of stdout to Memo component, problems

2005-11-20 Thread Andrew Haines
bobby wrote: Michalis Kamburelis wrote: bobby wrote: Hi everyone, I'm stuck with an assignment for my studies. My assignment is to make a GUI for a disassembler. Now, the professor want it to be multi-platform (Win32/Linux). I saw a output-redirection example in Lazarus WIKI (one with

Re: [lazarus] Redirection of stdout to Memo component, problems

2005-11-20 Thread Michalis Kamburelis
Andrew Haines wrote: [...] I am not extremely familiar with how streams work, but using LoadFromStream(Output) may not Read the data so it can be replaced with new data. Also as I said I think S.LoadFromStream is blocking until the end of the stream is reached, which can't happen until the

Re: [lazarus] Redirection of stdout to Memo component, problems

2005-11-20 Thread Andrew Haines
Michalis Kamburelis wrote: Andrew Haines wrote: [...] I am not extremely familiar with how streams work, but using LoadFromStream(Output) may not Read the data so it can be replaced with new data. Also as I said I think S.LoadFromStream is blocking until the end of the stream is reached,

Re: [lazarus] Redirection of stdout to Memo component, problems

2005-11-20 Thread bobby
Andrew Haines wrote: Michalis Kamburelis wrote: Andrew Haines wrote: [...] I am not extremely familiar with how streams work, but using LoadFromStream(Output) may not Read the data so it can be replaced with new data. Also as I said I think S.LoadFromStream is blocking until the end of

Re: [lazarus] Redirection of stdout to Memo component, problems

2005-11-20 Thread bobby
Andrew Haines wrote: Michalis Kamburelis wrote: Andrew Haines wrote: [...] I am not extremely familiar with how streams work, but using LoadFromStream(Output) may not Read the data so it can be replaced with new data. Also as I said I think S.LoadFromStream is blocking until the end of

Re: [lazarus] Redirection of stdout to Memo component, problems

2005-11-20 Thread Michalis Kamburelis
Andrew Haines wrote: Michalis Kamburelis wrote: Andrew Haines wrote: [...] I am not extremely familiar with how streams work, but using LoadFromStream(Output) may not Read the data so it can be replaced with new data. Also as I said I think S.LoadFromStream is blocking until the end of

Re: [lazarus] Redirection of stdout to Memo component, problems

2005-11-20 Thread Michalis Kamburelis
bobby wrote: [...] I already told you, the Lazarus Wiki example gives me the same results like my code - 106kb and no byte more. So it seems that you actually found two problems. To make things clear: 1. The problem with using TStringList.LoadFromStream to read from the pipe. This is what me

Re: [lazarus] Redirection of stdout to Memo component, problems

2005-11-20 Thread bobby
Michalis Kamburelis wrote: bobby wrote: [...] I already told you, the Lazarus Wiki example gives me the same results like my code - 106kb and no byte more. So it seems that you actually found two problems. To make things clear: 1. The problem with using TStringList.LoadFromStream to read

Re: [lazarus] Redirection of stdout to Memo component, problems

2005-11-20 Thread Michael Van Canneyt
On Sun, 20 Nov 2005, Michalis Kamburelis wrote: Andrew Haines wrote: [...] I am not extremely familiar with how streams work, but using LoadFromStream(Output) may not Read the data so it can be replaced with new data. Also as I said I think S.LoadFromStream is blocking until the

[lazarus] ListView question

2005-11-20 Thread Darius Blaszijk
Hi, I'm using two listviews in an app that hold items. The user can select items in both and link them by pressing a button. The problem now is, that as soon as focus leaves a listview there is no indication anymore what item is selected, although ItemFocussed stil contains data. I noticed

Re: [lazarus] Redirection of stdout to Memo component, problems

2005-11-20 Thread Micha Nelissen
Michael Van Canneyt wrote: Failing to do so, and using 'LoadFromStream' directly will make your program appear 'frozen' while it is reading (much as the lazarus compiler output does). The lazarus people could try implementing this for Lazarus, and put the needed code in the LCL ;-) I've