lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


I'm having a problem using lua and .net. I'm using an unmanaged class with lua in it in a managed .net app. It compiles fine but when calling the first function that uses lua I get the following error:

    An unhandled exception of type 'System.TypeLoadException' occurred in Medusa Editor.exe

    Additional information: Could not load type lua_State from assembly Medusa Editor, Version=1.0.1728.36664,         Culture=neutral, PublicKeyToken=null.

The same class works fine in a fully unmanaged class.

Anyone had this problem before and/or knows how to fix it?

Thanks in advance,

Mathijs Baaijens.