PDA

View Full Version : DMKCCD V1.3 Ascom DRIVER lauch



uranos
May 20, 2010, 07: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!

Stefan Geissler
May 21, 2010, 09:07:45
Hello,

It seems, you try create the IC Imaging Control object dynamically. In this case the Microsoft License compiler wont create the license. (There are many other threads like this in the programming forums.)

However, you can pass your license key to the constructor:

TIS.Imaging.ICImagingControl ic = new TIS.Imaging.ICImagingControl("Insert license key here!");

This should fix your problem.

uranos
May 21, 2010, 20:36:30
Thanks for this answer Stephan.

But, I have no licence number! I'm just trying to make an application that will use the ascom DMKCCD driver. Is it required in this case?
Should I Use a dummy one?

Jean-Paul

Schnaejel
May 22, 2010, 18:23:53
Hi Jean,

i am wondering about that error message, too. Because i developed
the driver at least under windows xp sp3 with Ascom 5.5.

The setup routine works with maxim dl, hmm.

I will have a look at you code and have to test it...

kind regards,
gerrit

uranos
May 26, 2010, 21:53:21
Thanks Gerrit,
I tried to send you a copy of my "test program".
If you don't receive it, just send me an "hello" mail at jean-paul.godard <<at>> gmail<<dot>>com
I appreciate your help.
Jean-Paul