DLL interfacing with mixed value and reference types

I'm currently trying to work with a supplied DLL.
I have header files and all, and the DLL import wizard does a decent job of importing the DLL functions but there are some data types which simply can't be handled.
The DLL requires usage of a data type which is a struct with value and reference data types.  I could theoretically replace the references with simple U32s but much of the required information in the data is in the data structures referenced by the pointers.
How do I go about implementing this seeing how I need to be able to pass the data back into the DLL in its original form (value and reference types).
I have something like the following:
struct Item {
Int Device,
*Item Next
*Item Previous
*Data Datastruct
I have downloaded the WDK from Microsoft, have CVI and Visual Studio 2008 available.  I'm not very experienced at this end of things...   I can deal with Structs with pure value types but how do I get at the data in the reference types?
I strongly suspect I need a wrapper DLL, but how is the best way to go about this?
Shane.
Say hello to my little friend.
RFC 2323 FHE-Compliant
Solved!
Go to Solution.

Hi Shane,
To be honest, I don't understand why you have to pass the ENTIRE structue (if it's "Item" structure. The pointer to the next and the previous item should be held and manituplated in the DLL, doesn't it?
Operate within classes....
Are you talking about Labview Classes? I didn't use it yet. Sorry.
Convert Linked List to Array You can't store all elements by value in a cluster, because it's kind of recursive. The next pointer leads to the same Item structure (with it's own next pointer. If it's a circulary-linked-list it will never stop)
Or did you mean to store the pointers as a U32 value? That should work.
Output the struct as a binary blob Yes, why not ! But that lets me assume you don't know the concrete "Datastructure" ?!
I'm honest again I can't see the important information you mentioned if you pass the Data structure as a binary blob.
Read-only is a very good idea. If you don't need to tweak the pointers in the list you should avoid it.
Balze

Similar Messages

  • Stock on posting date with storagelocation,batch and stock types informatio

    Hi,
    I'm needing a report (similar funtion of MB5B) which must reveal the stock postion (closing balance) of the materials on a particular date alongwith storage loactions, batches and stocktypes (Unres/Q/Blkd).As such MB5B either gives the output either by storage location or by batch, not the combination of both.
    Else provide any possibilty means( Database tables) from where i could arrive these mention outputs.
    I could be able to get the information by collecting the values from MKPF & MSEG tables. But this information only suffice the material movements carried on that particular date.. And i will be not having the closing balance as a whole.
    I even wonder to get any such a kind of information in which i could able to get the stock with stock types(Unres/Q/Blkd).
    Any light on this matter is highly appreciable.
    Regards
    Prasanna

    Hi Amit Bakshi,
    Thanks for the reply..
    I executed the suggested program but i found the same kind of information aslike in MB5B..
    The information all i'm looking is to get the closing balance of the given material with storagelocations, batches and stock types on a given posting date.
    For eg.
    On 15 / 03 / 2011
    Material A
    Batch       Slocation       Stock type               Closing balance Qty.
    A1              S001               Unres.                             50
    A1              S002               Unres                            120
    B1              S001               Quality                             15
    C1              S003               Blocked                            30
    In MB5B i could able to get the values of closing balance either Storage location level or by batch level but is it possible to get the combination of both along with stock types?
    Reg
    Prasanna

  • How to create a matrix with constant values and multiply it with the output of adc

    How to create a matrix with constant values and multiply it with the output of adc 

    nitinkajay wrote:
    How to create a matrix with constant values and multiply it with the output of adc 
    Place array constant on diagram, drag a double to it, r-click "add dimension". There, a constant 2D double array, a matrix.
    /Y
    LabVIEW 8.2 - 2014
    "Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
    G# - Free award winning reference based OOP for LV

  • Word 2007 mail merge : problem with mixed portrait and landscape orientations

    Hi there,
    I have a 3 pages document Word 2007 file
    This is a mail merge I want to export in PDF using Adobe Acrobat Printer,
    then send "big" PDF to printing.
    page 1 is PORTRAIT
    page 2 is PORTRAIT
    page 3 is LANDSCAPE
    In PDF pages 1 and 2 are perfectly fine, inside an A4 format (width=210 height=297mm or something)
    but for page 3, system changed to a "double" sized page (A3 width=297 height=420) and printed my stuff at the 1st top middle of big page.
    So I have a big "double" sheet, oriented PORTRAIT, with my stuff in 1st half, and a blank in 2nd half.
    It seems that system did not rotate the page... and just put the stuff into a bigger sheet to "solve" at best.
    I would like the same size of paper (A4) but in landscape : width=297 height=210
    I have already seen many PDF with mixed portrait and landscape orientations, so what's the thing ?
    With my advanced thanks,
    And greetings from Paris, France !
    Vince

    Some questions:
    Which version of office were you using before? 2003?
    Are the data files on a network, or on your local machine? If they are on a network, can you make a copy of one of them on your local machine and try again?
    Can you open the files directly in Excel? What extension do they have (.xls, or something else?) I am wondering whether access to other file types has been left blocked on your machine but is allowed on your colleague's machine.
    Are you just opening the mail merge main document and seeing this message? If so, do you see the same thing if you start with a new document and try to connect to one of these data sources?
    Can you confirm that the message is about Access even though you are trying to connect to an Excel file?
    (Also, office 2007 has some new stuff - that let's you specify that certain folders are "trusted" . I don't think that ever affected MailMerge but it may be as well to make sure that your documents and data sources are in trusted locations).
    Also worth trying to start Word in "Safe mode" - see, e.g. http://office.microsoft.com/en-gb/word-help/work-with-office-safe-modes-HP010140792.aspx
    Peter Jamieson

  • How can i do with labview program,when i have 20 different values,and 1 want to add it with constant value.and how to get the results?

    how can i do with labview program,when i have   20 different values,and 1 want to add it with constant value.and how to get the results?

    Why do the 20 values have to be different? The same code should work even if some are equal.
    What do you mean by "get the result"? The result is available at the output terminal and all you need is a wire to get it where you need it. That could be an indicator, another operation, or even a hardware device.
    What is the data type of the 20 values? An array? A cluster? A bunch of scalars? A waveform? Dynamic data?
    LabVIEW Champion . Do more with less code and in less time .

  • How to use Adaptive WebService Model with CAF WebService and Complex Type

    Hi All,
    I am trying to use the Adaptive Web Service Model and call a WebService generated by the CAF. The return type of the WebService is a Complex Type.. I receive an exception when trying to instantiate the Model Node.
    Does anybody know how to use the Adpative Web Service Model with CAF WebServices and Complex Types as return type?
    Help is appreciated..
    Thanks, Johannes

    Thanks Mukesh.
    It is not possible to apply the Service Controller Template on Enterprise Java Bean Models as described in the Document. When I try to aply the template on the EJB Model, NWDS says: Only Webservice Models and RFC Models are supported...???
    I did not find any information about how to return complex types in AWS.. in this document???
    Is there such information available? Has anybody ever done that? There must be a way to do that.. Is is the standard approach, isn't it...? Please help me out there.. I need to get this running..
    Thanks, Johannes

  • Is it possible for Nexus7000 flexible netflow monitor for interfaces with different vrf and export to one netflow analyzer?

    I have a Nexus 7000 with many vlan interfaces with multiple vrf, I would like to know if my netflow analyzer only connected to one vrf, can I use flexible netflow on the Nexus 7000 to monitor those vlan interfaces with multiple vrf and export them to my netflow analyzer, so that I can see all flow from different vrfs on my netflow analyzer?
    Thank you!

    Adriano, there is a RV042G, which supports the gig ports and a 800 mbps nat throughput. Here is the datasheet
    http://www.cisco.com/en/US/prod/collateral/routers/ps10907/ps9923/ps12262/data_sheet_c78-706724.html
    If you are using a DSL connection, the SRP527/547 models may be an alternative. These models support the RFC 1483 Bridges EOA Please note the SRP547 should be 10/100/1000. Also note the SRP521/541 are Fast Ethernet units and they do differ from the SRP527/547. The main selling point of these devices are the FXS/FXO ports. So this may also be a bit of an "unfocused" solution. But it's worth throwing the idea out there!
    Here is the admin guide;
    http://www.cisco.com/en/US/docs/voice_ip_comm/unified_communications/srp540_series/administration/srp500_AG_2567701.pdf
    Here is the datasheet;
    http://www.cisco.com/en/US/prod/collateral/voicesw/ps6790/gatecont/ps10500/data_sheet_c78-550705.pdf

  • No video with supported formate and mime type found

    I am able to view videos on all but 1 website: http://www.start-american-sign-language.com/free-sign-language-asl1.html
    When I view that page, the video box only shows the x with "no video with supported formate and mime type found" being displayed.
    I have updated to the most recent palemoon (25.3.0) and have the following plugins installed
    DRM 9.0.0.4503
    Shockwave flash 16.0.0.305
    Silverlight 5.1.30514.0
    VLC Web Plugin 2.2.0.0
    Windows media Player Dynamic Link LIbrary 3.0.2.629
    I have cleared my cache and cookies, and am unable to view the video in question. If I go to https://www.youtube.com/html5, it indicates that I have an operable Webelement player and Web VP8, and all others are exclamation points.
    Does anyone know why I can't watch the (mp4) video(s) in question? I have turned up no viable solutions using the forums or google.
    Thanks!

    This happens when there is no support in your Windows XP version to play any of the media file formats that the website offers with the HTML5 media player (i.e. not a Flash player is used, but a video tag).
    That are MP4 files with type="video/mp4"
    *VLC shows: Codec: H264 - MPEG-4 AVC (part 10) (avc1)
    You might be out of luck on Windows XP and your only option would be to use an external media player and paste the links in its location field.

  • BAPI_GOODSMVT_CREATE with GM = 03 and Mov. type 961

    Hello,
    I keep running in to the same error message when test-running the BAPI_GOODSMVT_CREATE bapi with GM 03 and mov. type 961.
    Although for my product MM03 says that I have 999 tones of stock for unrestricted use I keep getting the message:
    "Deficit of SL Unrestr. prev. 1 T: 900253 DE01 D1CD"
    can anyone understand the reason for this ?
    The application consultants have no problems posting the goods movement but I keep getting the same error message no matter what quantity I try to move.
    Grateful for any help on this matter !
    Best regards
    //Erik

    Hello again,
    After having changed the posting date I now have error message:
    "Fld selectn for mvt type 961 / accnt 412505 differs for network (019)"
    This is starting to feel like som form of customizing missing so my guess is the application cosnultants will have to look at this.
    Ideas still welcome though !

  • Can we use applets as user interfaces with sockets, RMI and J2EE

    Dear Sir or Madam,
    Since I am a TA for software architecture class, some one ask me the following question: I think the answer is "No" based on the document on http://java.sun.com/sfaq/
    How I answer the quesions? Looking forward your help!!!
    1.You may have 2 applets and 2 html files. One applet with one html file may stay at a client PC and run on this PC, and the other applet with the other html file may stay at a server PC and run on this PC. In this case, all the applets are run locally.
    2.Could applets works with sockets, RMI and J2EE?
    3.Can we use applets as user interfaces with sockets, RMI and J2EE?
    Thank you very much!
    Best regards,
    Jing

    The scenario you paint doesn't quite make sense. The "server PC" wouldn't be running an applet, normally, since applets are by definition in a web browser page, and most likely involve user interaction, and "server processes" generally are done without user interaction.
    The security rules around applets are that -- by default -- applets can connect with sockets ONLY to the server from whence the applet was loaded. RMI uses sockets (J2EE is too broad a spec) and hence RMI calls would also be limited to the server from whence the applet was loaded. Within that limitation, an applet could open all the sockets it wants, so long as they are all on the server from whence the applet was loaded.
    If you want two applets on two different systems to communicate with each other, the simplest way is to have them rendevous through a server process on the server(s) from whence each applet was loaded. Maybe it's PC-a <-> server-a <-> server-b <-> PC-b ...? Or maybe PC-a and PC-b both are talking to the same server.
    The limitation is rooted in the security subsystem. You can specify a policy file and override anything in the security subsystem. That does mean signing the applet and then cajoling the user into agreeing to grant greater levels of security than the default. In such a case you can open sockets more broadly and then PC-a could talk directly to PC-b without going through any servers.
    - David

  • Trying to embed a video file in HTML5: ERROR=No video with supported format and MIME type found?

    Hello all!
    I am desparate for a solution. I am testing my site on Firefox and Explorer and still no sign of a functional video yet.
    Firefox: I get the error: No video with supported format and MIME type found.
    Explorer: I just get a distorted layout.
    Here is the code I am working on:
    <table id="Table_01" width="480" height="801" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td colspan="6">
                <img src="images/Video_01.jpg" width="480" height="114" alt=""></td>
        </tr>
        <tr>
            <td rowspan="3">
                <img src="images/Video_02.jpg" width="52" height="486" alt=""></td>
            <td colspan="4">
               <video controls width="376" height="221">
                 <source src="C:\Users\aalmeida\Videos\AEMC PEL 103 6 Channel, Power & Energy Logger - with Display (Part 1).mp4" type="Video/Mp4"/>
                 <source src="C:\Users\aalmeida\Videos\AEMC PEL 103 6 Channel, Power & Energy Logger - with Display (Part 1).webm" type="Video/WebM"/>
                 <source src="C:\Users\aalmeida\Videos\AEMC PEL 103 6 Channel, Power & Energy Logger - with Display (Part 1).oggtheora.ogv" type="Video/Ogg"/>
                 </video>
    Please tell me that there is something missing in the code. I have spent a lot of time uninstalling-updating Firefox plugins, added MIME types in the Internet Information Manager (I'm on Windows 7)
    and  seriuously hit a dead end with this!
    Any advice would be muchly appreciated!!!
    Thanks
    ~LA

    As Jon said, you must declare the page as HTML5.
    And your server may not be set up to deliver video as a binary file if it is an .OGG file. I have not seen this problem with .MP4 or .M4V in the past, but every server is a little different.
    To add a MIME type, you need to change your .htaccess file on an Apache server thusly:
    AddType audio/ogg .oga
    AddType video/ogg .ogv
    AddType application/ogg .ogg
    AddHandler application-ogg .ogg .ogv .oga
    Additionally, MIME types can usually be changed on a server's Control Panel. One can also ask one's hosting provider to do this as well.
    Firefox makes it necessary to use OGG files. Webkit-based browsers will deal with .M4V or .MP4 and I understand Internet Exploder will work with the latter two as well.

  • I want to set a variable with default value and can be changed by the user

    hi,
    i want to set a variable with default value and can be changed by the user, so i new a variable with setting : customer exit, single value, optional, ready for input.
    in my customer exit code, i set a default value, eg. 20070530
    when the variable screen popup, it display the default value 20070530, i changed it to 20070529, but it doesn't work , it still display the data in 20070530, how can i solve this problem? 
    your help is appreciated.

    Liu,
       As mentioned by Anil, you need to restrict your customerr Exit code to I_STEP = 1.
    or.
       <u>Open your Variable in change mode, in the Last Page os the Variable Maintenance you can provide default value. Note: you are doing same thing in Customer Exit. In your case no need of Customer Exit.</u>
    Nagesh Ganisetti.
    Assign points if it helps.

  • How many connections supports a web interface with each camera and how many Adobe Encoder clients does AMS support? AMS Standart

    How many connections supports a web interface with each camera and how many Adobe Encoder clients does AMS support? AMS Standart. We need connect by  Adobe Encoder many people. what is differences between Adobe Media Server 5 Professional, Adobe Media Server 5 Standard and Adobe Media Server 5 Extended?

    For the detailed list of differences across editions refer this link
    http://www.adobe.com/in/products/adobe-media-server-family/buying-guide-comparison.html

  • Trouble with Add-CMDeploymentType and -ScriptInstaller type

    We have a Configuration Manager 2012 SP1 setup and I’m trying to populate the system with all our applications by using PowerShell only. I can create device collections, device collection query rules, applications, application deployment
    types (if msi, appv 4.6 or appv 5), content distributions and deployments. But for some reason I can’t get the Add-CMDeploymentType cmdlet to work with the –ScriptInstaller parameter.
    Example:
    Add-CMDeploymentType -ApplicationName "Testapp" -ScriptInstaller -ManualSpecifyDeploymentType -DeploymentTypeName "Acme Testapp 10.4.5 - SCRIPT" -InstallationProgram "install_testapp.cmd" -DetectDeploymentTypeByCustomScript
    -ScriptType PowerShell -ScriptContent "test-path 'c:\windows'" -AdministratorComment "APP00001" -RunIntallationProgramAs32BitProcessOn64BitClient $false -InstallationBehaviorType InstallForSystem -ContentLocation "\\afs\ltu.se\package\application\APP00001"
    -RunScriptAs32bitProcessOn64bitClient $false -LogonRequirementType OnlyWhenNoUserLoggedOn
    By stripping out everything not necessary I know that it is the –ScriptContent parameter that generates the error “WARNING: Select a correct parameter set.”. I have tried both VBScript and Powershell script types but no matter the value
    of the ScriptContent I get this error. According to the documentation ScriptContent is of type string.
    I find it a bit odd that you can just use scripts for detection methods but I don’t mind if I can get it to work. APPV and MSI works just fine but about 66% of our applications use script based installations.
    As a last resort I could probably do it the same way as on configuration manager 2007 with WMI and Packages but I’d rather move everything over to the application model as we do the migration.

     
    I sat all day with google and tried out code and at the and I was successful in putting together someting that actually worked. The sample script creates both the application and the deployment type at the same time. I would rather use a prebuilt application
    and just add the deployment type but that is work for another day. Hope you find it usefull.
    I did find a good reference here
    http://blogs.technet.com/b/chrad/archive/2012/09/12/configmgr-2012-pcm-walking-through-pcm-plug-in-capabilities.aspx but I could not get the DetectionMethod to work in my code. But I got it working with both VBScript and PowerShell detection scripts and
    I'm fine for now with that.
    -------------ExampleCode---------------
    #Anders Hannus 2013-03-14
    #Some code from:
    http://blog.lechar.nl/2012/04/03/creating-an-sccm-2012-application-with-powershell/
    #Load assemblies
    [Reflection.Assembly]::LoadFile("D:\Microsoft Configuration Manager\AdminConsole\bin\Microsoft.ConfigurationManagement.ApplicationManagement.dll") | out-null
    [Reflection.Assembly]::LoadFile("D:\Microsoft Configuration Manager\AdminConsole\bin\Microsoft.ConfigurationManagement.ApplicationManagement.MsiInstaller.dll") | out-null
    $wminamespace = "Root\SMS\Site_S02"
    $sccmserver = hostname
    #Application info. Normaly read from LDAP database but hardcoded in this example.
    $LTUappMaker = "LTU"        #Maker of application
    $LTUappName = "testapp"        #Name of application
    $LTUappVersion = "1.0"        #Version of application
    $LTUpackageName = "install_ltukerberos_ltu.cmd"  #Command to install application
    $description = "Registry keys so that Windows can find the KRB servers for Realm LTU.SE" #Description of what the program is/does.
    $displayname = "TEST testapp 1.0"     #Diplayname, created from LTUappMaker, LTUappName and LTUappVersion but might be adjusted.
    $app = "APP00001"         #Application id in our database
    $source = "\\server\sccmsource\$app" #Source directory for application.
    $LTUappCheckPath = "C:\Windows\notepad.exe"  #file/folder to detect if application is installed.
    write-host "Creating Application $displayname"
    #Get scopeid
    $identificationClass = [WMICLASS]"\\$($sccmserver)\$($wminamespace):SMS_Identification"
    $cls = Get-WmiObject SMS_Identification -namespace $wminamespace -ComputerName $sccmserver -list
    $tmp = $identificationClass.GetSiteID().SiteID
    $scopeid = "ScopeId_$($tmp.Substring(1,$tmp.Length -2))"
    #Create an unique id for the application and the deployment type
    $newApplicationID = "Application_" + [guid]::NewGuid().ToString()
    $newDeploymentTypeID = "DeploymentType_" + [guid]::NewGuid().ToString()
    #Create SCCM 2012 object id for application and deploymenttype
    $newApplicationID = New-Object Microsoft.ConfigurationManagement.ApplicationManagement.ObjectID($scopeid,$newApplicationID) 
    $newDeploymentTypeID = New-Object Microsoft.ConfigurationManagement.ApplicationManagement.ObjectID($scopeid,$newDeploymentTypeID)
    #Create objects neccessary for the creation of the application
    $newApplication = New-Object Microsoft.ConfigurationManagement.ApplicationManagement.Application($newApplicationID)
    $newDeploymentType = New-Object  Microsoft.ConfigurationManagement.ApplicationManagement.DeploymentType($newDeploymentTypeID,"Script")
    #Setting Display Info
    $newDisplayInfo = New-Object Microsoft.ConfigurationManagement.ApplicationManagement.AppDisplayInfo
    $newDisplayInfo.Title = $displayname
    $newDisplayInfo.Language = "sv-SE"
    $newDisplayInfo.Description = $description
    $newApplication.DisplayInfo.Add($newDisplayInfo)
    #Setting default Language must be set and displayinfo must exist
    $newApplication.DisplayInfo.DefaultLanguage = $newDisplayInfo.Language
    $newApplication.Title = $displayname
    $newApplication.Version = 1.0
    $newApplication.Publisher = $LTUappMaker
    $newApplication.SoftwareVersion = $LTUappVersion
    $newApplication.Description = $app
    #Add all content to the application
    $newApplicationContent = [Microsoft.ConfigurationManagement.ApplicationManagement.ContentImporter]::CreateContentFromFolder($source)
    $newApplicationContent.OnSlowNetwork = "Download"
    #Deployment Type Script installer will be used
    $newDeploymentType.Title = "$displayname - Script Installer"
    $newDeploymentType.Version = 1.0
    $newDeploymentType.Installer.InstallCommandLine = $LTUpackageName
    $newDeploymentType.Installer.UninstallCommandLine = $LTUpackageName.replace("install","uninstall")
    $newDeploymentType.Installer.Contents.Add($newApplicationContent)
    #Detectionmethod
    $testscript = "if (test-path ""$LTUappCheckPath"") {write-host ""The application is installed.""}"
    $newDeploymentType.Installer.DetectionMethod = "Script"
    $newDetectionScript = New-Object Microsoft.ConfigurationManagement.ApplicationManagement.Script
    $newDetectionScript.Language = "PowerShell"
    $newDetectionScript.Text = $testscript
    $newDeploymentType.Installer.DetectionScript = $newDetectionScript
    #Add the DeploymentType to the Application
    $newApplication.DeploymentTypes.Add($newDeploymentType)
    #Serialize the object to an xml file and stuff it into SCCM
    $newApplicationXML = [Microsoft.ConfigurationManagement.ApplicationManagement.Serialization.SccmSerializer]::SerializeToSTring($newApplication,$true)
    $applicationClass = [WMICLASS]"\\$($sccmserver)\$($wminamespace):SMS_Application"
    $newApplication = $applicationClass.createInstance()
    $newApplication.SDMPackageXML = $newApplicationXML
    $tmp = $newApplication.Put()
    #Reload the application to get the data
    $newApplication.Get()
    HI,
    after trying during a long time, I always get the same error when executing line:
    $newDeploymentType = New-Object  Microsoft.ConfigurationManagement.ApplicationManagement.DeploymentType($newDeploymentTypeID,"Script")
    I have change to "MSI" installer and get the same error.
    Any help please.
    New-Object : Exception calling ".ctor" with "2" argument(s): "Invalid deployment technology id: Script"
    At C:\borrar\borrar.ps1:38 char:22
    + $newDeploymentType = New-Object  Microsoft.ConfigurationManagement.ApplicationMa ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidOperation: (:) [New-Object], MethodInvocationException
        + FullyQualifiedErrorId : ConstructorInvokedThrowException,Microsoft.PowerShell.Commands.NewObjectCommand
    SCCM 2012 SP1 CU3 thanks

  • ASA 5500X Etherchannel With Mixed Copper and Fibre Ports Fail

    ASA5500x - 9.1x
    Unable to configure an etherchannel using a mixture of the on board UTP and an SFP interface from the ASA-IC-6GE-SFP-A module (which does support etherchannels unlike the SSM-4GE= ). Both are configured to run 1Gbps. Can anyone confirm that you cannot mix the two.
    Cisco documentation advices "All interfaces in the channel group must be the same type and speed. The first interface added to the channel group determines the correct type and speed. ". However it does not elaborate on the definition of "type".
    Error shown "WARNING: GigabitEthernet0/0 is not compatible with GigabitEthernet1/2 and will be suspended (speed of GigabitEthernet0/0 is 1000 Mbps, GigabitEthernet1/2 is 1000 Mbps)".

    There are no nameif configurations on either port, the firewall is new and had no previous configuration. The etherchannel is partially formed but one or the other will is suspended (depends on which on was added second). Have done "clear config interface" on both interfaces and port-channels, still no joy. The downstreams are a pair of Cisco NX5Ks, with a VPC.
    interface GigabitEthernet0/0
    channel-group 10 mode active
    no nameif
    no security-level
    no ip address
    interface GigabitEthernet1/2
    channel-group 10 mode active
    no nameif
    no security-level
    no ip address
    interface Port-channel10
    speed 1000
    duplex full
    nameif INSIDE security-level 100
    no ip address
    Group  Port-channel  Protocol  Span-cluster  Ports
    ------+-------------+---------+------------+------------------------------------
    10     Po10(U)           LACP          No     Gi0/0(s)   Gi1/2(P)

Maybe you are looking for