On Mon, 17 Sep 2007 20:32:50 +0200
Marc Weustink <[EMAIL PROTECTED]> wrote:

<snip>

> > The error is an 'invalid type cast'.
> 
> That comes somewhere. If you run your app in lazarus, dou you get a call 
> stack when you get this exception ?

Nope, but I don't use a debugger in lazarus.
I just tried again and loading a png works, but loading a bmp fails. At least I 
managed to produce a hopefully more meaningful backtrace:

(gdb) bt
#0  0x08061e46 in fpc_raiseexception ()
#1  0x080a6840 in SYSUTILS_RUNERRORTOEXCEPT$LONGINT$POINTER$POINTER ()
#2  0x08064e17 in SYSTEM_HANDLEERRORADDRFRAME$LONGINT$POINTER$POINTER ()
#3  0xbf910500 in ?? ()
#4  0x70425470 in ?? ()
#5  0x000000db in ?? ()
#6  0xbf9104a0 in ?? ()
#7  0xbf910500 in ?? ()
#8  0xb7c901c0 in ?? ()
#9  0x08064ebd in SYSTEM_HANDLEERRORFRAME$LONGINT$POINTER ()
#10 0xb7e1f430 in ?? ()
#11 0xb7e1f430 in ?? ()
#12 0xb7c901c0 in ?? ()
#13 0xb7e1f430 in ?? ()
#14 0x08060bd8 in fpc_do_as ()
#15 0x08154662 in TLAZREADERBMP__INTERNALREADBODY (this=0xb7f74090) at 
intfgraphics.pas:4591
#16 0x081545ef in TLAZREADERBMP__INTERNALREAD (STREAM=0xb7054140, 
IMG=0xb7e1f430, this=0xb7f74090) at intfgraphics.pas:4537
#17 0x0815ce9d in 
FPIMAGE_TFPCUSTOMIMAGEREADER_$__IMAGEREAD$TSTREAM$TFPCUSTOMIMAGE$$TFPCUSTOMIMAGE
 ()
#18 0x0815abd1 in 
FPIMAGE_TFPCUSTOMIMAGE_$__LOADFROMSTREAM$TSTREAM$TFPCUSTOMIMAGEREADER ()
#19 0xb7054140 in ?? ()
#20 0x0821eb54 in TASMTEXTURE2D__LOADFROMFILE (FILENAME=0x8241ba4, 
this=0xb7e1f430) at asmtypes.pas:4011
#21 0x0807bc61 in TFORM1__INITWORLD (this=0xb7e34b20) at wtform.pas:190
#22 0x0807b744 in TFORM1__OPENGLCONTROL1PAINT (SENDER=0xb7e35f90, 
this=0xb7e34b20) at wtform.pas:80
#23 0x0820d07c in TCUSTOMOPENGLCONTROL__DOONPAINT (this=0xb7e35f90) at 
openglcontext.pas:352
#24 0x0820cfbf in TCUSTOMOPENGLCONTROL__PAINT (this=0xb7e35f90) at 
openglcontext.pas:336
#25 0x0820cc04 in TCUSTOMOPENGLCONTROL__WMPAINT (MESSAGE={MSG = 1056, DC = 
-1211531232, PAINTSTRUCT = 0xb7e1f3e0, RESULT = 0}, this=0xb7e35f90)
    at openglcontext.pas:265
#26 0x080613f9 in SYSTEM_TOBJECT_$__DISPATCH$formal ()
#27 0x0820cae0 in TCUSTOMOPENGLCONTROL__SETSHAREDCONTROL (AVALUE=0xbf91079c, 
this=0xb7e35f90) at openglcontext.pas:247
#28 0x0811e479 in TWINCONTROL__WNDPROC (MESSAGE=
      {MSG = 1056, WPARAM = -1211531232, LPARAM = -1209928736, RESULT = 0, 
WPARAMLO = 32800, WPARAMHI = 47049, LPARAMLO = 62432, LPARAMHI = 47073, 
RESULTLO = 0, RESULTHI = 0}, this=0xb7e35f90) at wincontrol.inc:3492
#29 0x081c3085 in DELIVERMESSAGE (TARGET=0xb7e35f90, AMESSAGE=void) at 
gtkproc.inc:3721
#30 0x081ace75 in TGTKWIDGETSET__SENDMESSAGE (HANDLEWND=137844344, MSG=1123, 
WPARAM=-1209991920, LPARAM=0, this=0xb7ca8020) at gtkwinapi.inc:8079
#31 0x08194b0f in TGTKWIDGETSET__APPPROCESSMESSAGES (this=0xb7ca8020) at 
gtkobject.inc:1412
#32 0x080786d9 in TAPPLICATION__HANDLEMESSAGE (this=0xb7ddf020) at 
application.inc:943
#33 0x08078ac4 in RUNMESSAGE (parentfp=0xbf910870) at application.inc:1057
#34 0x08078a1b in TAPPLICATION__RUNLOOP (this=0xb7ddf020) at 
application.inc:1067
#35 0x0807c923 in TWIDGETSET__APPRUN (ALOOP=0x80789e0 <TAPPLICATION__RUNLOOP>, 
this=0xb7ca8020) at interfacebase.inc:49
#36 0x080789da in TAPPLICATION__RUN (this=0xb7ddf020) at application.inc:1046
#37 0x08055ac9 in main () at wt.lpr:16

Beelzebub

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

Reply via email to