![]() |
|
|||||||
| Astronomy Cameras Support Forum This forum offer a thriving community of enthusiastic astronomers, astro-photographers and other customers of The Imaging Source astronomy USB 2.0 and FireWire cameras and software products. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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? ![]() 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! |
|
#2
|
||||
|
||||
|
Re: DMKCCD V1.3 Ascom DRIVER lauch
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.
__________________
Best regards Stefan IC Imaging Control Support |
|
#3
|
|||
|
|||
|
Re: DMKCCD V1.3 Ascom DRIVER lauch
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 |
|
#4
|
|||
|
|||
|
Re: DMKCCD V1.3 Ascom DRIVER lauch
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
__________________
The home of the DMK ASCOM Driver is www.deepsky-online.com |
|
#5
|
|||
|
|||
|
Re: DMKCCD V1.3 Ascom DRIVER lauch
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 |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ASCOM DMKCCD Driver / New Website | Schnaejel | Astronomy Cameras Support Forum | 4 | June 28, 2010 10:07:37 |
| DMKCCD V1.3 ASCOM Driver | Schnaejel | Astronomy Cameras Support Forum | 36 | May 25, 2010 10:06:24 |
| New ASCOM DMKCCD Driver V1.2 Release | Schnaejel | Astronomy Cameras Support Forum | 28 | January 25, 2010 12:43:20 |
| New ASCOM DMKCCD Driver V1.1 Release | Schnaejel | Astronomy Cameras Support Forum | 9 | February 19, 2009 08:50:00 |
| ASCOM Driver under Development | Schnaejel | Astronomy Cameras Support Forum | 10 | January 20, 2009 21:10:11 |