Post

 Resources 

Console

Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 VBGamer
 VBGamer
 GraphicsPermission error
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Knoton
Squire

USA
10 Posts

Posted - May 24 2006 :  11:06:05 AM  Show Profile  Reply with Quote
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  Show Profile  Reply with Quote
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.

Go to Top of Page

Eric Coleman
Gladiator

USA
811 Posts

Posted - May 27 2006 :  9:09:56 PM  Show Profile  Visit Eric Coleman's Homepage  Reply with Quote
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"
Go to Top of Page

Knoton
Squire

USA
10 Posts

Posted - May 28 2006 :  09:09:10 AM  Show Profile  Reply with Quote
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
Go to Top of Page

Eric Coleman
Gladiator

USA
811 Posts

Posted - May 28 2006 :  8:29:32 PM  Show Profile  Visit Eric Coleman's Homepage  Reply with Quote
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
Go to Top of Page

Knoton
Squire

USA
10 Posts

Posted - May 28 2006 :  10:10:23 PM  Show Profile  Reply with Quote
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.
Go to Top of Page

Knoton
Squire

USA
10 Posts

Posted - May 28 2006 :  10:34:53 PM  Show Profile  Reply with Quote
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.

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
VBGamer © Go To Top Of Page
This page was generated in 0.09 seconds. Snitz Forums 2000

Copyright © 2002 - 2004 Eric Coleman, Peter Kuchnio , et. al.