Post

 Resources 

Console

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

 All Forums
 VBGamer
 VBGamer
 GraphicsPermission error

Note: You must be registered in order to post a reply.

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List Spell Checker
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

   Insert an File
Check here to include your profile signature.
Check here to subscribe to this topic.
    

T O P I C    R E V I E W
Knoton 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?
6   L A T E S T    R E P L I E S    (Newest First)
Knoton 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.
Knoton 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.
Eric Coleman 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 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 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 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.

VBGamer © Go To Top Of Page
This page was generated in 0.08 seconds. Snitz Forums 2000

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