Hi,

I placed a ImageList on a form. Added two images (xpm-files from
lazarus/image directory). The placed a PageControl on the form and added
two pages.
Assigned the ImageList to the PageControl.Images property. When ever you
switch to the form you get a message 'Invalid Type cast'. The third time
Lazarus crashed.

lazarus.pp - unhandled exception
Note: GetTextBuf is overridden for: :�(_

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 2542048 (LWP 27636)]
0x00000000 in ?? ()
(gdb) bt
#0  0x00000000 in ?? ()
#1  0x0813ec25 in TCONTROL__GETTEXT (this=0xe669cc) at control.inc:2241
#2  0x081416c1 in TCONTROL__SETTEXT (VALUE=0xd797a4, this=0xe669cc)
    at control.inc:3296
#3  0x080a2689 in TMAINIDE__UPDATECAPTION (this=0x26d0fc) at
main.pp:8956
#4  0x080b03f8 in TMAINIDEBASE__SETTOOLSTATUS (AVALUE=ITEXITING,
this=0x26d0fc)
    at mainbase.pas:230
#5  0x0808c6eb in TMAINIDE__SETTOOLSTATUS (AVALUE=ITEXITING,
this=0x26d0fc)
    at main.pp:2727
#6  0x08086477 in TMAINIDE__DESTROY (vmt=0x1, this=0x26d0fc) at
main.pp:1127
#7  0x0805f10a in SYSTEM_TOBJECT_$__FREE ()
#8  0x0026d0fc in ?? ()
#9  0x08077316 in TAPPLICATION__DOBEFOREFINALIZATION (this=0x29d01c)
    at application.inc:804
#10 0x0806d8d1 in FORMS_NOTIFYAPPLICATIONUSERINPUT$LONGWORD () at
forms.pp:1304
#11 0x0806352c in SYSTEM_INTERNALEXIT ()
#12 0x08063709 in SYSTEM_DO_EXIT ()
#13 0x0806373a in SYSTEM_HALT$BYTE ()
#14 0xbfbbb000 in ?? ()
#15 0x0805476e in main () at lazarus.pp:101
(gdb) c
Continuing.
[FORMS.PP] ExceptionOccurred
  Sender=EAccessViolation
  Exception=Access violation
  Stack trace:
  $00000000
  $081416C1  TCONTROL__SETTEXT,  line 3296 of ./include/control.inc
  $080A2689  TMAINIDE__UPDATECAPTION,  line 8956 of main.pp
  $080B03F8  TMAINIDEBASE__SETTOOLSTATUS,  line 230 of mainbase.pas
  $0808C6EB  TMAINIDE__SETTOOLSTATUS,  line 2727 of main.pp
  $08086477  TMAINIDE__DESTROY,  line 1127 of main.pp
  $0805F10A
  $0806D8D1  NOTIFYAPPLICATIONUSERINPUT,  line 74 of forms.pp
  $0806352C
TApplication.HandleException: there was another exception during showing
the first exception

Program received signal SIGSEGV, Segmentation fault.
0x080bfe5a in CLASSES_TLIST_$__GETCOUNT$$LONGINT ()
(gdb) c
Continuing.
[FORMS.PP] ExceptionOccurred

Program received signal SIGSEGV, Segmentation fault.
0x6f6e6769 in ?? ()
(gdb) c
Continuing.
[FORMS.PP] ExceptionOccurred

Program exited normally.




-- 
Matthijs Willemstein <[EMAIL PROTECTED]>

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to