uranos
May 20, 2010, 06:41:45
Hi All,
I'm developping an application (Win XP SP3, VB express 2008, Ascom 5.5, DMK driver operationnal with Prism or MaximDL) [the bug is for me!!!].
I fire the ascom driver with:
wcam = New ASCOM.DriverAccess.Camera(wcamprogID)
Catch ex As Exception
[...]
End Try
If wcam.camerastate = 0 Then
wcam.SetupDialog()
End If
wcam.connected=true
Thats work with the simmulator, but with DMKCCD, I get following exception at the connect time....
Any Idea for structuring the launch?:embarrassed:
Jean-Paul
System.Exception: IC Imaging Control is not licensed to be used on your computer! ---> System.NullReferenceException: La référence d'objet n'est pas définie à une instance d'un objet.
à TIS.Imaging.CTISLicense.GetChar(String szIn)
à TIS.Imaging.MyLicenseprovider.GetLicense(LicenseCo ntext context, Type type, Object instance, Boolean allowExceptions)
à System.ComponentModel.LicenseManager.ValidateInter nalRecursive(LicenseContext context, Type type, Object instance, Boolean allowExceptions, License& license, String& licenseKey)
à System.ComponentModel.LicenseManager.ValidateInter nal(Type type, Object instance, Boolean allowExceptions, License& license)
à System.ComponentModel.LicenseManager.Validate(Type type, Object instance)
à TIS.Imaging.ICImagingControl.InitLicense()
--- Fin de la trace de la pile d'exception interne ---
à Microsoft.VisualBasic.CompilerServices.Symbols.Con tainer.InvokeMethod(Method TargetProcedure, Object[] Arguments, Boolean[] CopyBack, BindingFlags Flags)
à Microsoft.VisualBasic.CompilerServices.NewLateBind ing.LateSet(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean OptimisticSet, Boolean RValueBase, CallType CallType)
à Microsoft.VisualBasic.CompilerServices.NewLateBind ing.LateSet(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments)
à WindowsApplication1.Form1.Connect_Click(Object sender, EventArgs e) dans J:\_Arrivee_Photos\Projects\Ascom\Ascom_Eval2008\B ackup\Ascom_Eval\Form1.vb:ligne 58 IC Imaging Control is not licensed to be used on your computer!
I'm developping an application (Win XP SP3, VB express 2008, Ascom 5.5, DMK driver operationnal with Prism or MaximDL) [the bug is for me!!!].
I fire the ascom driver with:
wcam = New ASCOM.DriverAccess.Camera(wcamprogID)
Catch ex As Exception
[...]
End Try
If wcam.camerastate = 0 Then
wcam.SetupDialog()
End If
wcam.connected=true
Thats work with the simmulator, but with DMKCCD, I get following exception at the connect time....
Any Idea for structuring the launch?:embarrassed:
Jean-Paul
System.Exception: IC Imaging Control is not licensed to be used on your computer! ---> System.NullReferenceException: La référence d'objet n'est pas définie à une instance d'un objet.
à TIS.Imaging.CTISLicense.GetChar(String szIn)
à TIS.Imaging.MyLicenseprovider.GetLicense(LicenseCo ntext context, Type type, Object instance, Boolean allowExceptions)
à System.ComponentModel.LicenseManager.ValidateInter nalRecursive(LicenseContext context, Type type, Object instance, Boolean allowExceptions, License& license, String& licenseKey)
à System.ComponentModel.LicenseManager.ValidateInter nal(Type type, Object instance, Boolean allowExceptions, License& license)
à System.ComponentModel.LicenseManager.Validate(Type type, Object instance)
à TIS.Imaging.ICImagingControl.InitLicense()
--- Fin de la trace de la pile d'exception interne ---
à Microsoft.VisualBasic.CompilerServices.Symbols.Con tainer.InvokeMethod(Method TargetProcedure, Object[] Arguments, Boolean[] CopyBack, BindingFlags Flags)
à Microsoft.VisualBasic.CompilerServices.NewLateBind ing.LateSet(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean OptimisticSet, Boolean RValueBase, CallType CallType)
à Microsoft.VisualBasic.CompilerServices.NewLateBind ing.LateSet(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments)
à WindowsApplication1.Form1.Connect_Click(Object sender, EventArgs e) dans J:\_Arrivee_Photos\Projects\Ascom\Ascom_Eval2008\B ackup\Ascom_Eval\Form1.vb:ligne 58 IC Imaging Control is not licensed to be used on your computer!