Click here to Skip to main content
15,895,746 members
Home / Discussions / C#
   

C#

 
AnswerRe: 'Microsoft.Jet.OLEDB.4.0' provider is not registered Pin
Christian Graus12-May-08 18:42
protectorChristian Graus12-May-08 18:42 
GeneralRe: 'Microsoft.Jet.OLEDB.4.0' provider is not registered Pin
sumanshakya12-May-08 18:49
sumanshakya12-May-08 18:49 
GeneralRe: 'Microsoft.Jet.OLEDB.4.0' provider is not registered Pin
Abhijit Jana12-May-08 18:59
professionalAbhijit Jana12-May-08 18:59 
QuestionNew to C# Pin
kishorekumar.malla@live.com12-May-08 17:47
kishorekumar.malla@live.com12-May-08 17:47 
AnswerRe: New to C# Pin
Christian Graus12-May-08 17:53
protectorChristian Graus12-May-08 17:53 
AnswerRe: New to C# Pin
MarkB77712-May-08 20:36
MarkB77712-May-08 20:36 
AnswerRe: New to C# Pin
ssclaire13-May-08 3:39
ssclaire13-May-08 3:39 
QuestionDirectX Crashes in FullScreen, or without Visual Studio Pin
Expert Coming12-May-08 17:24
Expert Coming12-May-08 17:24 
Two things make this a huge headache to solve. One problem is that when I get the error, it doesn't tell me when it occurs all the time. The other, I can't debug without Visual Studio very well.

Now, the error I get is an Access_Violation. I only know what line of code this occurs at if I try to run in fullscreen.

Here is the relavent code:
private void CreateDevice(Control Target)<br />
    {<br />
        //Use the system default adapter<br />
        int iAdapter = Manager.Adapters.Default.Adapter;<br />
<br />
        //Set up the presentation parameters<br />
        presentparameters = new PresentParameters();<br />
        #if DEBUG<br />
        presentparameters.Windowed = true;<br />
        #else<br />
        presentparameters.Windowed = false;<br />
        presentparameters.BackBufferCount = 1;<br />
        presentparameters.BackBufferWidth = 800;<br />
        presentparameters.BackBufferHeight = 600;<br />
        presentparameters.BackBufferFormat = Manager.Adapters.Default.CurrentDisplayMode.Format;<br />
        Target.Cursor.Dispose();<br />
        #endif<br />
        presentparameters.SwapEffect = SwapEffect.Discard;<br />
        presentparameters.PresentationInterval = PresentInterval.Immediate;<br />
<br />
        //Creation flags;<br />
        CreateFlags flags;<br />
        //See if we can use hardware vertex processing<br />
        Caps caps = Manager.GetDeviceCaps(iAdapter, DeviceType.Hardware);<br />
        if (caps.DeviceCaps.SupportsHardwareTransformAndLight)<br />
        {<br />
            flags = CreateFlags.HardwareVertexProcessing;<br />
        }<br />
        else<br />
        {<br />
            flags = CreateFlags.SoftwareVertexProcessing;<br />
        }<br />
<br />
        //Check support once more<br />
        if (caps.DeviceCaps.SupportsPureDevice)<br />
        {<br />
            flags = flags | CreateFlags.PureDevice;<br />
        }<br />
<br />
        //Create the actual device<br />
        //ERROR HERE<br />
        device = new Device(iAdapter, DeviceType.Hardware, Target, flags, presentparameters);<br />
<br />
        //Hook up the device resizing event<br />
        device.DeviceResizing += new System.ComponentModel.CancelEventHandler(OnDeviceResizing);<br />
    }


Thanks for any help, feel free to ask for more code if you need it.

The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo

AnswerRe: DirectX Crashes in FullScreen, or without Visual Studio Pin
MarkB77712-May-08 20:30
MarkB77712-May-08 20:30 
QuestionThreading issues when updating GUI Pin
Jergosh12-May-08 14:12
Jergosh12-May-08 14:12 
AnswerRe: Threading issues when updating GUI Pin
Christian Graus12-May-08 14:27
protectorChristian Graus12-May-08 14:27 
AnswerRe: Threading issues when updating GUI Pin
S. Senthil Kumar12-May-08 21:07
S. Senthil Kumar12-May-08 21:07 
GeneralRe: Threading issues when updating GUI Pin
Jergosh12-May-08 22:03
Jergosh12-May-08 22:03 
Questioncsc not recognised Pin
techie_kuldeep12-May-08 10:22
techie_kuldeep12-May-08 10:22 
AnswerRe: csc not recognised Pin
Ennis Ray Lynch, Jr.12-May-08 10:42
Ennis Ray Lynch, Jr.12-May-08 10:42 
AnswerRe: csc not recognised Pin
Abhijit Jana12-May-08 19:02
professionalAbhijit Jana12-May-08 19:02 
QuestionTest is a form is closed Pin
baranils12-May-08 10:14
baranils12-May-08 10:14 
AnswerRe: Test is a form is closed [modified] Pin
Anthony Mushrow12-May-08 10:36
professionalAnthony Mushrow12-May-08 10:36 
GeneralRe: Test is a form is closed Pin
baranils12-May-08 18:58
baranils12-May-08 18:58 
AnswerRe: Test is a form is closed Pin
Christian Graus12-May-08 12:08
protectorChristian Graus12-May-08 12:08 
Questionint[] reference issue Pin
shamidi12-May-08 9:43
shamidi12-May-08 9:43 
AnswerRe: int[] reference issue Pin
Ed.Poore12-May-08 10:13
Ed.Poore12-May-08 10:13 
GeneralRe: int[] reference issue Pin
shamidi12-May-08 10:33
shamidi12-May-08 10:33 
GeneralRe: int[] reference issue Pin
Ed.Poore12-May-08 12:28
Ed.Poore12-May-08 12:28 
AnswerRe: int[] reference issue Pin
#realJSOP12-May-08 10:16
mve#realJSOP12-May-08 10:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.