giguere@csg.waterloo.edu (Eric Giguere) (03/05/91)
I've got an application that Windows doesn't want to run two or more times simultaneously. As soon as I start one copy, trying to start a second copy always gives me an "Application Execution Error" saying that I can't run multiple copies. Yet I've compiled with multiple data segments. And it's not even calling the WinMain procedure, so checking hPrevInstance doesn't do anything.... Any ideas as to what else could be wrong here? -- Eric Giguere giguere@csg.UWaterloo.CA Quoth the raven: "Eat my shorts!" --- Poe & Groening
giguere@csg.uwaterloo.ca (Eric Giguere) (03/05/91)
Well, forget that last posting. As it turns out, the application I'm converting from DOS to Windows stuffs some read-only data into its code segment, which apparently Windows considers a no-no. Anyhow, I'm taking out the data (strings) and converting them into resources... -- Eric Giguere giguere@csg.UWaterloo.CA Quoth the raven: "Eat my shorts!" --- Poe & Groening
bonneau@hyper.hyper.com (Paul Bonneau) (03/05/91)
In article <1991Mar4.190749.607@maytag.waterloo.edu> giguere@csg.waterloo.edu (Eric Giguere) writes: >I've got an application that Windows doesn't want to run two or more times >simultaneously. As soon as I start one copy, trying to start a second >copy always gives me an "Application Execution Error" saying that I >can't run multiple copies. Yet I've compiled with multiple data segments. >And it's not even calling the WinMain procedure, so checking hPrevInstance >doesn't do anything.... Any ideas as to what else could be wrong here? > Make sure you are compiling with the medium memory model switch (/AM for Microsoft C). You are only allowed one instance of a large memory model (ie. fixed data segment) application. cheers - Paul Bonneau.