Re: [Gtk2forpascal-devel] Can you help me?
Brought to you by:
mgaertner
From: Olaf L. <le...@ne...> - 2002-08-02 14:08:51
|
Hi Mili! 1. When program start, there are 4 errors occor.=20 2. When you click the button on the window, the program crash!!!=20 Sorry, I can't help you. But here are my thoughts: First of all it doesn't crash on my system. One reason for the crash might be the lack of a cdecl after the callback functions. But I don't think that this is the reason. I've debuged it using gdb (or kdbg). The first error is created in line 275 (gtk_tree_view_column_add_attribute) but it's a bit suspect for me. An other thing I've noticed is that you call gtk_init two times, in the unit and in the app. I'm not famillar with classes in pascal - but why do you want to put all this code into a class? As far as I can read your code you'd linke to combine several widgets to a class. I think there are better ways. I once tried this in cpp but I failed (because of c++) Why don't you create your own widget? Have a look at the tutorial at gtk.org. I think this might be easier. Ciao, Olaf =20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =C3=E2=B7=D1=D3=CA=CF=E4=BD=A1=BF=B5=C9=B1=B6=BE=B4=F3=D0=D0=B6=AF=A3= =A1 =D0=C4=B6=AF=B2=BB=C8=E7=D0=D0=B6=AF =B4=F3=BB=B0=CE=F7=D3=CE2.0=C3=E2= =B7=D1=B2=E2=CA=D4=D6=D0 =CD=F8=D2=D7=B7=C7=B3=A3=C4=D0=C5=AE =B4=AB=B5=DD=B6=CC=D0=C5=C7=E9=B8= =FC=C5=A8 =20 =20 =20 |