Browsing this Thread:
1 Anonymous Users
The type initializer for 'Dvtk.Sessions.ScriptSession' threw an exception. |
||
|---|---|---|
|
Not too shy to talk
![]()
Joined:
2010/1/20 15:24 Group:
Registered Users Posts:
5
Level : 1; EXP : 34
HP : 0 / 8 MP : 1 / 83 ![]() |
Dear DVTk User,
i know this exception was already discussed here but the information there didnt help me. I am using DVT 2.2.1 since i have a 64-bit machine (windows xp). I am trying to implement the Storage SCP Example in the Developer->Example section in Visual Basic. I added all .dll's to my project (Add reference). I took the source code given in the example and i constantly get the above mentioned exception: "The type initializer for 'Dvtk.Sessions.ScriptSession' threw an exception." when calling the DicomThreads' initialize function. This happens only when i start the program in the Visual Studio (pressing F5). When i start the script in the DVT GUI it seems to work, but i want to have debug information therefore i want to execute the program in the Studio. Class MainDicomThread Inherits DicomThread Protected Overrides Sub Execute() 'Some code... End Sub End Class Module DvtkScript Sub Main(ByVal CmdArgs() As String) Dim theThreadManager As ThreadManager = New ThreadManager Dim theMainDicomThread As MainDicomThread = New MainDicomThread '->>>>>>>HERE IT CRASHES theMainDicomThread.Initialize(theThreadManager) End Sub End Module The 2 attached images show the references i use. Maybe somebody knows how to cope with this problem. Thanks, schanzer.
Posted on: 2010/2/2 17:02
|
|
Transfer
|
||
Re: The type initializer for 'Dvtk.Sessions.ScriptSession' threw an exception. |
||
|---|---|---|
|
Webmaster
![]()
Joined:
2006/10/12 14:45 From Best, Netherlands
Group:
Webmasters Registered Users Core Developers Content Owners Posts:
259
Level : 15; EXP : 5
HP : 0 / 351 MP : 86 / 6788 ![]() |
You might want to try the today released DVTk Library as reference. That has been update to be compatible with 64 bit operating systems.
Posted on: 2010/3/31 10:01
|
|
Transfer
|
||
You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.





Aufnahme1.jpg (125.46 KB)

Transfer
