BalaShiyamala / opencvdotnet

Automatically exported from code.google.com/p/opencvdotnet
0 stars 0 forks source link

Doesn't seem to allow use in console applications #20

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a default C# console application
2. Include references to the OpenCVDotNET assemblies
3. Simply use any simple call and it crashes.

using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using OpenCVDotNet;

namespace TEST
{
    class Program
    {
        static void Main(string[] args)
        {
            CVUtils.ErrorsToExceptions();
        }
    }
}

What is the expected output? What do you see instead?
Shouldn't require such a tight coupling to WinForms, I would like to use in
places without a user interface. I can do this with OpenCV as-is.

What version of the product are you using? On what operating system?
Windows XP, VS2008sp1.
OpenCV 1.0 Notes (2006-10-19 15:43) 
opencvdotnet-0.7-setup.exe

Please provide any additional information below.
Here is the exception details

System.TypeLoadException was unhandled
  Message="Could not load type 'OpenCVDotNet.CVUtils' from assembly
'OpenCVdotNet, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'."
  Source="OpenCVdotNet"
  TypeName="OpenCVDotNet.CVUtils"
  StackTrace:
       at TEST.Program.Main(String[] args)
       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()
  InnerException: 

Original issue reported on code.google.com by ksp...@gmail.com on 3 Feb 2009 at 8:29