Quote:
Originally Posted by BigJk
Code:
Dim lzo As New Lzo.LZOCompressor
You forgot the NEW ;)
|
Nah... This Didn't Work! :(
When I Debug There Is An Exception Throwned:
Here Is The Exception
PHP Code:
System.InvalidOperationException was unhandled
HResult=-2146233079
Message=An error occurred creating the form. See Exception.InnerException for details. The error is: The type initializer for 'Simplicit.Net.Lzo.LZOCompressor' threw an exception.
Source=Resource-Writer-Reader
StackTrace:
at Resource_Writer_Reader.My.MyProject.MyForms.Create__Instance__[T](T Instance) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 190
at Resource_Writer_Reader.My.MyProject.MyForms.get_Form1()
at Resource_Writer_Reader.My.MyApplication.OnCreateMainForm() in C:\Users\Romario\Documents\Visual Studio 2010\Projects\EPVP-Login System\Resource-Writer-Reader\My Project\Application.Designer.vb:line 35
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
at Resource_Writer_Reader.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81
at System.AppDomain._nExecuteAssembly(RuntimeAssembly 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.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException: System.TypeInitializationException
HResult=-2146233036
Message=The type initializer for 'Simplicit.Net.Lzo.LZOCompressor' threw an exception.
Source=Simplicit.Net.Lzo
TypeName=Simplicit.Net.Lzo.LZOCompressor
StackTrace:
at Simplicit.Net.Lzo.LZOCompressor..ctor()
at Resource_Writer_Reader.Form1..ctor() in C:\Users\Romario\Documents\Visual Studio 2010\Projects\EPVP-Login System\Resource-Writer-Reader\Form1.vb:line 8
InnerException: System.DllNotFoundException
HResult=-2146233052
Message=Unable to load DLL 'lzo.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
Source=Simplicit.Net.Lzo
TypeName=""
StackTrace:
at Simplicit.Net.Lzo.LZOCompressor.__lzo_init3()
at Simplicit.Net.Lzo.LZOCompressor..cctor()
InnerException:
What I Actually Want To Do Is To ULTRA Compress A File...
LZO Was The Best Solution Because It's Powerfull And Had A .Net Library!
If You Have Something Else To Recomend... Please Tell Me!