unexpected error

Jan 7, 2009 at 9:19 AM

I tried running your programs but I got an unexpected error with both the formcontrol program and the cell_hunter program.

The error occured in both programs at the following line:

gDevice = new GraphicsDevice(GraphicsAdapter.DefaultAdapter,
The exception does not give more information than this message "An unexpected error has occurred.".

Also the included cell_hunter executable doesn't work and gives the same error.

I downloaded the latest xna 3.0 framework and directx drivers. Other xna programs do run on my computer.

I really want to have a look at your program so I hope you'll find a solution.

Jan 8, 2009 at 1:24 AM
Hi Robert,
    The StiLib is in the stage that may just work in my lab computer,because some parameters was acknowledged as default, i am working on it to make it more general and flexible.

  The "form control" is my first test of xna , it's the copy of  "winforms series 1" on xna creators club, try download the original,and see if it works .
and the "cell_hunter" is optimized for my lab computer , it's graphics default is----hardware device , nonmaskable multisampling, quality 2

  you can use the source code to modify the default settings.          
Jan 8, 2009 at 9:06 AM
Hi Alex,

I found the solution.
I had to comment the following lines:

 /*presentPara.BackBufferCount = 1;
            presentPara.PresentationInterval = PresentInterval.One;
            presentPara.MultiSampleQuality = 2;
            presentPara.MultiSampleType = MultiSampleType.NonMaskable;*/

My graphics card probably couldn't handle these settings.