Re: [lazarus] A Thread in DLL

2007-12-17 Thread melchiorre caruso
Al Boldi wrote: I do not know how to do it, It turns out that you need an export trick to do this. Include the attached 'LibSyncMgr.inc' into your lib after your exports-line with this line: {$i LibSyncMgr.inc} Make sure there is no LCL or Interfaces unit included in your

Re: [lazarus] A Thread in DLL

2007-12-15 Thread melchiorre caruso
Al Boldi wrote: Michael Van Canneyt wrote: On Sat, 15 Dec 2007, Al Boldi wrote: melchiorre caruso wrote: I found an article that explains why my code does not work on Windows: Actually, I had a closer look at synchronize, and it turns out to be dependent on the GUI

Re: [lazarus] A Thread in DLL

2007-12-14 Thread melchiorre caruso
I found an article that explains why my code does not work on Windows: http://www.clevercomponents.com/articles/article019/delphi6sync.asp Now it works. unit threadx; interface uses Windows, Classes; type TThreadSynchronizer = class private FMethod: TThreadMethod;

Re: [lazarus] A Thread in DLL

2007-12-09 Thread melchiorre caruso
Al Boldi wrote: melchiorre caruso wrote: Al Boldi wrote: So it's either an fpc or windows issue. Can you statically link it on windows, and see if it make a difference? I have statically linked library to application with this results Library.MainBlock MainThreadID = 3496

Re: [lazarus] A Thread in DLL

2007-12-09 Thread melchiorre caruso
Al Boldi wrote: melchiorre caruso wrote: Al Boldi wrote: So it's either an fpc or windows issue. Can you statically link it on windows, and see if it make a difference? I have statically linked library to application with this results Library.MainBlock MainThreadID = 3496

Re: [lazarus] A Thread in DLL

2007-12-07 Thread melchiorre caruso
Al Boldi wrote: melchiorre caruso wrote: procedure TTestLibrary.TestBtnClick(Sender: TObject); nbsp; LibHandle := LoadLibrary('thread2lib.dll'); CreateMyThreadFunc := GetProcedureAddress(LibHandle,'CreateMyThread'); Make sure your library actually loads... if I use in execute

Re: [lazarus] A Thread in DLL

2007-12-07 Thread melchiorre caruso
Graeme Geldenhuys wrote: On 06/12/2007, melchiorre caruso [EMAIL PROTECTED] wrote: Hi everybody, I have a question about to Thread and DLL library. Is it possible to create a function that has as result a thread, and insert it into a dll? The issue is probably cause by the same

[lazarus] A Thread in DLL

2007-12-06 Thread melchiorre caruso
Hi everybody, I have a question about to Thread and DLL library. Is it possible to create a function that has as result a thread, and insert it into a dll? example: library getthread ... function CreateMyThread: TThread; begin Result := TMyThread.Create; end; ... exports CreateMyThread

Re: [lazarus] SpeedButton.Font

2006-01-21 Thread Melchiorre Caruso
Vincent Snijders wrote: Melchiorre Caruso wrote: Hi all, I have see that default TSpeedButton.Font changes after a TForm.OnResize event or a TSpeedButton.OnClick event . is it a little bug? I fail to see the difference. Can you give me hint what I should look

Re: [lazarus] SpeedButton.Font

2006-01-21 Thread Melchiorre Caruso
- Original Message - From: Micha Nelissen [EMAIL PROTECTED] To: lazarus@miraclec.com Sent: Saturday, January 21, 2006 6:37 PM Subject: Re: [lazarus] SpeedButton.Font On Sat, 21 Jan 2006 10:21:49 +0100 Melchiorre Caruso [EMAIL PROTECTED] wrote: The only difference I see

Re: [lazarus] SpeedButton.Font

2006-01-21 Thread Melchiorre Caruso
Melchiorre Caruso wrote: Excuse me, I have created a bug report but with some problem. Wrongly I have created three reports. I kept the first one and deleted the other two. Vincent Thanks --- Melchiorre

[lazarus] SpeedButton.Font

2006-01-20 Thread Melchiorre Caruso
Hi all, I have see thatdefault TSpeedButton.Font changes after a TForm.OnResize event or aTSpeedButton.OnClick event . is it alittle bug? --- Melchiorre [WIN2K SP4] attachment: before.jpg attachment: after.jpg