TypeInitializationException

7 views
Skip to first unread message

yyz

unread,
Aug 30, 2008, 4:18:24 AM8/30/08
to EEGUI
Eagle Eye,

Received the following when trying to run your demo:

System.TypeInitializationException was unhandled
Message="The type initializer for 'EEGUIDemo.EEGUIDemo' threw an
exception."
Source="EEGUIDemo"
TypeName="EEGUIDemo.EEGUIDemo"
StackTrace:
at EEGUIDemo.EEGUIDemo.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()


Yyz
vince...@sbcglobal.net

Jared Mark

unread,
Aug 30, 2008, 11:23:17 AM8/30/08
to ee...@googlegroups.com
In general, a TypeInitializationException will happen when you have an
exception during your "new" calls in something or other.

Chances are you don't have something working right for TrueVision in
general, like not having the latest DirectX SDK installed.


Eagle Eye,


Yyz
vince...@sbcglobal.net


No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.169 / Virus Database: 270.6.13/1642 - Release Date: 8/29/2008
6:12 PM

yyz

unread,
Aug 30, 2008, 12:37:11 PM8/30/08
to EEGUI
Well, I haven't done any Truevision 3D development in 3 months. So,
before running EEGuiDemo, I downloaded and installed the latest TV3D
which depends on d3dx9_36.dll. This broke all of my current TV3D
projects. I reinstalled "directx_aug2008_redist.exe" from Microsoft
and that resolved the d3dx9_36.dll dependency. My current TV3D
projects now run just fine. Now when I try to run EEGuiDemo, I get
"AccessViolationException" at line 29 of DemoForm.vb:

System.AccessViolationException was unhandled
Message="Attempted to read or write protected memory. This is often
an indication that other memory is corrupt."
Source="MTV3D65"
StackTrace:
at CTVEngine.Init3DWindowed(CTVEngine* , HWND__* , Boolean )
at MTV3D65.TVEngine.Init3DWindowed(IntPtr hWnd)
at EEGUIDemo.frmMain.InitEngine() in C:\install\Tv3D\EeguiDemo
\EEGUIDemo\DemoForm.vb:line 29
at EEGUIDemo.frmMain.Start() in C:\install\Tv3D\EeguiDemo
\EEGUIDemo\DemoForm.vb:line 4
at EEGUIDemo.EEGUIDemo.main() in C:\install\Tv3D\EeguiDemo
\EEGUIDemo\EEGUIDemo.vb:line 21
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()

Yyz


> vincents...@sbcglobal.net
>
> No virus found in this incoming message.
> Checked by AVG -http://www.avg.com
> Version: 8.0.169 / Virus Database: 270.6.13/1642 - Release Date: 8/29/2008
> 6:12 PM- Hide quoted text -
>
> - Show quoted text -

Jared Mark

unread,
Aug 30, 2008, 12:49:11 PM8/30/08
to ee...@googlegroups.com
That could be a licensing thing maybe?

Again, it seems to be a truevision problem. You might want to ask about
this on the truevision IRC channel.
Checked by AVG - http://www.avg.com
Reply all
Reply to author
Forward
0 new messages