Re: [Lazarus] TTIGrid crashed after calling ListObject.Add

2014-12-09 Thread John Landmesser
no crash on a 32bit Windows XP with

Lazarus 1.3 r47147 FPC 2.6.4 i386-win32-win32/win64

2014-12-09 4:39 GMT+01:00 Kiên Nguyễn Tiến Trung kc97...@gmail.com:

 I'm finding the way to add something into a TCollection while using
 TTIGrid on it. I've tried following code, however, when I click Button1,
 then click to the space inside the grid, my program crashed. Please have a
 look at my attachment for more detail.

 procedure TForm1.Button1Click(Sender: TObject);
 begin
   TIGrid1.ListObject := nil;
   MyCollection.Add;
   TIGrid1.ListObject := MyCollection;
 end;

 Do you know the right way to call add an item into TCollection?

 --
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] TTIGrid crashed after calling ListObject.Add

2014-12-09 Thread Howard Page-Clark

On 09/12/2014 10:41, John Landmesser wrote:

no crash on a 32bit Windows XP with


For me it sometimes crashes, and sometimes does not (Win7 32-bit).
The problem is not with adding an item to TCollection (which is fine as 
far as I can see), but probably some hard to find bug in the LCL which 
TTIGrid exposes unpredictably.


Howard


---
This email has been checked for viruses by Avast antivirus software.
http://www.avast.com


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] TTIGrid crashed after calling ListObject.Add

2014-12-09 Thread Kiên Nguyễn Tiến Trung
It doesn't crash immediately after clicking Button1. In my case, I must
click into the TIGrid, then it crashes.

2014-12-09 19:31 GMT+07:00 Howard Page-Clark h...@talktalk.net:

 On 09/12/2014 10:41, John Landmesser wrote:

 no crash on a 32bit Windows XP with


 For me it sometimes crashes, and sometimes does not (Win7 32-bit).
 The problem is not with adding an item to TCollection (which is fine as
 far as I can see), but probably some hard to find bug in the LCL which
 TTIGrid exposes unpredictably.

 Howard


 ---
 This email has been checked for viruses by Avast antivirus software.
 http://www.avast.com



 --
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] QCoreApplication::postEvent: Unexpected null receiver

2014-12-09 Thread FreeMan
error create after form destroy, so many times I check All class  
components is free. TFRM_.FormDestroy( 3 this is debugln command last 
code on onformdestroy.
Access violation  some time create and stop QCoreApplication. 
message and application continue
I couldn't find this error as long as two days. I found on the internet, 
error is object is deleting so post event return null, can be but which 
one ? how can I find it?

has any suggestion ?
Thank you.


➜  apps  ./_linux
Bus::open: Can not get ibus-daemon's address.
IBusInputContext::createInputContext: no connection to ibus-daemon
QPainter::begin: Paint device returned engine == 0, type: 2
QPainter::end: Painter not active, aborted
[HINT] TWinControl.CreateWnd creating Handle during loading 
PGC_Hekims:TTabControl csDesigning=False

TFRM_.FormClose( 1
TFRM_.FormClose( 2
TFRM_.FormClose( 3
TFRM_.FormClose( 4
TFRM_.FormDestroy( 1
TFRM_.FormDestroy( 2
TFRM_.FormDestroy( 3
QCoreApplication::postEvent: Unexpected null receiver
QCoreApplication::postEvent: Unexpected null receiver
QCoreApplication::postEvent: Unexpected null receiver
QCoreApplication::postEvent: Unexpected null receiver
QCoreApplication::postEvent: Unexpected null receiver
TApplication.HandleException Access violation
  Stack trace:
  $7FCB2D1EC11D
  $005B9708
  $005B6C5A
  $006E1BA7
  $7FCB2D1FC87A


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Only VCL-compatible components in LCL

2014-12-09 Thread Michael Fuchs
Hello,

some months ago, I wrote a a time-input component, which is oriented on
the TDateEdit. Another programmer gave me the idea to integrate it to
the LCL. So I add a entry to the bugtracker and attach a patch.
http://bugs.freepascal.org/view.php?id=27147

In the bugtracker discussion, Juha Manninen wrotes:
This proposed component from Michael Fuchs competes with
TDateTimePicker and is not VCL compatible. As LCL is a VCL compatible
library, it logically belongs somewhere else.

It is not a problem for me, to publish this component outside the LCL. I
was just surprised, that the development of the LCL has such a strong
dependency to the VCL. I understand, that the LCL should have at least
all the components of the VCL for compatibility reasons. But what is the
problem with new components?

No offense, just curiosity.

Michael

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Only VCL-compatible components in LCL

2014-12-09 Thread leledumbo
 But what is the problem with new components? 

No problem with that I guess, but the competes part could be. i.e.: there
are two competing components which do the same thing (and belongs to the
same package: LCL) with one of them is not VCL compatible.



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Only-VCL-compatible-components-in-LCL-tp4039781p4039782.html
Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Real number display

2014-12-09 Thread Larry Dalton
How do I get a real number to display as a decimal in a dbedit instead of an 
exponential number?

Sent from my iPhone
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Real number display

2014-12-09 Thread Chris Kelling
RealNumber := 1.5;
FloatToStr(RealNumber:2,RealStr);
DbeditBox.text := RealStr

The :2 specifies the number of decimal. If you were using WRITE to output to 
the console, it would look like:

RealNumber := 13.3456;
writeln('Number = ',RealNumber:3:2);

Which would output
Number =  13.34

The first number = the number of spaces after the literal (notice the extra 
space after the equals), and the second is the number of decimal places to 
print. NOTE, in both examples, the formatting dies bit change the value (i.e. 
No rounding or trunking happen, just the number of decimal places specified are 
printed). 

Hope that helps. 

-Chris
 Everything at or below the line is a signature, not to be confused 
with the body of the email above. Sorry about the last signature text that 
seemed to have some people questioning my sanity. 

We are what we repeatedly do. Excellence, then, is not an act, but a habit.

-Aristotle




 On Dec 9, 2014, at 23:03, Larry Dalton larrydalto...@gmail.com wrote:
 
 How do I get a real number to display as a decimal in a dbedit instead of an 
 exponential number?
 
 Sent from my iPhone
 --
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Real number display

2014-12-09 Thread Larry Dalton
Works great! Thanks!

Sent from my iPhone

 On Dec 9, 2014, at 22:23, Chris Kelling kelli...@cox.net wrote:
 
 RealNumber := 1.5;
 FloatToStr(RealNumber:2,RealStr);
 DbeditBox.text := RealStr
 
 The :2 specifies the number of decimal. If you were using WRITE to output 
 to the console, it would look like:
 
 RealNumber := 13.3456;
 writeln('Number = ',RealNumber:3:2);
 
 Which would output
 Number =  13.34
 
 The first number = the number of spaces after the literal (notice the extra 
 space after the equals), and the second is the number of decimal places to 
 print. NOTE, in both examples, the formatting dies bit change the value (i.e. 
 No rounding or trunking happen, just the number of decimal places specified 
 are printed).  
 
 Hope that helps. 
 
 -Chris
  Everything at or below the line is a signature, not to be confused 
 with the body of the email above. Sorry about the last signature text that 
 seemed to have some people questioning my sanity. 
 
 We are what we repeatedly do. Excellence, then, is not an act, but a habit.
 
 -Aristotle
 
 
 
 
 On Dec 9, 2014, at 23:03, Larry Dalton larrydalto...@gmail.com wrote:
 
 How do I get a real number to display as a decimal in a dbedit instead of an 
 exponential number?
 
 Sent from my iPhone
 --
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
 --
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] QCoreApplication::postEvent: Unexpected null receiver

2014-12-09 Thread zeljko

On 12/09/2014 04:32 PM, FreeMan wrote:

error create after form destroy, so many times I check All class 
components is free. TFRM_.FormDestroy( 3 this is debugln command last
code on onformdestroy.
Access violation  some time create and stop QCoreApplication.
message and application continue
I couldn't find this error as long as two days. I found on the internet,
error is object is deleting so post event return null, can be but which
one ? how can I find it?
has any suggestion ?
Thank you.



Without code nobody can help you.

zeljko


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus