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

Submitter:  Ovidiu Sabou <ovidiu_s>
Submitted:  Wed 28 Jul 2004 09:07:57 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned 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>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

Follow 2 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2004-08-11 t3rmin4t0r StatusNone Fixed
    Open/ClosedOpen Closed

Back to the top

Powered by Savane 3.15-94dd.
Corresponding source code