Sdl program gets unhandled win32 exception only in Eclipse

Hi all, today I installed Mingw, and successfully compiled the latest SDL,
SDL_image and SDL_mixer. I have also set up Eclipse Europa to build and run
programs linked with SDL and SDL_image. Something strange is happening. When
I run a test program from Eclipse, when the program ends, I get an unhandled
win32 exception error. But I run the same executable from the command line
and it works with no errors and ends successfully. As an experiment, I
thought that maybe my paths were set up different in the command shell than
in Eclipse, so I opened a command prompt, ran my test program just to make
sure it still worked, and it did, then I ran Eclipse from the command
prompt. But still when I run the program in Eclipse, it exists with an
unhandled win32 exception error.
Has anyone seen this behavior before? Do you think maybe this is an SDL
problem or maybe this is just an Eclipse issue (and maybe I should bug
them? :wink:

Thanks!

Jim

Hello !

Hi all, today I installed Mingw, and successfully compiled the latest SDL,
SDL_image and SDL_mixer. I have also set up Eclipse Europa to build and
run
programs linked with SDL and SDL_image. Something strange is happening.
When
I run a test program from Eclipse, when the program ends, I get an
unhandled
win32 exception error. But I run the same executable from the command line
and it works with no errors and ends successfully. As an experiment, I
thought that maybe my paths were set up different in the command shell
than
in Eclipse, so I opened a command prompt, ran my test program just to make
sure it still worked, and it did, then I ran Eclipse from the command
prompt. But still when I run the program in Eclipse, it exists with an
unhandled win32 exception error.
Has anyone seen this behavior before? Do you think maybe this is an SDL
problem or maybe this is just an Eclipse issue (and maybe I should bug
them? :wink:

Please make a screenshot, upload it and post
the link here. What Windows version do you use ?

CU

Please make a screenshot, upload it and post
the link here. What Windows version do you use ?

A backtrace would be more helpful. :slight_smile:

Is it actually crashing in SDL?

–ryan.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ryan C. Gordon wrote:

Please make a screenshot, upload it and post
the link here. What Windows version do you use ?

A backtrace would be more helpful. :slight_smile:

Is it actually crashing in SDL?

–ryan.

Hi guys, well, it turned out to be an issue with Eclipse after all -
sort of. I figured out that Eclipse, for some unknown reason, was
pulling in a different jpeg.dll. A quick search of the hard drive
showed at least 5 different jpeg.dll files, some included with Java,
some for other pieces of software. So, I removed all those others
(after carefully backing them up first :wink: and ran my test program from
Eclipse, and this time it worked. So it would seem that even though I
made sure that the correct paths for Mingw were stored in Eclipse,
Eclipse was still looking elsewhere for shared libraries.

I found another issue, but that I’ll describe in another post so as
not to mangle the subject lines.

Thanks!

Jim

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGmPE0QuDJiZ/QrH0RAibcAJ9XkqwnftiKpZaYhVWnH3vUOdyklgCfbHu2
s8GYtNh8zAbdQLVyh6/qOG0=
=Tb1C
-----END PGP SIGNATURE-----