[Qt] uclibc + libqt4intf- EAccessViolation : Access violation
Nataraj S Narayan
natarajsn at gmail.com
Tue Feb 2 11:25:29 CET 2010
Yikes!!!
Address book code works!
Luckily, I changed the kernel from 2.6.28 to 2.6.30. Now I dont get seg fault.
I mean, the same code gave me segmentation fault on 2.6.28.
BTW these errors remain :-
# ./shapedclock -qws
FT_New_Face failed with index 0 : 2
FT_New_Face failed with index 0 : 2
FT_New_Face failed with index 0 : 2
FT_New_Face failed with index 0 : 2
FT_New_Face failed with index 0 : 2
An unhandled exception occurred at $01054ED0 :
EAccessViolation : Access violation
$01054ED0 of ../objpas/rtlconsts.pp
$00009168 TCLOCK__CREATE, line 72 of shapedclock.pas
$0000A048 TAPPLICATION__CREATE, line 318 of shapedclock.pas
$0000A1AC main, line 339 of shapedclock.pas
# ./concentric -qws
start of program
An unhandled exception occurred at $0004C828 :
EAccessViolation : Access violation
$0004C828 of ../objpas/rtlconsts.pp
regards
Nataraj
On Tue, Feb 2, 2010 at 12:51 AM, Den Jean <Den.Jean at telenet.be> wrote:
> On Monday 01 February 2010 11:41:25 Nataraj S Narayan wrote:
>> #1 0x401c0ab4 in QObject_hook::eventFilter () from /usr/lib/libqt4intf.so
>>
> in embedded, first try a very small c++ app like
> qt-embedded-linux-opensource-src-4.5.3/examples/tutorials/addressbook/part1
> to verify your qt setup
>
> then try a very small freepascal writeln hello world app in fpc (*without* Qt)
>
> then translate the qt tutor to a pascal qt4 app with the binding.(see below)
>
> compiling the Qt libs and the Qt binding with debug info if still problems
>
>
>
> addressbook.lpr:
> http://users.telenet.be/Jan.Van.hijfte/qtforfpc/addressbook.png
>
>
> program addressbook;
>
> {$mode objfpc}{$H+}
>
> uses
> {$IFDEF UNIX}{$IFDEF UseCThreads}
> cthreads,
> {$ENDIF}{$ENDIF}
> Classes,SysUtils,Types,Qt4;
>
>
> type
>
> TAddressBook = class(TObject)
> public
> Handle : QWidgetH;
> NameLine : QLineEditH;
> AddressText : QTextEditH;
> constructor Create;
> end;
>
> constructor TAddressBook.Create;
> var
> NameLabel : QLabelH;
> AddressLabel : QLabelH;
> MainLayout : QGridLayoutH;
> w : WideString;
> begin
> Handle:=QWidget_create;
>
> w:='Name:';
> NameLabel:=QLabel_Create(@w);
> NameLine:=QLineEdit_create;
>
> w:='Address:';
> AddressLabel:=QLabel_create(@w);
> AddressText:=QTextEdit_create;
>
> MainLayout:=QGridLayout_create;
> QGridLayout_addWidget(MainLayout,NameLabel,0,0);
> QGridLayout_addWidget(MainLayout,NameLine,0,1);
> QGridLayout_addWidget(MainLayout,AddressLabel,1,0,QtAlignTop);
> QGridLayout_addWidget(MainLayout,AddressText,1,1);
>
> QWidget_setLayout(Handle,MainLayout);
> w:='Simple Address Book';
> QWidget_setWindowTitle(Handle, at w);
> end;
>
> var
> App : QApplicationH;
> AddrBook : TAddressBook;
>
> begin
> App:=QApplication_create(@Argc,Argv);
> AddrBook:=TAddressBook.Create;
> QWidget_show(AddrBook.Handle);
>
> QCoreApplication_exec;
> end.
>
>
>
>
>
> _______________________________________________
> Qt mailing list
> Qt at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/qt
>
More information about the Qt
mailing list