Resolved Application.CalAddBias - error

Discussion in 'Scripting and Programming' started by CraigNZ, Dec 3, 2019.

  1. CraigNZ

    CraigNZ Cyanogen Customer

    Joined:
    Dec 29, 2014
    Messages:
    86
    Location:
    Ngutunui, New Zealand
    When I call this function:
    Application.CalAddBias(filepath)

    I get an exception class error 'EOlesysError' with message
    "Not enough memory resources are available to complete this operation"

    I did call Application.CalClear first and then started adding bias images. The error occurs on the first image being added.

    Did I forget to initialize something in MaximDL?

    Craig
     
  2. CraigNZ

    CraigNZ Cyanogen Customer

    Joined:
    Dec 29, 2014
    Messages:
    86
    Location:
    Ngutunui, New Zealand
    Hi Doug,

    Any idea why I am getting this error message?

    Craig
     
  3. Doug

    Doug Staff Member

    Joined:
    Sep 25, 2014
    Messages:
    6,956
  4. CraigNZ

    CraigNZ Cyanogen Customer

    Joined:
    Dec 29, 2014
    Messages:
    86
    Location:
    Ngutunui, New Zealand
    Thanks Doug.
     
  5. CraigNZ

    CraigNZ Cyanogen Customer

    Joined:
    Dec 29, 2014
    Messages:
    86
    Location:
    Ngutunui, New Zealand
    As an additional note, when I call "CalAddDark" or "CalAddFlat" I get the same error message. I also get the same error message if I call "CreateCalibrationGroups", so there appears to be a basic interface problem when calling these functions.

    Craig
     
  6. CraigNZ

    CraigNZ Cyanogen Customer

    Joined:
    Dec 29, 2014
    Messages:
    86
    Location:
    Ngutunui, New Zealand
    I found the problem. I am using Free Pascal in the Lazarus development environment. When sending a string variable to an OLE object you have to use the type "wideString":

    this failed: MaximDLApplicationObject.CalAddBias(s) (where "s" is a string variable)

    this worked: MaximDLApplicationObject.CalAddBias(wideString(s))

    we can show this post as resolved.

    Craig
     
  7. Colin Haig

    Colin Haig Staff Member

    Joined:
    Oct 27, 2014
    Messages:
    3,574
    Craig - thanks for letting us know. Most folks are using Javascript/VBScript or an MSFT Visual Studio language.
     
  8. Bob Denny

    Bob Denny Cyanogen Customer

    Joined:
    Oct 12, 2014
    Messages:
    801
    Location:
    DC-3 Dreams, SP, Mesa, Arizona +1 480 396 9700
  9. CraigNZ

    CraigNZ Cyanogen Customer

    Joined:
    Dec 29, 2014
    Messages:
    86
    Location:
    Ngutunui, New Zealand
    I am using Lazarus (Free Pascal) to interface to both Pinpoint and MaximDL. So far I have had the best luck with Pinpoint, it is well documented and explains in great detail how to use the various methods and properties. I am trying to use the MaximDL calibration methods and properties to create calibration masters and calibrate light images. A very nice set of functions but not well documented. I suspect that once I slog through all this that it will end up working very well.
     
  10. Bob Denny

    Bob Denny Cyanogen Customer

    Joined:
    Oct 12, 2014
    Messages:
    801
    Location:
    DC-3 Dreams, SP, Mesa, Arizona +1 480 396 9700
    Thanks for the kind words about PinPoint. Stephanie will tell you how much time and effort I put into it in the “old days”. I would use quads not triplets now. But it’s accuracy is as good as it gets on each individual star. The centroids are good enough that Donald Bruns was able to reproduce the Eddington experiment using PP and Astrometrica ... he says the centroids are “essentially identical”, cool since PP is automatic. The API was a blast to design and implement.
     

Share This Page