Re: [lazarus] acs for lazarus

2007-12-31 Thread Bee
It works if I compiled Lazarus using fpc 2.2.0. That's fine, I can live 
with that.


Though it compilable, I couldn't get the component run properly. 
Including the demo projects. :(


The application always crashes at the beginning and complains about 
RunError(232), SYSTEM_NOTHREADERROR, SYSTEM_RUNERROR$WORD, and the 
debugger got stuck on TACSThread.Create. :(


I never did any sound programming on Linux before and I'm new to this 
component. Hints? TIA.


-Bee-

has Bee.ography at:
http://beeography.wordpress.com

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] acs for lazarus

2007-12-31 Thread Antonio Sanguigni

 Though it compilable, I couldn't get the component run properly.
 Including the demo projects. :(

 The application always crashes at the beginning and complains about
 RunError(232), SYSTEM_NOTHREADERROR, SYSTEM_RUNERROR$WORD, and the
 debugger got stuck on TACSThread.Create. :(

 I never did any sound programming on Linux before and I'm new to this
 component. Hints? TIA.


RunError(232) maybe is because unit cthreads is missing and these components
are using threads under Linux. Try to force cthreads unit as one of the
first units into uses clause of your project. Never tried this components,
tough.

Antonio
-- 
Antonio Sanguigni alias slapshot
--
GioveLUG (Linux User Group) - http://www.giovelug.org
Edupup (Educational distro) - http://www.edupup.org


Re: [lazarus] Getting current process ID

2007-12-31 Thread Henry Vermaak
On 30/12/2007, Mark Morgan Lloyd [EMAIL PROTECTED] wrote:
 What's the recommended way of getting the current process ID portably? Ideally
 to work in NT4 as well as Linux.

GetProcessID looks like the thing you need:

http://freepascal.org/docs-html/rtl/system/getprocessid.html


 --
 Mark Morgan Lloyd


henry

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] acs for lazarus

2007-12-31 Thread Vincent Snijders

Antonio Sanguigni schreef:

Though it compilable, I couldn't get the component run properly.
Including the demo projects. :(

The application always crashes at the beginning and complains about
RunError(232), SYSTEM_NOTHREADERROR, SYSTEM_RUNERROR$WORD, and the
debugger got stuck on TACSThread.Create. :(

I never did any sound programming on Linux before and I'm new to this
component. Hints? TIA.


RunError(232) maybe is because unit cthreads is missing and these 
components are using threads under Linux. Try to force cthreads unit as 
one of the first units into uses clause of your project. Never tried 
this components, tough.




A component should add -dUseCThread to its usage options. Please update 
the FAQ at 
http://wiki.lazarus.freepascal.org/Lazarus_Faq#When_I_run_a_program_with_threads_I_get_runtime_error_232


Vincent

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Getting current process ID

2007-12-31 Thread Mark Morgan Lloyd

Henry Vermaak wrote:

On 30/12/2007, Mark Morgan Lloyd [EMAIL PROTECTED] wrote:

What's the recommended way of getting the current process ID portably? Ideally
to work in NT4 as well as Linux.


GetProcessID looks like the thing you need:

http://freepascal.org/docs-html/rtl/system/getprocessid.html


Thanks- I really don't know how I missed that.

--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] acs for lazarus

2007-12-31 Thread Antonio Sanguigni

 A component should add -dUseCThread to its usage options. Please update
 the FAQ at

 http://wiki.lazarus.freepascal.org/Lazarus_Faq#When_I_run_a_program_with_threads_I_get_runtime_error_232


Reading Readme-lazarus notes I found this:
---
to use the Package in Linux you must add cthreads unit to
main lazarus unit lazarus.pp
like:

uses
   {$ifdef MemCheck}
   MemCheck
   {$endif}

   {$ifdef Linux}
   ,cthreads
   {$endif}

...

Vincent, how can I read about -dUseCThread for packages ?

Antonio


-- 
Antonio Sanguigni alias slapshot
--
GioveLUG (Linux User Group) - http://www.giovelug.org
Edupup (Educational distro) - http://www.edupup.org


RE: [lazarus] Making GTK Thread Safe

2007-12-31 Thread Sam Liddicott
I can smell an NNTP over http proxy.
For syncronous commands and with HTTP keep-alive it should be nearly as 
eficient as regular NNTP

Sam

-Original Message-
From: Marco van de Voort [EMAIL PROTECTED]
Sent: 30 December 2007 13:15
To: lazarus@miraclec.com
Subject: Re: [lazarus] Making GTK Thread Safe

On Thu, Dec 13, 2007 at 04:35:24PM +0300, Al Boldi wrote:
 Graeme Geldenhuys wrote:
  On 13/12/2007, Martin Schreiber [EMAIL PROTECTED] wrote:
Is there web gateway for this?
  
   No, use a news client, Mozilla Thunderbird for win32/Linux or
   KNode for Linux for example. You will probably like the conversation
   by NNTP, much more convenient than mailing lists or web forums IMHO.
 
  I can't agree more.  NNTP is a lot more convenient and preferred by
  me, that mailing list.
 
 The problem is that sometimes NNTP ports are blocked.

A possible solution to that is spending a few bucks an year for a shell
acocunt with NNTP access. (only requirement is that it is pwd based, not key
based)

Then use a web SSH client to connect to it if a normal ssh is not
available. (the web ssh is the reason for the keyless account).

I do this for years now. Other advantage is that you always have access to
your own lastread pointers,  and have to memorize/carry very little.

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] acs for lazarus

2007-12-31 Thread Vincent Snijders

Antonio Sanguigni schreef:

A component should add -dUseCThread to its usage options. Please update
the FAQ at

http://wiki.lazarus.freepascal.org/Lazarus_Faq#When_I_run_a_program_with_threads_I_get_runtime_error_232

http://wiki.lazarus.freepascal.org/Lazarus_Faq#When_I_run_a_program_with_threads_I_get_runtime_error_232



Reading Readme-lazarus notes I found this:
---
to use the Package in Linux you must add cthreads unit to
main lazarus unit lazarus.pp
like:

uses
   {$ifdef MemCheck}
   MemCheck
   {$endif}
 
   {$ifdef Linux}
   ,cthreads
   {$endif}

...

Vincent, how can I read about -dUseCThread for packages ?



Documentation is scarce, therefore I asked you to add it to the wiki.

If you create a new project, you see in the main project file (.lpr-file):
uses
  {$IFDEF UNIX}{$IFDEF UseCThreads}
  cthreads,
  {$ENDIF}{$ENDIF}

Now open the package file (.lpk) of ACS. Click on the Options button. On 
the first tab (usage), there is a text box at the button. Add the 
following text:

-dUseCThreads

Now if you compile your an application which uses this package, 
-dUseCThreads is added to the command line parameters of the compiler. 
Therefore, the unit cthreads is used, if you are compiling for any unix, 
in particalur linux.


Please, try this out and confirm it is working. If so, add it to the wiki:
1. in the FAQ
2. http://wiki.lazarus.freepascal.org/Lazarus_Packages

Hope this helps.

Vincent

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Making GTK Thread Safe

2007-12-31 Thread Micha Nelissen
Sam Liddicott wrote:
 I can smell an NNTP over http proxy.
 For syncronous commands and with HTTP keep-alive it should be nearly as 
 eficient as regular NNTP

Simply use gmane?

Micha

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] Some nice bugs to start the new year...

2007-12-31 Thread Michael Van Canneyt


- Latest SVN:
  Adding a file in the image list editor crashes the fileopen dialog:

ERROR in LCL: Handle creation failed creating 
PreviewFileControl:TPreviewFileControl
Creating gdb catchable error:
  $080815E8  RAISEGDBEXCEPTION,  line 790 of lclproc.pas
  $0816CFCD  TWINCONTROL__CREATEWND,  line 6468 of ./include/wincontrol.inc
  $0816CBB5  TWINCONTROL__CREATEHANDLE,  line 6394 of ./include/wincontrol.inc
  $0816DB6A  TWINCONTROL__HANDLENEEDED,  line 6779 of ./include/wincontrol.inc
  $0816BDD1  TWINCONTROL__GETHANDLE,  line 5720 of ./include/wincontrol.inc
  $0824BDA0  TGTKWSOPENDIALOG__CREATEPREVIEWDIALOGCONTROL,  line 1061 of 
gtkwsdialogs.pp
  $0824C3C0  TGTKWSOPENDIALOG__CREATEHANDLE,  line 1232 of gtkwsdialogs.pp
  $081DDCE6  TCOMMONDIALOG__EXECUTE,  line 36 of ./include/commondialog.inc
  $081DE266  TFILEDIALOG__EXECUTE,  line 62 of ./include/filedialog.inc
TApplication.HandleException Invalid floating point operation
  Stack trace:
  $08081612  RAISEGDBEXCEPTION,  line 791 of lclproc.pas
  $0816CFCD  TWINCONTROL__CREATEWND,  line 6468 of ./include/wincontrol.inc
  $0816CBB5  TWINCONTROL__CREATEHANDLE,  line 6394 of ./include/wincontrol.inc
  $0816DB6A  TWINCONTROL__HANDLENEEDED,  line 6779 of ./include/wincontrol.inc
  $0816BDD1  TWINCONTROL__GETHANDLE,  line 5720 of ./include/wincontrol.inc
  $0824BDA0  TGTKWSOPENDIALOG__CREATEPREVIEWDIALOGCONTROL,  line 1061 of 
gtkwsdialogs.pp
  $0824C3C0  TGTKWSOPENDIALOG__CREATEHANDLE,  line 1232 of gtkwsdialogs.pp
  $081DDCE6  TCOMMONDIALOG__EXECUTE,  line 36 of ./include/commondialog.inc
  $081DE266  TFILEDIALOG__EXECUTE,  line 62 of ./include/filedialog.inc
  $08205ADF  TPREVIEWFILEDIALOG__EXECUTE,  line 290 of extdlgs.pas
  $083195D8  TIMAGELISTEDITORDLG__BTNADDCLICK,  line 210 of imagelisteditor.pp
  $08173244  TCONTROL__CLICK,  line 2044 of ./include/control.inc
  $0818504F  TBUTTONCONTROL__CLICK,  line 57 of ./include/buttoncontrol.inc
  $08185725  TCUSTOMBUTTON__CLICK,  line 185 of ./include/buttons.inc
  $08185B61  TBUTTON__CLICK,  line 318 of ./include/buttons.inc
  $081858DA  TCUSTOMBUTTON__WMDEFAULTCLICKED,  line 240 of ./include/buttons.inc
  $0806320B

  You can test it with the regular TOpenPicture opening dialog: 
  drop on a form, choose 'test dialog' from component editor menu.
  (mantis issue 10526)
 
- Version of 11 november (rev. 12621): Adding an image to an image list with 
  connected toolbar/actionlist/menu crashes the IDE with a list index out of 
  bounds error.

  Attached patch should fix this, but I can no longer test due to bug no 1.
  Submitted bug report and patch as issue 10527. (related to 10172)

Michael.

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] Dbugger error

2007-12-31 Thread willem

Well I get an debugger error.

Lazarus # 0.9.24 beta i386-linux-gtk

steps to reproduce:

1 create new project.
2 choose console application.
3 create
4 save change to project
5 applicationname test
6 source editor add line : writeln('test');
7 run - buildall
8 file - save all
9 save project1 - OK
10 overwrite? - yes
11 run -  Nothing seems to happen 
12 run - stop  -- execution stopped 
13 run parameters  - check  launching application
14 run -   debugger : failed to load file  error message
15 press OK
16 lazarus run output window popup
17 press Enter
18 execution stopped - press enter
19 debugger error : OOPS the debugger entered the error state.
20 GNU gdb 6.6-debian
   revision i486-linux-gnu

If I run a console application, the debugger seems to interfere.
but do not want  to  debug the console application, just run it.

In the debian package a dependency of xterm  must be added, because 
lazarus assumes xterm is present.
When adding a new project  , lazarus always chooses project1, it does  
increment  to project2 if project1 already  exists.


regards Wim


_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives