The Imaging Source Community  

Go Back   The Imaging Source Community > Image Processing Hardware and Software > Astronomy Cameras Support Forum

Attention:

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.

Reply
 
Thread Tools Display Modes
  #1  
Old May 20, 2010
uranos uranos is offline
Registered User
 
Join Date: Jun 2009
Posts: 10
Unhappy DMKCCD V1.3 Ascom DRIVER lauch

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!
Reply With Quote
  #2  
Old May 21, 2010
Stefan Geissler's Avatar
Stefan Geissler Stefan Geissler is offline
IC Support Engineer
The Imaging Source
 
Join Date: Jan 2003
Location: Bremen, Germany
Posts: 2,753
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
Reply With Quote
  #3  
Old May 21, 2010
uranos uranos is offline
Registered User
 
Join Date: Jun 2009
Posts: 10
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
Reply With Quote
  #4  
Old May 22, 2010
Schnaejel Schnaejel is offline
Registered User
 
Join Date: Sep 2008
Posts: 42
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
Reply With Quote
  #5  
Old May 26, 2010
uranos uranos is offline
Registered User
 
Join Date: Jun 2009
Posts: 10
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
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


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


All times are GMT +1. The time now is 15:19:00.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© 1991 - 2010 The Imaging Source Europe GmbH