jj: fix session errors
This commit is contained in:
@@ -18,7 +18,7 @@ Public Class frmMassValidator
|
||||
Private _dependingControl_in_action As Boolean = False
|
||||
|
||||
Private errmessage As String
|
||||
Private _windream As New ClassWindream_allgemein
|
||||
'Private _windream As New ClassWindream_allgemein
|
||||
Private _windreamPM As New ClassPMWindream
|
||||
Private _allgFunk As New ClassAllgemeineFunktionen
|
||||
Dim viewer_string As String
|
||||
@@ -28,8 +28,11 @@ Public Class frmMassValidator
|
||||
Private Sub frmMassValidator_Load(sender As Object, e As EventArgs) Handles Me.Load
|
||||
FORM_Shown = False
|
||||
Try
|
||||
_windream = New ClassWindream_allgemein
|
||||
_windream.Create_Session()
|
||||
'_windream = New ClassWindream_allgemein
|
||||
'_windream.Create_Session()
|
||||
_windreamPM = New ClassPMWindream()
|
||||
_windreamPM.Create_Session()
|
||||
|
||||
If LogErrorsOnly = False Then ClassLogger.Add("windream initialized frmMassValidator", False)
|
||||
|
||||
Catch ex As Exception
|
||||
@@ -240,8 +243,8 @@ Public Class frmMassValidator
|
||||
Else
|
||||
If CURR_CHOICE_LIST <> "" Then
|
||||
If LogErrorsOnly = False Then ClassLogger.Add(" >> In add_ComboBox - AListe: " & CURR_CHOICE_LIST, False)
|
||||
Dim liste = _windream.GetValuesfromAuswahlliste(CURR_CHOICE_LIST)
|
||||
If liste IsNot Nothing Then
|
||||
Dim liste = _windreamPM.GetValuesfromAuswahlliste(CURR_CHOICE_LIST)
|
||||
If liste IsNot Nothing Then
|
||||
cmb.Items.Add("")
|
||||
For Each index As String In liste
|
||||
cmb.Items.Add(index)
|
||||
@@ -581,7 +584,7 @@ Public Class frmMassValidator
|
||||
For Each docrow As DataRow In CURRENT_DT_MASS_CHANGE_DOCS.Rows
|
||||
Dim WMDOC As WMObject
|
||||
Try
|
||||
WMDOC = _windream.oSession.GetWMObjectByPath(WMEntity.WMEntityDocument, docrow.Item("FULL_PATH").ToString.Substring(2))
|
||||
WMDOC = _windreamPM.oSession.GetWMObjectByPath(WMEntity.WMEntityDocument, docrow.Item("FULL_PATH").ToString.Substring(2))
|
||||
Catch ex As Exception
|
||||
ClassLogger.Add("error while creating WMObject in (textCheckIndex): " & ex.Message)
|
||||
Exit For
|
||||
@@ -917,7 +920,7 @@ Public Class frmMassValidator
|
||||
CURRENT_DOC_GUID = docrow.Item("DOC_GUID")
|
||||
Dim WMDOC As WMObject
|
||||
Try
|
||||
WMDOC = _windream.oSession.GetWMObjectByPath(WMEntity.WMEntityDocument, docrow.Item("FULL_PATH").ToString.Substring(2))
|
||||
WMDOC = _windreamPM.oSession.GetWMObjectByPath(WMEntity.WMEntityDocument, docrow.Item("FULL_PATH").ToString.Substring(2))
|
||||
Catch ex As Exception
|
||||
ClassLogger.Add("error while creating WMObject in (IndexVKTMultipleFiles): " & ex.Message)
|
||||
Exit For
|
||||
@@ -1380,7 +1383,7 @@ Public Class frmMassValidator
|
||||
For Each docrow As DataRow In CURRENT_DT_MASS_CHANGE_DOCS.Rows
|
||||
Dim WMDOC As WMObject
|
||||
Try
|
||||
WMDOC = _windream.oSession.GetWMObjectByPath(WMEntity.WMEntityDocument, docrow.Item("FULL_PATH").ToString.Substring(2))
|
||||
WMDOC = _windreamPM.oSession.GetWMObjectByPath(WMEntity.WMEntityDocument, docrow.Item("FULL_PATH").ToString.Substring(2))
|
||||
Catch ex As Exception
|
||||
ClassLogger.Add("error while creating WMObject in (IndexMultipleFiles): " & ex.Message)
|
||||
_allfine = False
|
||||
@@ -1432,7 +1435,7 @@ Public Class frmMassValidator
|
||||
For Each docrow As DataRow In CURRENT_DT_MASS_CHANGE_DOCS.Rows
|
||||
Dim WMDOC As WMObject
|
||||
Try
|
||||
WMDOC = _windream.oSession.GetWMObjectByPath(WMEntity.WMEntityDocument, docrow.Item("FULL_PATH").ToString.Substring(2))
|
||||
WMDOC = _windreamPM.oSession.GetWMObjectByPath(WMEntity.WMEntityDocument, docrow.Item("FULL_PATH").ToString.Substring(2))
|
||||
Catch ex As Exception
|
||||
ClassLogger.Add("error while creating WMObject in (IndexVKTMultipleFiles): " & ex.Message)
|
||||
_allfine = False
|
||||
|
||||
Reference in New Issue
Block a user