[fpc-pascal]problems with gtk
Michael Van Canneyt
michael.vancanneyt at wisa.be
Mon Jan 7 10:08:10 CET 2002
On Wed, 2 Jan 2002, enzo - Eduardo Garcia wrote:
> Hello list
> I have the following problem.
> It is doing an aplicacion in windows for the project gcafe http://gcafe.es.gnome.org with gtk. and has had the following problems
> 1. When I try to open a new window comes out with an exitcode 206.
> 2. not it can create the element gtk_clock_new
> I expect that they can help me.
Procedure acercade is defined wrongly and causes stack corruption. You
should define ANY gtk callback as
procedure acercade(W : PGTKWidget; Data : Pointer); cdecl;
... code here...
NEVER omit the 2 arguments or the 'cdecl' in a callback declaration.
More information about the fpc-pascal