Knoton
Squire
USA
10 Posts |
Posted - May 24 2006 : 11:06:05 AM
|
in my code which worked a little while ago when I try to create a new device i get a Microsoft.DirectX.Security.GraphicsPermission error on Gfxcard = New Device why is this? |
|
Knoton
Squire
USA
10 Posts |
Posted - May 27 2006 : 12:41:33 PM
|
would I be more likely to get a response if I posted the rest of my code? Also I copied the whole of my code into a new project added the references again and it worked, for a while. Then all of a sudden the error comes up again. This has happened twice and really slows down my work if I have to make a new project ever time I get this error.
|
|
|
Eric Coleman
Gladiator
USA
811 Posts |
Posted - May 27 2006 : 9:09:56 PM
|
code will help, but the problem sounds really strange. you can post attachments by clicking the "Reply To Topic" link and then "upload a file" |
|
|
Knoton
Squire
USA
10 Posts |
Posted - May 28 2006 : 09:09:10 AM
|
Well here's the project folder, I just zipped it up because I wasn't sure what you'd need. To get it to work youll have to change the path for the bitmaps, which are in the resources folder. The full error info is: TypeLoadException was unhandled Could not load type 'Microsoft.DirectX.Security.GraphicsPermission' from assembly 'Microsoft.DirectX, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
Download Attachment: DxMario.zip 83.52 KB |
|
|
Eric Coleman
Gladiator
USA
811 Posts |
Posted - May 28 2006 : 8:29:32 PM
|
I get errors when trying to build your code. I don't know how to fix the build errors, so I'm not able to help you, sorry.
If you're interested in the error I get, it's this
Warning 1 Found conflicts between different versions of the same dependent assembly. DxMario Error 2 'Private Sub InitializeComponent()' has multiple definitions with identical signatures. ...\DxMario\Engine.Designer.vb 21 17 DxMario
|
|
|
Knoton
Squire
USA
10 Posts |
Posted - May 28 2006 : 10:10:23 PM
|
Ok, I think I have it figured out, I looked up the first error and it seems that if you have 2 different versions of the same reference it doesn't work. For my directx reference I used 2.0.0.0, but for the directx.directdraw and directx.directinput i used 1.0.2092.0 so that was the problem. I am now using the same version for everything so it should work. Thanks for all your help. |
|
|
Knoton
Squire
USA
10 Posts |
Posted - May 28 2006 : 10:34:53 PM
|
Yes, it seems to be working now, except it won't display my background image. For some reason it just hangs. I'll post that problem in a new thread once I figure out some more.
|
|
|