I'm haveing the following problem :
I'm trying to open and compile the example-projects of
CleanOGL useing Kylix 3 Open Edition. Diong that useing
the files as they come fails right away, because the
includes are incorrect. I've corrected them as follows :
Project1.dcu :
{$IFDEF MSWINDOWS}
uses
Forms,
Unit1 in 'Unit1.pas' {Form1};
{$ELSE}
uses
QForms,
Unit1 in 'Unit1.pas' {Form1};
{$ENDIF}
unit1.pas :
{$IFDEF MSWINDOWS}
uses
Windows, Messages, SysUtils, Variants, Classes,
Graphics, Controls, Forms,
Dialogs, GLWidget, OpenGLx;
{$ELSE}
uses
SysUtils, Variants, Classes, QGraphics, QControls,
QForms,
QDialogs, GLWidget, OpenGLx;
{$ENDIF}
Now, after off course copying the .pas files from
CleanOGL to the samples directory, the project
compiles, but I've still got a problem : it won't run.
The application crashes with a SIGSEGV(11) at a point
that seems to be before any point I can set a
breakpoint at. Thus, even when setting a breakpoint at
the line "Application.Initialize;" in Project1.dcu, the
application crashes before it reaches the breakpoint.
BTW : I believe SIGSEGV(11) means that the program
tries to write to unallocated memory, in case you
didn't know.
I've included the project as it currently is in a
tar.gz file for you, I hope you can help.
Keep up the good work,
Jaap van Wingerden, The Netherlands
Improved example-files with SIGSEGV(11) bug.