Multiple SDL Apps on Windows

I have a bit of a strange problem with version 1.12 of SDL on Windows (XP SP2
Home & Pro) I’d appreciate some advice on. I have a number of small
applications which I have written on Linux which, when run open an SDL window
using SDL_SetVideoMode. Under Linux I can run two or more of them at once
without a problem.

However when I build these for Windows using mingw, I can open one of these
applications, but any subsequent ones I try to open once the first one is
running all freeze at the SDL_SetVideoMode stage.

My question is, is this expected behaviour? Is it only possible to run one SDL
based application that uses video at a time on the Windows platform?

I’ve tested it on a number of different XP systems, all with different video
cards and I get the same result.

Thanks in advance for any help,
Mark

Hi Mark,

Yes, sadly this is a known issue with SDL 1.x.

I think (not sure) this will be resolved on SDL 1.3

Regards
Ed> ----- Original Message -----

From: newsgroup@software13.co.uk (Mark)
To: sdl at libsdl.org
Sent: Friday, 15 February, 2008 6:16:02 PM
Subject: [SDL] Multiple SDL Apps on Windows

I have a bit of a strange problem with version 1.12 of SDL on Windows (XP SP2
Home & Pro) I’d appreciate some advice on. I have a number of small
applications which I have written on Linux which, when run open an SDL window
using SDL_SetVideoMode. Under Linux I can run two or more of them at once
without a problem.

However when I build these for Windows using mingw, I can open one of these
applications, but any subsequent ones I try to open once the first one is
running all freeze at the SDL_SetVideoMode stage.

My question is, is this expected behaviour? Is it only possible to run one SDL
based application that uses video at a time on the Windows platform?

I’ve tested it on a number of different XP systems, all with different video
cards and I get the same result.

Thanks in advance for any help,
Mark


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

  ___________________________________________________________

Support the World Aids Awareness campaign this month with Yahoo! For Good http://uk.promotions.yahoo.com/forgood/

“Mark” wrote in message
news:loom.20080215T181010-715 at post.gmane.org

I have a bit of a strange problem with version 1.12 of SDL on Windows (XP
SP2
Home & Pro) I’d appreciate some advice on. I have a number of small
applications which I have written on Linux which, when run open an SDL
window
using SDL_SetVideoMode. Under Linux I can run two or more of them at once
without a problem.

However when I build these for Windows using mingw, I can open one of
these
applications, but any subsequent ones I try to open once the first one is
running all freeze at the SDL_SetVideoMode stage.

Freeze or return an error?
I mean: Is it possible to check for this on a windows system?

I have a bit of a strange problem with version 1.12 of SDL on Windows (XP
SP2 Home & Pro) I’d appreciate some advice on. I have a number of small
applications which I have written on Linux which, when run open an SDL
window using SDL_SetVideoMode. Under Linux I can run two or more of them
at once without a problem.

An excellent reason to use Linux and not Windows :wink:

However when I build these for Windows using mingw, I can open one of these
applications, but any subsequent ones I try to open once the first one is
running all freeze at the SDL_SetVideoMode stage.

Are you compiling on Windows or cross-compiling the Windows executable on
Linux? I’ve had no problem building multiple-window applications for Windows
by cross-compiling on Linux.

JeffOn Fri February 15 2008 10:16, Mark wrote:

I have a bit of a strange problem with version 1.12 of SDL on Windows (XP SP2
Home & Pro) I’d appreciate some advice on. I have a number of small
applications which I have written on Linux which, when run open an SDL window
using SDL_SetVideoMode. Under Linux I can run two or more of them at once
without a problem.

However when I build these for Windows using mingw, I can open one of these
applications, but any subsequent ones I try to open once the first one is
running all freeze at the SDL_SetVideoMode stage.

Weird, I’ve never seen that. Are they windowed? Does it happen with the
SDL test programs?

See ya,
-Sam Lantinga, Lead Software Engineer, Blizzard Entertainment