Page 1 of 1

Error on execute a simple test with VB.NET

Posted: Fri Mar 23, 2007 4:11 am
by mcunha98
Using this simple code...

Code: Select all

Imports System
Imports System.IO
Imports Irrlicht
Imports Irrlicht.Video
Imports Irrlicht.Core
Imports Irrlicht.Scene

Module Module1
    Sub Main()
        Dim mDevice As New IrrlichtDevice(Video.DriverType.OPENGL, New Dimension2D(1024, 768), 32, False, True, False)
        Dim mDebug As System.IO.TextWriter

        mDebug = Console.Out

        If (mDevice Is Nothing) Then
            mDebug.WriteLine("Device nao definido !")
            Exit Sub
        End If

        Dim mScene As ISceneManager = mDevice.SceneManager
        Dim mDriver As IVideoDriver = mDevice.VideoDriver

        While mDevice.Run()


        End While


    End Sub

End Module
I receive a message error. I add the reference of IrrLicht.Net for project but when i run the project...
System.IO.FileNotFoundException was unhandled
Message="Não foi possível encontrar o módulo especificado. (Exception from HRESULT: 0x8007007E)"
Source="HP"
StackTrace:
at HP.Module1.Main()
at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()

Posted: Mon Apr 02, 2007 1:51 pm
by mcunha98
For general information, the solution of this problem is easy...

Copy the files irrlicht.dll and irrlichtnet.dll for your system32 folder (when you compile the application, the irrlichtnet.dll is copied into the debug\release folder).