Serious Problem with FXGLContext (upgrading from Fox 1.7.13 to Fox 1.7.19)

View: New views
2 Messages — Rating Filter:   Alert me  

Serious Problem with FXGLContext (upgrading from Fox 1.7.13 to Fox 1.7.19)

by pof-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Jeroen,

I'm trying to upgrade my application from Fox1.7.13 to Fox1.7.19 and I
end up having some serious problems...
First, let me give some detail of the application core (developed with
MS Visual C++ 8 in Visual Studio 2005), which I think is based on a
classical design for Fox application.

----------------------------------------------------------
int main( int argc, char *argv[] )
{
    MyApp application(); // Make application
    application.init(argc, argv); // Open the display  
    MyMainWindow *win = new MyMainWindow(&application); // Make window
    application.create(); // Create application
    win->show(PLACEMENT_MAXIMIZED); // Show the main window in
fullscreen mode
    return application.run(); // Run the application
}
where :
- the class MyApp is derived from FXApp
- the class MyMainWindow is derived from FXMainWindow, and this class
contains a pointer to a class derived from FXGLCanvas.
----------------------------------------------------------

In any case Anyway, everything was going well up to Fox 1.7.13.
No I'm trying to upgrade to Fox1.7.19, and apart a slight modification
(VISUAL_DOUBLEBUFFER replaced by VISUAL_DOUBLE_BUFFER), all I can say is
that the code compiles and link fine.

The problem appears when I try executing the program:
- on the computer I use for development, everything runs well
- but on some other computers (to be honest not all, on some it works,
on some others it does not), the programm just crashes right from the
begining (unhandled exception). The curious things is that on these same
computers (all under Windows OS), the code compiled and linked with
Fox1.7.13 works perfectly well in all cases.
So something must be wrong somewhere.

I then installed Visual Studio on a computer under which the new code
(i.e. compiled and linked with Fox1.7.19) crashes to see where the
problem could come from. Running the whole thing in debug mode and
looking in the call stack after crash leads me to:
-line 115 of fxexception.h :
    FXWindowException(const FXchar *msg):FXResourceException(msg)) {}
-line 113 of fxglcontext.h :
throw FXWindowException("unable to create GL window");

As I know the GL stuff has been modified quite deeply from Fox1.7.14, I
suspect this could be the origin of the problem.
What is you opinion about it, and have you any idea where this could
comes from?
Thanks,
JD


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Foxgui-users mailing list
Foxgui-users@...
https://lists.sourceforge.net/lists/listinfo/foxgui-users

Re(SOLVED): Serious Problem with FXGLContext (upgrading from Fox 1.7.13 to Fox 1.7.19)

by pof-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Just for the record, replacing:
    VISUAL_DOUBLEBUFFER
by:
    VISUAL_DOUBLE_BUFFER|VISUAL_WINDOW
solved the problem!

The problem was actually only occuring on GL Version 2.1 and above,
for GL Version 2.0 it worked without adding VISUAL_WINDOW.

So now comes the time for me to enjoy the new developements/fixes
introduced in Fox after version 1.7.13
Cheers

pof wrote :

> Hi Jeroen,
>
> I'm trying to upgrade my application from Fox1.7.13 to Fox1.7.19 and I
> end up having some serious problems...
> First, let me give some detail of the application core (developed with
> MS Visual C++ 8 in Visual Studio 2005), which I think is based on a
> classical design for Fox application.
>
> ----------------------------------------------------------
> int main( int argc, char *argv[] )
> {
>    MyApp application(); // Make application
>    application.init(argc, argv); // Open the display     MyMainWindow
> *win = new MyMainWindow(&application); // Make window
>    application.create(); // Create application
>    win->show(PLACEMENT_MAXIMIZED); // Show the main window in
> fullscreen mode
>    return application.run(); // Run the application
> }
> where :
> - the class MyApp is derived from FXApp
> - the class MyMainWindow is derived from FXMainWindow, and this class
> contains a pointer to a class derived from FXGLCanvas.
> ----------------------------------------------------------
>
> In any case Anyway, everything was going well up to Fox 1.7.13.
> No I'm trying to upgrade to Fox1.7.19, and apart a slight modification
> (VISUAL_DOUBLEBUFFER replaced by VISUAL_DOUBLE_BUFFER), all I can say
> is that the code compiles and link fine.
>
> The problem appears when I try executing the program:
> - on the computer I use for development, everything runs well
> - but on some other computers (to be honest not all, on some it works,
> on some others it does not), the programm just crashes right from the
> begining (unhandled exception). The curious things is that on these
> same computers (all under Windows OS), the code compiled and linked
> with Fox1.7.13 works perfectly well in all cases.
> So something must be wrong somewhere.
>
> I then installed Visual Studio on a computer under which the new code
> (i.e. compiled and linked with Fox1.7.19) crashes to see where the
> problem could come from. Running the whole thing in debug mode and
> looking in the call stack after crash leads me to:
> -line 115 of fxexception.h :
>    FXWindowException(const FXchar *msg):FXResourceException(msg)) {}
> -line 113 of fxglcontext.h :
> throw FXWindowException("unable to create GL window");
>
> As I know the GL stuff has been modified quite deeply from Fox1.7.14,
> I suspect this could be the origin of the problem.
> What is you opinion about it, and have you any idea where this could
> comes from?
> Thanks,
> JD
>
>


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Foxgui-users mailing list
Foxgui-users@...
https://lists.sourceforge.net/lists/listinfo/foxgui-users