bugDotGNU Portable.NET - Bugs: bug #9805, SDL&OpenGL project fails at...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #9805: SDL&OpenGL project fails at runtime with VerificationException

Submitted by:  Ovidiu Sabou <ovidiu_s>
Submitted on:  Wed 28 Jul 2004 09:07:57 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Wed 28 Jul 2004 09:07:57 PM UTC, original submission:

We are working on an OpenGL application and we're using Tao.OpenGl and Tao.Sdl for access to those libraries. I have been using mono so far and wanted to try out pnet. The project compiles fine (we have a library and a demo executable for it)
After i compile Tao.Sdl and Tao.OpenGl with pnet and then my project, if i try to run it, this is what happens:

ovidiu@ovibox:~/Projects/Alpha$ ilrun Demo.exe
Demo::Main [2084] - ldarg.0 at verify_var.c:78
Uncaught exception: System.Security.VerificationException: Could not verify the code

ovidiu@ovibox:~/Projects/Alpha$

I get the same error if i compile Tao in mono or pnet.
it runs ok under mono no matter which compiler i used for building Tao(compiling on pnet and running on mono doesn't work also but that's not a problem for me since i cannot even run it with ilrun).

If i compile the project in mono and try to run with ilrun:

ovidiu@ovibox:~/Projects/Alpha$ ilrun Demo.exe
metadata error in token 0x0A000002: invalid MemberRef type signature
metadata error in token 0x0A000005: invalid MemberRef type signature
metadata error in token 0x0A00000A: invalid MemberRef type signature
<etc>
metadata error in token 0x0A00005F: invalid MemberRef type signature
Demo.exe: invalid metadata in image
ovidiu@ovibox:~/Projects/Alpha$

the commands used to compile my projects are these(to get an idea about the structure):

ovidiu@ovibox:~/Projects/Alpha$ make -f Makefile.pnet
cscc -g -lTao.OpenGl -lTao.Sdl -lSystem.Drawing Alpha/FrameWork/OpenGL.cs Alpha/FrameWork/SdlWindow.cs Alpha/FrameWork/Application.cs Alpha/Image/Texture.cs Alpha/Image/Font.cs Alpha/UI/UIBase.cs Alpha/UI/Style.cs Alpha/UI/Widget.cs Alpha/UI/Container.cs Alpha/UI/Window.cs Alpha/UI/Box.cs Alpha/UI/Button.cs Alpha/UI/EditBox.cs Alpha/UI/GameView.cs Alpha/UI/Label.cs Alpha/UI/Scrollbar.cs Alpha/UI/TextBox.cs Alpha/UI/TextView.cs Alpha/Map/GameMap.cs Alpha/Map/HeightMap.cs Alpha/Game/Game.cs Alpha/Game/GameData.cs Alpha/Game/UnitType.cs Alpha/Game/Order.cs Alpha/Game/Unit.cs Alpha/Game/Pathfinder.cs Alpha/Game/GameState.cs -shared -o Alpha.dll
cscc -g -lAlpha.dll -lSystem.Drawing Demo/Main.cs Demo/GameData.cs Demo/Menu.cs Demo/GameScreen.cs Demo/UITestGround.cs -o Demo.exe
ovidiu@ovibox:~/Projects/Alpha$

if you want to get the sourcecode:
svn co svn://repnet.homeunix.org/Alpha

Ovidiu Sabou <ovidiu_s>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Wed 11 Aug 2004 02:28:24 PM UTCt3rmin4t0rStatusNone=>Fixed
  Open/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1