Lazarus
Installation => Windows (32/64) => Topic started by: picstart on June 25, 2009, 03:46:53 pm
-
win2k Lazarus 9.26.2 beta A blank form with a single ( in fact any) combo box will compile ok but errors on running with SIGSEGV error. All there is is a form and the combobox...no event code is added... same with using a var of tstring Strangely this doesn't occur with memo or listbox that use tstrings. Is this a fundamental bug or a newbie error?
-
I don't understand. What has a combobox on a form to do with TStrings (or var of TStrings)?
Can you explain better?
-
Theo, congratulations on your 500th post. \o/
Your presence and help in this forum is much appreciated.
-
Theo, congratulations on your 500th post. \o/
Your presence and help in this forum is much appreciated.
Wow, I'm a hero member now... :D
Thanks.
-
The combobox Items property ,the listbox Items property and var myval:Tstrings all use tstrings and if placed on a form1 they will compile but at run time on a win32 win2k platform any and all will error with SIGSEGV error.
Now perhaps it is just a coincidence that all use tstrings and all fail with the same message.
There is no issue with memobox and it uses tstrings so the pattern isn't just tstrings.
-
I asked you to explain better. But you don't.
You place a combobox on a form and compile and run -> SIGSEGV ?
And your IDE doesn't crash? It uses tons of comboboxes.
SIGSEGV is totally unspecific. Why do you think it has to do with TStrings?
-
Explain it better with a piece of code. You must be doing something out of the ordinary, because usually comboboxes don't cause SIGSEGVs
-
Sorry about the lack of details but the lack is due to the fact that it takes almost nothing to get this error.
Here are the minimum of circumstances.
win2k SP4 lazarus 9.26.2
1)
Lazarus is launched and a blank form is created all ( and I mean all) that is done is to add a combobox to the form. There is absolutely no other object on the form just the combobox . No event code is added
2) The project is compiled but not run... it compiles without error
3) the project is compiled and run and at run time voila SIGSEGV error
I know this pared down test version isn't a real world program since no event code was added but any combo box or list box or use of tstrings as a var in a more meaningful program will give SIGSEGV error
Memobox and buttons and radio box etc don't produce SIGSEGV errors
-
The SIGSEGV may be caused by the debugger. Reset the debugger, before you run.
Anyway, again, without the source of your project is hard to tell, if this is the case.
-
Resetting the debugger makes no difference.
the unit
_________________________________________
unit Unit1;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, LResources, Forms, Controls, Graphics, Dialogs,
StdCtrls;
type
{ TForm1 }
TForm1 = class(TForm)
ComboBox1: TComboBox;
private
{ private declarations }
public
{ public declarations }
end;
var
Form1: TForm1;
implementation
initialization
{$I unit1.lrs}
end.
The project
__________________________________________________________________
program project1;
{$mode objfpc}{$H+}
uses
{$IFDEF UNIX}{$IFDEF UseCThreads}
cthreads,
{$ENDIF}{$ENDIF}
Interfaces, // this includes the LCL widgetset
Forms
{ you can add units after this }, Unit1, LResources;
{$IFDEF WINDOWS}{$R project1.rc}{$ENDIF}
begin
{$I project1.lrs}
Application.Initialize;
Application.CreateForm(TForm1, Form1);
Application.Run;
end.
-
Weird, should work.
I'll see if I can fins a win2k with 0.9.26.2