[lazarus] GDK calling problems

Peter Vreman pfv at cooldown.demon.nl
Tue Aug 24 09:16:18 EDT 1999


> >I don't think the bug is in syslinux itself, but in a function calling a
> >syslinux function with wrong parameters, for example a move(nil,nil,1) or
> >something like that.
> 
> 	I recompiled the library with debug info (thanks for
> 	info for a newcomer,Peter) and what I found was that
> 	the real problem occurs at OBJPAS.INC, line 114
> 
> 	function TObject.ClassType : TClass;
> 
> 	 begin
> 	 ClassType:=TClass(Pointer(Self)^) <--- here
> 	 end;
> 
> 	and the information says: Program received signal
> 	SIGSEGV, segmentaion fault.
> 	0x807790 in TOBJECT_CLASSTYPE (this=Cannot access
> 	memory at addres NxN) at objpas.inc:114
> 
> 	NxN varies from 0x0 to 0x5 depending on the problematic
> 	keys pressed (Tab=0x0, other values arrow keys).
> 
> 	Hope this helps correct the problems, as a rookie I
> 	cannot yet find the problem.
Another hint:

type 'bt' in gdb to see a backtrace from which placed it's called. Because
the call to this tobject method is with the wrong 'this' the bug is in the
caller

Peter







More information about the Lazarus mailing list