Breaking into a program before the main function

2003-05-31 Thread Tron Thomas
I am writing a Win32 application using the Cygwin development tools. I have a problem in that the program dies immediately when I try to run it. I've tried debugging the program using GDB. I set a breakpoint at the beginning of the main function (WinMain). The program exits with a return co

Re: Sementation fault in OpenGL application

2003-03-24 Thread Tron Thomas
x27;s my impression that if that was the case, you would've heard from that person already. So I'm recommending you don't hold your breath waiting for that nice, simple solution to come your way. ;-) Larry Original Message: - From: Tron Thomas [EMAIL PROTECTED] Da

Sementation fault in OpenGL application

2003-03-23 Thread Tron Thomas
Earlier I had posted a message concerning I segmentation fault I get when I build an OpenGL application using the GCC compiler on Cygwin. I have since discovered that the debugger spits out some information when the segmentation fault occurs. The is what it says: Program received signal SIGSE

Re: Segmentation fault using OpenGL

2003-03-21 Thread Tron Thomas
XTURE_2D, 0); ::glDeleteTextures(1, &g_nTexture); ::wglMakeCurrent(NULL, NULL); ::wglDeleteContext(g_hContext); } It is trying to test the DevIL image library. Reid Thompson wrote: posting the code might get someone interested in looking at the issue -- thanks, reid -Origina

Segmentation fault using OpenGL

2003-03-21 Thread Tron Thomas
I have written a Windows OpenGL program which I can successfully build and run using both the Borland and Microsoft compilers. When I try to run the same program after building it with the Cygwin GCC compiler, I get a segmentation fault. I'm very puzzled by this as the program works fine when

Re: Invalid compiler error

2003-03-20 Thread Tron Thomas
some circumstances it might work, and in others it won't. Probably best to avoid it since it is unreliable. Thank you. Robert Collins wrote: On Fri, 2003-03-21 at 08:01, Tron Thomas wrote: I'm sorry. I misread what you wrote. I thought you were suggesting that I try the #elif dire

Re: Invalid compiler error

2003-03-20 Thread Tron Thomas
. I suppose I could try changing the code to what you actually suggested and see if that works. Max Bowsher wrote: Tron Thomas wrote: Earlier, I tried almost exactly what you suggested before posting my question, and it worked fine with the Cygwin compiler. Would it be helpful if I actually

Re: Invalid compiler error

2003-03-20 Thread Tron Thomas
Earlier, I tried almost exactly what you suggested before posting my question, and it worked fine with the Cygwin compiler. Would it be helpful if I actually provided the headers the library is using? Max Bowsher wrote: Tron Thomas wrote: I wrote a simple program to test an open source

Invalid compiler error

2003-03-20 Thread Tron Thomas
I wrote a simple program to test an open source library I am planning to use in a development project. I want the project to be supported on different compilers, including the GCC compiler included with Cygwin. I have been able to successfully build my test application using the Micrsoft and