Jump to content

  • Log In with Google      Sign In   
  • Create Account


Sudden E_FAIL graphics initialisation error...


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 CdrTomalak   Members   -  Reputation: 272

Like
0Likes
Like

Posted 01 March 2013 - 04:36 AM

Although this might sound implausible, this morning when compiling my game I got a run-time error: E_FAIL: An undetermined error ocurred (-2147467259).

 

The sequence of code is:

 

			// DirectX DXGI 1.1 factory
			factory1 = new SlimDX.DXGI.Factory1();
			
			// The 1st graphics adapter
			adapter1 = factory1.GetAdapter1(0);

			description = new SlimDX.DXGI.SwapChainDescription()
            {
                BufferCount = 2,
                Usage = SlimDX.DXGI.Usage.RenderTargetOutput,
                OutputHandle = this.Handle,
                IsWindowed = true,
                ModeDescription = new SlimDX.DXGI.ModeDescription(0, 0, new SlimDX.Rational(60, 1), SlimDX.DXGI.Format.R8G8B8A8_UNorm),
                SampleDescription = new SlimDX.DXGI.SampleDescription(1, 0),
                Flags = SlimDX.DXGI.SwapChainFlags.AllowModeSwitch,
                SwapEffect = SlimDX.DXGI.SwapEffect.Discard
            }
			
			SlimDX.Direct3D11.FeatureLevel[] featureLevels = new SlimDX.Direct3D11.FeatureLevel[] { SlimDX.Direct3D11.FeatureLevel.Level_10_1 };
			
			if(debug){MessageBox.Show( "InitialiseGraphics()...2");}
	
			SlimDX.Direct3D11.Device.CreateWithSwapChain(
				adapter1, 
				SlimDX.Direct3D11.DeviceCreationFlags.Debug, 
				featureLevels,
				description, 
				out graphics, 
				out swapChain
			);	

The swapChain creation code is failing, whereas yesterday is was fine. Nothing has been changed here at all, so I'm completely stumped. I've tried changing the feature level back down to 9_1 but this doesn't work. I'm baffled. Any ideas?sad.png



Sponsor:

#2 Yourself   Crossbones+   -  Reputation: 1086

Like
2Likes
Like

Posted 01 March 2013 - 06:26 AM

You use the debug flag and since a windows update, that is not longer supported..

see this topic for a dissucsion (and solutions).



#3 CdrTomalak   Members   -  Reputation: 272

Like
0Likes
Like

Posted 01 March 2013 - 06:51 AM

THANK YOU !!!!!!!!!!!!!!!

 

I thought I was going mad.tongue.png






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS