Author Topic: cannot run included project  (Read 23215 times)

billybob884

  • Contributor
  • Fanatic
  • **
  • Posts: 355
    • AOL Instant Messenger - billybob884
    • View Profile
cannot run included project
« on: 2007-01-23, 04:42:41 PM »
Hi, hows everyone been? i downloaded the alpha version of sgdk2 and it opens up the shfl project file fine, but when i go to run the project, it brings up a blank window and an error message saying: Error while opening the display: Error in the application.
Ive tried redownloading and reinstalling sgdk, but to no avail.
"In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move." :: Hitchhiker's Guide to the Galaxy

Jam0864

  • Contributor
  • Fanatic
  • **
  • Posts: 744
    • MSN Messenger - marmalade0864@hotmail.com
    • View Profile
    • Jam0864's Content Dump
    • Email
Re: cannot run included project
« Reply #1 on: 2007-01-23, 11:10:53 PM »
I cannot run the included project either. but for a different reason. When I try to run the project I get a log viewer window inside SGDK2 which says
SHFL\MapBase.cs(65,16) : warning CS0162: Unreachable code detected
SHFL\Controls.cs(51,10) : warning CS0162: Unreachable code detected
SHFL\fmodbase.cs(82,10) : warning CS0168: The variable 'ex' is declared but never used
SHFL\TileSpecialization.cs(11,19) : warning CS0169: The private field 'CustomObjects.TileSpecialization.state' is never used
error CS0016: Could not write to output file 'c:\Program Files\SGDK2\Library\Projects\SHFL\SHFL.exe' -- 'The process cannot access the file because it is being used by another process. '


bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2761
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
Re: cannot run included project
« Reply #2 on: 2007-01-24, 06:32:51 AM »
Jam0864, it looks like you just ran the project twice without closing it in between.  The first time you ran it, it created the SHFL folder and the EXE file, but you didn't see it run for whatever reason, so you tried to run it again, but it was already running so it couldn't overwrite the EXE file.  Do you have SHFL.exe where it says you have one?  What happens when you run it?

billybob884, it sounds like you have the same problem as eric2222.  I'm looking into this.  It might help if you could do this:
1. Run dxdiag.exe (Select "Run" from the start menu and type dxdiag.exe, then click OK).
2. Click on the "Display" tab
3. Tell me everything that shows up in the "Drivers" frame, and the Name, Manufacturer and Chip Type from the "Device" frame.

Eric2222, if you could do the same, I'd appreciate it.

eric22222

  • Fanatic
  • ***
  • Posts: 177
    • View Profile
    • Eric Online
    • Email
Re: cannot run included project
« Reply #3 on: 2007-01-24, 07:30:26 AM »
Name: Mobile Intel(R) 915GM/GMS, 910GML Express
Manufacturer: Intel Corporation
Chip Type: Intel(R) 915GM/GMS, 910GML Express Chipset

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2761
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
Re: cannot run included project
« Reply #4 on: 2007-01-24, 04:29:46 PM »
And what about the contents of the "Drivers" frame?

I went to see if there were updated video drivers for your video hardware and found some astonishingly recent drivers that you almost certainly don't have.  They were apparently released last week, so you might want to go to Intel's web site, download these latest drivers, and see if this changes the behavior of SGDK2.
« Last Edit: 2007-01-24, 04:38:33 PM by bluemonkmn »

Jam0864

  • Contributor
  • Fanatic
  • **
  • Posts: 744
    • MSN Messenger - marmalade0864@hotmail.com
    • View Profile
    • Jam0864's Content Dump
    • Email
Re: cannot run included project
« Reply #5 on: 2007-01-24, 05:33:42 PM »
Yes SHFL.exe is where it says it is. I restarted the computer and reopened SGDK2 and I got

Application has generated an exception that could not be handled.

Process id=Oxdfc (3580), Thread id=0xe00 (3584).

Click ok to terminate the application.
Click cancel to debug the application.

Restarting my computer must have deleted SHFL.exe

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2761
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
Re: cannot run included project
« Reply #6 on: 2007-01-24, 05:45:19 PM »
Jam0864, are you able to use the map editor?

billybob884

  • Contributor
  • Fanatic
  • **
  • Posts: 355
    • AOL Instant Messenger - billybob884
    • View Profile
Re: cannot run included project
« Reply #7 on: 2007-01-24, 08:39:12 PM »
heres a screenshot (lol sry, im lazy)
"In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move." :: Hitchhiker's Guide to the Galaxy

eric22222

  • Fanatic
  • ***
  • Posts: 177
    • View Profile
    • Eric Online
    • Email
Re: cannot run included project
« Reply #8 on: 2007-01-24, 10:05:54 PM »
Drivers frame:
Main Driver: igxprd32.dll
Version: 6.14.0010.4764 (English)
Date: 1/13/2007 10:33:00
WHQL Logo'd: Yes
Mini VDD: n/a
DDI Version: 9 (or higher)

Jam0864

  • Contributor
  • Fanatic
  • **
  • Posts: 744
    • MSN Messenger - marmalade0864@hotmail.com
    • View Profile
    • Jam0864's Content Dump
    • Email
Re: cannot run included project
« Reply #9 on: 2007-01-25, 01:05:03 AM »
Jam0864, are you able to use the map editor?
Yes, and It's pretty cool.

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2761
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
Re: cannot run included project
« Reply #10 on: 2007-01-25, 07:09:01 AM »
Those who are having errors with the map editor must be having errors because the display is not being created with the correct parameters.  I'm not sure how to figure that out at the moment.  I downloaded the latest DirectX SDK and am trying to figure out how to properly use DirectX.  I thought I was, but apparently not.  Any help is appreciated, if there are any DirectX experts out there.

If you *can* use the map editor but can't run the sample project, then something else is probably wrong.  Jam0864, what happens if you run the sample project in debug mode and click "Cancel" to debug when it offers?  If it says you need a debugger, you might have to download the .NET Framework SDK 1.1, but that's a rather large download (100+ MB).  If that's not worth your while, we'll have to find other ways to investigate the problem.  One thing you could try without downloading the .NET SDK is adding a few lines of code to the sample project to get more detail about the error.
  • Load the sample project into the IDE, and Open the "SourceCode" folder
  • Open the "GameForm.cs" file
  • Find "public void Run()"
  • Insert a new line between the "{" and the "int coopCode;":
    try {
  • Find "GameDisplay.Device.Present();".  There should be three "}" within the following 4 lines.  Before the last one add this (noting that the first "}" should correspond to the "{" added after the try above):
    }
    catch(System.Exception ex)
    {
       MessageBox.Show(ex.ToString());
    }

After you add that, try running the project again and see if it gives you more detail about the error.

Jam0864

  • Contributor
  • Fanatic
  • **
  • Posts: 744
    • MSN Messenger - marmalade0864@hotmail.com
    • View Profile
    • Jam0864's Content Dump
    • Email
Re: cannot run included project
« Reply #11 on: 2007-01-25, 07:30:44 AM »
I got,

SHFL\MapBase.cs(65,16) : warning CS0162: Unreachable code detected
SHFL\Controls.cs(51,10) : warning CS0162: Unreachable code detected
SHFL\GameForm.cs(210,5) : error CS1003: Syntax error, 'try' expected
SHFL\fmodbase.cs(82,10) : warning CS0168: The variable 'ex' is declared but never used

I am guessing Unreachable code detected means I stuffed up putting this new code in. I am tired and can't concentrate properly right now so that is likely. (especialy when looking at lots of small writing in all different colours that I don't understand! LOL!!!) I'll try again tomorrow.

billybob884

  • Contributor
  • Fanatic
  • **
  • Posts: 355
    • AOL Instant Messenger - billybob884
    • View Profile
Re: cannot run included project
« Reply #12 on: 2007-01-25, 07:46:40 AM »
well Jam, either u did it right, or we both did it wrong the same way:

Quote
SHFL\MapBase.cs(65,16) : warning CS0162: Unreachable code detected
SHFL\Controls.cs(51,10) : warning CS0162: Unreachable code detected
SHFL\GameForm.cs(210,2) : error CS1003: Syntax error, 'try' expected
SHFL\fmodbase.cs(82,10) : warning CS0168: The variable 'ex' is declared but never used
"In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move." :: Hitchhiker's Guide to the Galaxy

Jam0864

  • Contributor
  • Fanatic
  • **
  • Posts: 744
    • MSN Messenger - marmalade0864@hotmail.com
    • View Profile
    • Jam0864's Content Dump
    • Email
Re: cannot run included project
« Reply #13 on: 2007-01-25, 07:52:11 AM »
Well, we must have done it right then. Very surprising as I could barely read the writing. I don't have very good sight, especially when it's dark and I'm tired. look at the hompage for the forum Most Online Ever: 53 that is like double what it was a month ago. Must be due to SGDK2 alpha release. Imagine when SGDK2 is completely finished!
« Last Edit: 2007-01-25, 07:57:44 AM by Jam0864 »

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2761
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
Re: cannot run included project
« Reply #14 on: 2007-01-25, 10:42:20 AM »
Maybe my instructions weren't clear.  Did you add a line that says "try {" where I said to?

And do the last few lines of that function look line this?
Code: [Select]
         }
         Application.DoEvents();
      }
   }
   catch(System.Exception ex)
   {
      MessageBox.Show(ex.ToString());
   }
}
« Last Edit: 2007-01-25, 10:49:04 AM by bluemonkmn »