I attempted to create a program to run this demo using the following code:
static class class1
{
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
DemoStart.Run();
}
}
Upon execution, I received an error stating that the SDL.dll was not
found. I copied the dll into the root directory and attempted to run
again. The same thing happened for the SDL_Image.dll so I performed the
same steps for it.
I now receive an error inside the Window.Initialize() method at line 166:
screen = Video.SetVideoMode(size.Width, size.Height, true, true);
The error is as follows:
System.TypeInitializationException was unhandled
Message="The type initializer for 'SdlDotNet.Graphics.Surface' threw an
exception."
Source="SdlDotNet"
TypeName="SdlDotNet.Graphics.Surface"
StackTrace:
at SdlDotNet.Graphics.Surface..ctor(IntPtr handle, Boolean
isVideoMode)
at SdlDotNet.Graphics.Video.SetVideoMode(Int32 width, Int32 height,
Int32 bitsPerPixel, Boolean resizable, Boolean openGL, Boolean fullScreen,
Boolean hardwareSurface, Boolean frame)
at SdlDotNet.Graphics.Video.SetVideoMode(Int32 width, Int32 height,
Boolean resizable, Boolean openGL)
at Graphics2DDotNet.Window.Intialize() in
D:\downloads\SDKs\dotNet\Physics2D.Net\Graphics2DDotNet\Window.cs:line 166
at Physics2DDotNet.Demo.DemoStart.Run() in
D:\downloads\SDKs\dotNet\Physics2D.Net\Physics2DDotNet.Demo\DemoStart.cs:li
ne 111
at Physics2DDotNet.Demo.class1.Main() in
D:\downloads\SDKs\dotNet\Physics2D.Net\Physics2DDotNet.Demo\class1.cs:line
18
at System.AppDomain._nExecuteAssembly(Assembly assembly, String[]
args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence
assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext
executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
This error occured on the latest 2.0 version I downloaded on 6-23-2008.
Original issue reported on code.google.com by ButtCru...@gmail.com on 24 Jun 2008 at 8:06
Original issue reported on code.google.com by
ButtCru...@gmail.com
on 24 Jun 2008 at 8:06