* * *

Author Topic: [Solved] EBusError on assigning pages to PageControl  (Read 3487 times)

darkaxi0m

  • New member
  • *
  • Posts: 5
[Solved] EBusError on assigning pages to PageControl
« on: August 18, 2010, 01:36:35 am »
I am trying to create dynamic TTabSheets for my program.
Everything works, including design time created tabsheets but the following code

Code: [Select]
try
  Tab      := TTabSheet.Create(PageControl1);
  logit('1');
  Tab.PageControl := PageControl1;
  logit('2');
  Tab.Caption := gname;
except
  on E: Exception do
  begin
    logit(e.message);
    logit(e.classname);
  end;
end;  

on the line Tab.PageControl := PageControl1; the exception

EBusError, Bus error or misaligned data access is raised.

the code works fine for win32
FPC Version 2.2.4
Lazarus 0.9.28.2 beta
« Last Edit: August 20, 2010, 08:41:56 am by darkaxi0m »

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3415
Re: EBusError on assigning pages to PageControl
« Reply #1 on: August 18, 2010, 09:55:55 pm »
Could you try with one of the latest snapshots? In the left part of this website there is a link to "Daily Snapshots"

darkaxi0m

  • New member
  • *
  • Posts: 5
Re: EBusError on assigning pages to PageControl
« Reply #2 on: August 19, 2010, 05:01:51 am »
Works with fpc 2.4.3, from the snapshots
Thankyou :)

Quote
Lazarus-0.9.29-27140-fpc-2.4.3-20100819-win32.exe
Lazarus-0.9.29-27140-fpc-2.4.3-20100819-cross-arm-wince-win32.exe

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads