DLL function map one cluster to another

this is the call that you would make from the C++ side of the DLL.
bind(sock, (struct sockaddr *)&sin, sizeof(sin));
I am wondering if there is a good way of doing it in labview.
Thanks

What I am trying to do is call bind from Labview. I need to listen to Multicast Messages, and Labview Does not provide that capability. At least not that I could find. If it does then I do'nt have to worry. I have written up VI's that do most of the calling to the functions that I need to create a Multicast Socket. There are some Options that need to be set which I can do through c++ dll that are not available in LabView. I am looking for iether a way to call the DLL directly, or to create my own DLL and call that one. So far I have not been able to get anywhere with the creation of my own DLL but if you have resources on that I would appreciate them as well.
Thanks
Eugene

Similar Messages

  • Migrate virtual machine from one cluster to another 2012 r2 SCVMM

    The process of migrating a virtual machine from one cluster to another involves deleting the source vm/vhd/vhdx files. Is there a way to keep these files on the source after the migration is complete? We want to keep the files there just in case there
    are issues and we want to turn the virtual back up on the source.

    Hi,
    For this issue, i think you may ask in:
    http://social.technet.microsoft.com/Forums/en-US/home?category=virtualmachinemanager
    Thanks for your understanding.
    Regards.
    Vivian Wang

  • How to pass a struct to a DLL function and accessing it in another VI

    Hi friends,
                       I am new to labview. I need to create a demo program in labview ,for displaying image from our own image capturing system. We have a  DLL ( build in VC++) containing functions for capturing image from our system. Now I need to create a VI library for some of functions in DLL and Create a Demo program using those created subvi library . I used "Call Function node" and created some of subvi's.
     Some of our DLL functions need to pass struct pointers.  Our function prototype will be similar to the following function.
    __declspec(dllexport) int __stdcall Initialize( unsigned char *imagebuffer,struct config *Configuration);
    The passed struct is similar to
    struct config
      double                val1[3];
      unsigned short   val2;
      bool                    val3;
      bool                    val4[3];    
      unsigned char    val5;    
      unsigned char   val6[3];
      bool                    val7[26];
    For passing "unsigned char *imagebuffer"  I initialized array with "Numeric constant " and set the size of the array and send to the function.
    The problem here is, I used this array in one of the subvi. 
    How can I use the returned imagebuffer array  in my main demo program. How to connect the image array to subvi "Connecter Pane"
    And  which control  can I use to display the image. The image data I get is form of 1-D Array .
    The second problem is,
                                 For passing the structure,  I used "Bundle " and filled the bundle with all the datatypes as in my struct and passed to the function. Is it correct ?  How to access this bundle after returned from function  in another Vi. ie.) How to connect this bundle to the connter pane ?
    Thanks for your valuable suggestions.
    aajjf.
    Message Edited by aajjf on 04-19-2007 05:34 AM

    aajjf wrote:
    Hi friends,
                       I am new to labview. I need to create a demo program in labview ,for displaying image from our own image capturing system. We have a  DLL ( build in VC++) containing functions for capturing image from our system. Now I need to create a VI library for some of functions in DLL and Create a Demo program using those created subvi library . I used "Call Function node" and created some of subvi's.
     Some of our DLL functions need to pass struct pointers.  Our function prototype will be similar to the following function.
    __declspec(dllexport) int __stdcall Initialize( unsigned char *imagebuffer,struct config *Configuration);
    The passed struct is similar to
    struct config
      double                val1[3];
      unsigned short   val2;
      bool                    val3;
      bool                    val4[3];    
      unsigned char    val5;    
      unsigned char   val6[3];
      bool                    val7[26];
    For passing "unsigned char *imagebuffer"  I initialized array with "Numeric constant " and set the size of the array and send to the function.
    The problem here is, I used this array in one of the subvi. 
    How can I use the returned imagebuffer array  in my main demo program. How to connect the image array to subvi "Connecter Pane"
    And  which control  can I use to display the image. The image data I get is form of 1-D Array .
    The second problem is,
                                 For passing the structure,  I used "Bundle " and filled the bundle with all the datatypes as in my struct and passed to the function. Is it correct ?  How to access this bundle after returned from function  in another Vi. ie.) How to connect this bundle to the connter pane ?
    Thanks for your valuable suggestions.
    aajjf.
    Message Edited by aajjf on 04-19-2007 05:34 AM
    You say nothing about how your cluster looks but I'm afraid you did the standard error here and placed arrays in it. That is not what the C structure is representing for several reasons.
    First fixed size arrays in C are inlined inside a structure, so are not a pointer but for the case of your val1 element three doubles.
    Second although not relevant here because of above point: LabVIEW arrays are not the same as C arrays. LabVIEW uses a pointer to a pointer and has the size of the array in elements prepended to the array data. C simply uses a pointer and all the rest is the programmers sorrow. The Call Library Node does convert the top level element of variables you pass according to the type configuration of that parameter but does no conversion of internal elements at all. So passing clusters with anything like arrays or strings is always wrong unless the DLL is aware of the specific datatypes LabVIEW uses.
    Last but not least you can end up with alignment issues. Elements in structures are aligned by every C compiler to a certain value. This value can be defined by the programmer in the project settings or for Visual C through #pragma pack() statements in the C code. The alignment rule says that an variable is aligned to the smaller of the two values that are either a multiple of the variable element size or the alignment setting. Most 32bit code nowadays uses 8 bit default alignment but LabVIEW always uses 1 byte. In your case there is nothing to observe since the large variables are at the beginning. Otherwise you might have had to insert filler elements in the LabVIEW cluster.
    One last thing bool is a C++ type only. Its size is 1 byte and incidentially this is the same LabVIEW uses for Booleans.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Copy the Function Module one server to another server

    Hi Guy's,
    Please help me How to copy the Function module from one server to another server.
    Present requirement is like this, copy the FM from DRH-100 to NRH-100.
    Thanks and Regards,
    Sai

    if it is a zfm, u might have assigned a TR when cretaing this FM.so u need to relese this TR to the desired system.contact ur BASIS for the transport lanscape.
    if it is a standard FM, u better copy this FM to a ZFM and make it as RFC enabled if it is not RFC enabled and call this ZFM from the system in which want to call this FM by giving the logical system id in the destination while calling this FM.

  • How to call a function from one viewmodel to another viewmodel

    Hi ,
    How to call a funtion of another viewmodel in a viewmodel . This help would be much appreciated
    Thank You
    Jeevan Vinay

    Please close your previous threads by marking helpful posts as answer before you start a new one.
    You need to either get a reference to the second view model from the first one or you could use some kind of messenger or event aggregator to pass a message from the first view model to the second one. The latter approach is preferable as it doesn't create
    a tight coupling between the two view model classes.
    Please refer to my blog post for more information and an example of how to use Prism's EventAggregator to do this:
    http://blog.magnusmontin.net/2014/02/28/using-the-event-aggregator-pattern-to-communicate-between-view-models/
    You will need to download and install Prism to be able use the EventAggregator class:
    https://www.nuget.org/packages/Prism/
    Another popular framework out there is the MvvmLight which contains a Messenger class that works pretty much the same. Andy has provided and example of how to use this one:
    http://social.technet.microsoft.com/wiki/contents/articles/26070.communicating-between-classes.aspx
    You can download and install MvvmLight via Nuget (Tools->Nuget Package Manager->Package Manager Console in Visual Studio):
    https://www.nuget.org/packages/MvvmLight/
    Please remember to close your threads by marking all helpful posts as answer and then start a new thread if you have a new question.

  • How can I call a public function in one component from another component?

    I have two components: Form and Confirmation.  Form is a Canvas and Confirmation is a TitleWindow.
    Form contains several controls and a submit button.  Confirmation contains an OK button.  When the user clicks the submit button, the Confirmation appears over the Form (Form is blurred).  When the user clicks the OK button on the Confirmation, I want to run a function on Form to set some default values in the controls.
    How can I address the function in the Form component from the Confirmation component so I can fire the function?
    Thanks!

    Here is the source
    CustomForm.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="400" height="300">
    <mx:Script>
    <![CDATA[
    public function callBack(): void {
    lblStatus.text = "Success";
    ]]>
    </mx:Script>
    <mx:Label id="lblStatus"/>
    <mx:Form x="50" y="50" verticalGap="15">
            <mx:FormHeading label="Send us comments" />
            <mx:FormItem label="Full Name:">
                <mx:TextInput id="fullName" />
            </mx:FormItem>
            <mx:FormItem label="Email:">
                <mx:TextInput id="email" />
            </mx:FormItem>
            <mx:FormItem label="Comments:">
                <mx:TextArea id="comments" />
            </mx:FormItem>
            <mx:FormItem>
                <mx:Button id="submit"
                    label="Submit" />
            </mx:FormItem>
         </mx:Form>
    </mx:Canvas>
    CustomTitle.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml"
    layout="absolute" width="200" height="80"
    showCloseButton="true" close="closeMe(event)"
    backgroundAlpha="1"
    color="#173553" backgroundColor="#EEEEEE"
    headerColors="#FFFFFF, #CBCCCC"
    borderColor="#666666" borderStyle="solid">
    <mx:Script>
    <![CDATA[
    import mx.managers.PopUpManager;
    public var callBack: Function = new Function();
    private function closeMe(event: Event): void {
    PopUpManager.removePopUp(this);
    callBack();
    ]]>
    </mx:Script>
    <mx:HBox width="100%" height="100%" horizontalAlign="center" verticalAlign="bottom">
    <mx:Button id="btnOK" label="OK" click="closeMe(event)" />
    </mx:HBox>
    </mx:TitleWindow>
    TitleWindowSample.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application
    xmlns:mx="http://www.adobe.com/2006/mxml"
    xmlns="*"
    layout="absolute"
    width="100%" height="100%"
    creationComplete="init()">
    <mx:Script>
    <![CDATA[
    import mx.managers.PopUpManager;
    private function init(): void {
    customForm.submit.addEventListener(MouseEvent.CLICK, onMouseClick);
    private function onMouseClick(event: MouseEvent): void {
    customForm.lblStatus.text = "";
    var customTitle: CustomTitle = new CustomTitle();
    customTitle.callBack = customForm.callBack;
    PopUpManager.addPopUp(customTitle, this);
    PopUpManager.centerPopUp(customTitle);
    ]]>
    </mx:Script>
    <mx:VBox
    width="100%" height="100%"
    verticalAlign="middle" horizontalAlign="center">
    <CustomForm id="customForm" width="500" height="300">
    </CustomForm>
    </mx:VBox>
    </mx:Application>

  • How do i map one field to another in control file via SQL Loader

    Can someone please reply back to this question
    Hi,
    I have a flat file (student.dat delimiter %~| ) using control file (student.ctl) through sql loader. Here are the details.
    student.dat
    student_id, student_firstname, gender, student_lastName, student_newId
    101%~|abc%~|F %~|xyz%~|110%~|
    Corresponding table
    Student (
    Student_ID,
    Student_FN,
    Gender,
    Student_LN
    Question:
    How do i map student_newId field to student_id field in STUDENT DB table so that new id should be inserted in student_id column. How do i specify the mapping in control file. I dont want to create a new column in student table. Please let me know the best way to do this.
    Can someone please reply back to this question.
    My approach:
    In control file i will sepecify the below, Is this a best approach?. Do we have any othe way?
    STUDENT_ID *(:STUDENT_NEWID)*,
    STUDENT_FN,
    GENDER,
    STUDENT_LNAME,
    STUDENT_NEWID BOUNDFILLER
    Thanks
    Sunil
    Edited by: 993112 on Mar 13, 2013 12:28 AM
    Edited by: 993112 on Mar 13, 2013 12:30 AM
    Edited by: 993112 on Mar 13, 2013 12:31 AM
    Edited by: 993112 on Mar 18, 2013 2:52 AM

    OK, ok...
    Here is the sample data:
    101%~|abc%~|F %~|xyz%~|110%~|
    102%~|def%~|M %~|pqr%~|120%~|
    103%~|ghi%~|M %~|stu%~|130%~|
    104%~|jkl%~|F %~|vwx%~|140%~|
    105%~|mno%~|F %~|yza%~|150%~|Here is the control file:
    LOAD DATA
    INFILE student.dat
    TRUNCATE INTO TABLE STUDENT
    FIELDS TERMINATED BY '%~|' TRAILING NULLCOLS
      student_old  FILLER
    , student_fn
    , gender
    , student_ln
    , student_id
    )And here is the execution:
    SQL> CREATE TABLE student
      2  (
      3    student_id   NUMBER
      4  , student_fn   VARCHAR2 (10)
      5  , gender       VARCHAR2 (2)
      6  , student_ln   VARCHAR2 (10)
      7  );
    Table created.
    SQL>
    SQL> !sqlldr / control=student.ctl
    SQL*Loader: Release 11.2.0.3.0 - Production on Tue Mar 19 14:37:31 2013
    Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
    Commit point reached - logical record count 5
    SQL> select * from student;
    STUDENT_ID STUDENT_FN                     GENDER STUDENT_LN
           110 abc                            F      xyz
           120 def                            M      pqr
           130 ghi                            M      stu
           140 jkl                            F      vwx
           150 mno                            F      yza
    SQL>:p

  • Mapping one clip onto another successfully. HOW

    I should know how to do this but I simply dont.
    I need to do a simple imposition of one video clip over a background clip.
    I need to make it look like my video is playing on a Times Square Jumbotron.
    I know how to size down my imposed clip.
    What I dont know is how to distort the screens perspective to match the background and how to increase my clip's size as the background shot zooms in to fill the screen.
    I know this isnt hard to do but I simply dont know the technique.
    Im assuming the size change is done with keyframes, but how.
    If you can answer this for me I'd be hugely grateful!
    Thanks.

    Use the Distort tool to, well, distort the perspective. Use it drag the corners to match the screen in your shot. So select your layer in the Canvas, then press the D key to activate the Distort tool.
    As for the second thing, that's basically motion tracking, and while FCP isn't the optimal place for this, you can certainly use it to do what you're asking in this scenario. From the sound of things, you'll need to keyframe the scale parameter over the course of the shot. And, oh, don't forget to keyframe the 4 corners of the Distort parameter as well.
    In case you're not up to speed, this is all found in the Motion tab, which will be available to you once you place your clip in the Timeline then double-click on it to open it in the Viewer. You might have to fiddle with it for a bit (if you've never keyframed) but you'll get the hang of it.

  • Mapping a number to another

    hi
    I need to map one number to another on some scale...i.e numbers from -90 to +90(including floating point numbers upto 1 decimal point precision) should be mapped to numbers from 0 to 1800.
    eg.
    -90 = 0
    -89.9 = 1
    -89.8 = 2
    -89 = 10
    +89 = 1790
    +89.1 = 1791
    +90 = 1800
    How do I do this?

    hi
    I need to map one number to another on some
    scale...i.e numbers from -90 to +90(including
    floating point numbers upto 1 decimal point
    precision) should be mapped to numbers from 0 to
    1800.
    eg.
    -90 = 0
    -89.9 = 1
    -89.8 = 2
    -89 = 10
    +89 = 1790
    +89.1 = 1791
    +90 = 1800
    How do I do this?take ur input number to float variable f1.
    and multiply f1 to 10 then add 900. i.e ur output
             System.out.println(f1*10+900);

  • Can I Call method on one JVM from another through a dll?

    Let me explain.
    I have this java jar file that I can only have one instance of running at any given time. I'm using a shared data segment in a dll to store a bool indicating whether the program is already running or not. If it's already running, I have to not run the second instance and give focus to the current running instance.
    The jar file calls a native method "canInstantiate()" on a dll to see if there's already an app running. If there isn't, the env and obj are stored in the shared data segment of the dll and we return true. If there is already an instance of the program running, I want canInstantiate call a function on the current instance of the jar (like a callback) to tell it to request focus. It's not working. Can someone tell me if my code is right?
    The .h file
    #include "stdafx.h"
    #include <jni.h>
    #include "CardServer.h"
    #pragma data_seg("SHARED") // Begin the shared data segment.
    static volatile bool instanceExists = false;
    static JavaVM *theJavaVM = NULL;
    static JNIEnv* theJavaEnv= NULL;
    static jobject instanceObject = NULL;
    static jmethodID mid = NULL;
    static jclass cls = NULL;
    #pragma data_seg()
    #pragma comment(linker, "/section:SHARED,RWS")
    jdouble canInstantiate(JNIEnv *env, jobject obj);
    jdouble instantiate(JNIEnv *env, jobject obj);
    jdouble uninstantiate(JNIEnv *env, jobject obj);
    void grabFocus();
    </code>
    The .cpp file:
    <code>
    #include "MyFunctions.h"
    #include <string.h>
    #include <stdlib.h>
    #include "stdafx.h"
    #include <iostream.h>
    jdouble canInstantiate(JNIEnv *env, jobject obj)
    printf("In canInstantiate!!");
    if (!instanceExists)
    printf("No instance exists!!");
    return (jdouble)0.0;
    else
    printf("An instance already exists!!");
    grabFocus();
    return (jdouble)1.0;
    jdouble instantiate(JNIEnv *env, jobject obj)
    printf("**In CPP: Instantiate!!\n");
    cout << "At start, env is: " << env << endl;
    cout << "At start, obj is: " << obj << endl;
    if (instanceExists == false)
    instanceExists = true;
    theJavaEnv = env;
    instanceObject = obj;
    theJavaEnv->GetJavaVM(&theJavaVM);
    cls = (theJavaEnv)->FindClass("TheMainClassOfTheJar");
    if (cls == 0) {
    fprintf(stderr, "Can't find Prog class\n");
    exit(1);
    mid = (theJavaEnv)->GetMethodID(cls, "grabFocusInJava", "(I)I");
    if (mid == 0) {
    fprintf(stderr, "Can't find grabFocusInJava\n");
    exit(1);
    printf("About to call grabFocusInJava\n");
    grabFocus();
    printf("CPP: After the grab focus command in instantiate!!\n");
    cout << "At end, env is: " << env << endl;
    cout << "At end, obj is: " << obj << endl;
    return 0.0;
    else
    printf("CPP: Finished Instantiate!!\n");
    return 1.0;
    jdouble uninstantiate(JNIEnv *env, jobject obj)
    printf("CPP: In uninstantiate!!\n");
    if (instanceExists == true)
    instanceExists = false;
    theJavaVM = NULL;
    instanceObject = NULL;
    printf("CPP: Finishing uninstantiate!!\n");
    return 0.0;
    else
    printf("CPP: Finishing uninstantiate!!\n");
    return 1.0;
    void grabFocus()
    printf("In CPP::GrabFocus!!\n");
    instanceObject = theJavaEnv->NewGlobalRef(instanceObject);
    cls = (theJavaEnv)->FindClass("CardFormatter");
    if (cls == 0) {
    fprintf(stderr, "Can't find Prog class\n");
    exit(1);
    printf("Got the cls id again!!\n");
    if (cls == 0)
    printf("IT'S INVALID!!\n");
    mid = (theJavaEnv)->GetMethodID(cls, "grabFocusInJava", "(I)I");
    if (mid == 0) {
    fprintf(stderr, "Can't find grabFocusInJava\n");
    exit(1);
    theJavaEnv->CallIntMethod(instanceObject, mid, 2);
    printf("Called grabFocusInJava\n");
    </code>
    thanks in advance

    Can I Call method on one JVM from another through a dll
    ...The rest of your question merely expands on your title.
    And the answer to that question is no.
    When you call a method you are executing a "thread of execution." A thread of execution exists only in a single process. It can not exist in another process.
    If the dll is doing some interesting things then you could call a method that sets a flag. Data can move between instances. But you would then have to have a thread in that different process monitoring that flag. And sharing data in a dll is not a normal process, so it would have to be coded appropriately.
    If all you want to do is set the current focus to the existing application, then that can be done with existing windows functionality. You don't need to do anything special in your dll. You can probably search these forums to find the exact code. If not there are countless examples in windows repositories (like MSDN) on how to do that.

  • Receive a cluster from a dll function

    Hi,
    I have a function in a DLL which returns a C struct.  I want to know how can I receive a cluster from a CLFN?
    struct info:
    struct typedata{
    int a;
    int b;
    const char * c;
    int d;
    int e;
    }data;
    function call:
    const typedata * hostinfo(int param);
    Solved!
    Go to Solution.

    LVCoder wrote:
    Thanks a lot both of you for letting me know about my dumb assumption that 2 different processes can use the same memory space.
    Anyways, I figured out the problem with my code that was reading the double value. 
    the DLL function returns the address of the struct which has 5 elements.
    struct test {
    int a;
    int b;
    int c;
    double d;
    double e;
    suppose the address I receive is 10
    address of test->a = 10
    address of test->b = 14
    address of test->c = 18
    address of test->d = 26 // I was refering it as address 22. but I forgot that I was on a 64 bit machine and that the OS will allocate the whole memory address for a double and won't utilize the 4 bytes left in the previous memory address. 
    thanks!
    That has nothing to do with the bitness of your CPU or the OS. It is only dependent on the compiler alignment setting when you compile your DLL. Microsoft Compilers use a default alignment of 8 bytes. That means every variable or element inside a cluster will be aligned to the smaller one of either its own size or the default alignment.
    You can change the compiler alignment either with a compiler switch or an explicit #pragma iin your source code where you declare the variables or structure typedefs.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Moving WCC cluster setup from one box to another box

    We want to move the existing WCC  (clustered) from one box to another box (both unix). We have the cluster/ folder {which have the folders cs/, vault/, weblayout/} on shared drive mounted in source machine running on 11.1.1.6.0.
    We have installed the same installation in destination box. We want to follow the below steps to move the config., data from source to destination.
    1) Stop servers in source.
    2) Change the db details in weblogic console destination to source db.
    3) Unmount the shared/ folder in source and mount it in destination box. (The vault, weblayout, cs folders will be mapped directly in destination ucm)
    The other qns we have are
    1) Are the above steps are correct and will WCC run without any problems.
    2) Do the domain homes needs to be in sync (because the destination box is a fresh installation)
    Just to test it, I have copied the cluster/cs/ folder from source to destination and the destination content servers are working fine. (I have not copied vault/ weblayout and changing the db)
    I have seen a article on cloning WCC servers
    Is it Possible to Clone Webcenter Content 11g ? (Doc ID 1507480.1)
    It pointed to documentation http://docs.oracle.com/cd/E23943_01/core.1111/e10105/testprod.htm#ASADM11306
    For target already exists, it just asked to migrate config. using CMU. Do I need to worry about domain homes or cluster/cs is enough to run WCC smoothly if they are in sync?
    Thanks,
    Narasa Kumar

    Hi
    Domain home contains information pertaining to weblogic and it's clustering configuration. Most of the WCC related config data will be residing in Oracle_ECM1 and ucm/cs folders. if the domain data changes from source to destination then  there will be difference in behavior based on what changes are done in destination domain.
    Differences/ changes in intradoc.cfg and config.cfg between 2 environments will have impact.
    Better is publish your directory structure and then ask for Q and changes are that response might fit-in-better to your scenario.
    Ideally, have same structure and configuration on destination and then perform movement of WCC. Run a sanity to confirm working use cases and then perform any changes to configuration or other things have you planned.
    Thank you!

  • How do I reorganize my photos on iPad 2?  I need to move (not copy) photos from one album to another.  When I use the copy function to another album, and then try to delete an image from the original album, the system wants to delete the photos from all a

    How do I reorganize my photos on iPad 2?  I need to move (not copy) photos from one album to another.  When I use the copy function to another album, and then try to delete an image from the original album, the system wants to delete the photos from all albums.  Please help.

    You can't do it directly on the iPad - the new album functionality basically only allows you to copy photos into those new albums, you can't move them. The way that I think of it as working is that you are just creating pointers to the photos in those new albums, so if you then delete the original photo on the iPad you therefore automatically delete all the pointers to it.
    If you want to re-organise your albums then you will need to do it on your computer and then sync those albums over to the iPad

  • Indesign CS5 crashing public.dll when copying pages from one document to another

    Hello,
    I have several Lenovo W520 (Core i7-2720, 8GB ram, Quadro 1000M) and a couple Dell M6500 (Core i7, 4GB ram, Quadro FX 2800M) all running Windows 7 Pro x64, the latest video drivers and Adobe CS5, including Indesign 7.0.4.  We have several different Indesign docs that for the purpose of interactive Table of Contents, are copying pages from one to another to end up with one master document.  On the majority of the documents, copying as few as one page to another doc crashes Indesign with the windows system error below. 
    Faulting application name: InDesign.exe, version: 7.0.4.553, time stamp: 0x4d890440
    Faulting module name: Public.dll, version: 7.0.4.553, time stamp: 0x4d8903ca
    Exception code: 0xc0000005
    Fault offset: 0x00038727
    Faulting process id: 0x18c0
    Faulting application start time: 0x01ce1f68465d45de
    Faulting application path: C:\Program Files (x86)\Adobe\Adobe InDesign CS5\InDesign.exe
    Faulting module path: C:\Program Files (x86)\Adobe\Adobe InDesign CS5\Public.dll
    Report Id: fa196aee-8b5b-11e2-9afa-a088b43f1cec
    We have tried working with the documents on different machines (both specs outlined above), and copying different pages from one doc to another in varying quantities.  The documents do not have any link errors or other references that need to be corrected. 
    Any suggestions or other things to look at?
    Thanks.

    HI. Same problem Here. i will now trying to reinstall the software. hopefully it will help me.
    What could be the cause of this error? its not in english sorry for that.
    Název protokolu:Application
    Zdroj:         Application Error
    Datum:         22.4.2013 14:09:32
    ID události:   1000
    Kategorie úlohy:(100)
    Úroveň:        Chyba
    Klíčová slova: Klasické nastavení
    Uživatel:      Není k dispozici
    Počítač:       NB-CZ-1209.cz.corp.mann-hummel.com
    Popis:
    Název chybující aplikace: InDesign.exe, verze: 7.5.3.333, časové razítko: 0x4f6b9e72
    Název chybujícího modulu: Public.dll, verze: 7.5.3.333, časové razítko: 0x4f6b9c77
    Kód výjimky: 0xc0000005
    Posun chyby: 0x000df832
    ID chybujícího procesu: 0xad4
    Čas spuštění chybující aplikace: 0x01ce3f522c7f2f21
    Cesta k chybující aplikaci: C:\Program Files\Adobe\Adobe InDesign CS5.5\InDesign.exe
    Cesta k chybujícímu modulu: C:\Program Files\Adobe\Adobe InDesign CS5.5\Public.dll
    ID zprávy: 7d476cca-ab45-11e2-b201-009c02185dea
    Kód XML události:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Application Error" />
        <EventID Qualifiers="0">1000</EventID>
        <Level>2</Level>
        <Task>100</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2013-04-22T12:09:32.000000000Z" />
        <EventRecordID>12469</EventRecordID>
        <Channel>Application</Channel>
        <Computer>NB-CZ-1209.cz.corp.mann-hummel.com</Computer>
        <Security />
      </System>
      <EventData>
        <Data>InDesign.exe</Data>
        <Data>7.5.3.333</Data>
        <Data>4f6b9e72</Data>
        <Data>Public.dll</Data>
        <Data>7.5.3.333</Data>
        <Data>4f6b9c77</Data>
        <Data>c0000005</Data>
        <Data>000df832</Data>
        <Data>ad4</Data>
        <Data>01ce3f522c7f2f21</Data>
        <Data>C:\Program Files\Adobe\Adobe InDesign CS5.5\InDesign.exe</Data>
        <Data>C:\Program Files\Adobe\Adobe InDesign CS5.5\Public.dll</Data>
        <Data>7d476cca-ab45-11e2-b201-009c02185dea</Data>
      </EventData>
    </Event>

  • Function to fade audio smoothly from one level to another in AS2

    Greetings all.
    I'm a newcomer to Actionscript programming and trying to modify a Flash site template downloaded from TemplateMonster.com (which is an AS2 template).  I've almost succeeded at what I need to do but have run into a couple of brick walls.  One is that I've added a video player to the site and need to make the background music track smoothly fade out when the video starts and fade back in when it ends (or is stopped).  I set up a listener object for the video player that works.  It's the smooth fade of audio levels that doesn't.
    I found an excellent thread from last year (http://forums.adobe.com/message/3236495) in which kglad address the issue of fading audio from one level to another.  Since TemplateMonster's templates set up a master movie clip and then load pages to play within it, and I need to call the function from within the pages, I tried setting it up as a global function.
    So when the overall site initializes, I have this:
    this.createEmptyMovieClip("mcMusictrackHolder", this.getNextHighestDepth());
    var sndAudio:Sound = new Sound(mcMusictrackHolder);
    var nMaxMusicVolume:Number = new Number(mcMusictrackHolder);
    nMaxMusicVolume = 30;
    sndAudio.attachSound("MusicTrack");
    sndAudio.setVolume(nMaxMusicVolume);
    sndAudio.start(0,9999);
    // Here is kglad's function converted to a global function
    _global.fadeSoundF = function(mc:MovieClip,s:Sound,vol:Number,sec:Number):Void
         trace("Getting here with sound at " + s.getVolume());
         clearInterval(mc.fadeI);
         var volumeInc:Number = vol-s.getVolume()/(10*sec);
         mc.fadeI=setInterval(fadeF,100,mc,s,volumeInc,vol);
         trace("Leaving with sound at " + s.getVolume());
    function fadeF(mc:MovieClip,s:Sound,inc:Number,endVol:Number):Void
         s.setVolume(s.getVolume()+inc);
         if(Math.abs(s.getVolume-endVol)<inc)
              clearInterval(mc.fadeI);
    Then within the page that contains the video player (a child of the above), I have this:
    var listenerObject:Object = new Object();
    var sCurrentState:String;
    listenerObject.stateChange = function(eventObject:Object):Void
    sCurrentState = my_FLVPlybk.state;
    if (sCurrentState == "playing")
      fadeSoundF(_root.mcMusictrackHolder,_root.sndAudio,0,1);
    else
      fadeSoundF(_root.mcMusictrackHolder,_root.sndAudio,_root.nMaxMusicVolume,1);
    my_FLVPlybk.addEventListener("stateChange", listenerObject);
    The listener object is working fine - so if instead of calling fadeSoundF I simply do _root.sndAudio.setvolume(0) to mute and _root.sndAudio.setvolume(30) to restore it works fine except that the volume changes abruptly instead of ramping.
    But obviously there's a problem with my effort to convert kglad's function to global and use it that way, because the trace statements tell me the audio is getting set to random levels.  It smoothly ramps all right - but tries to get to -472 or +8212 or other insane numbers.
    Any help with where I'm going wrong would be deeply appreciated.  Keep in mind that although I have some long-ago programming experience in other languages, this environment is completely alien to me and you can feel free to assume I'm completely ignorant.  What I've managed to piece together is largely pulled from online research, which is why there's probably an obvious glaring error in there.  Feel free to provide a response that assumes I know nothing.
    Best,
    Pete

    I added a few more traces.  Here's the new main page:
    this.createEmptyMovieClip("mcMusictrackHolder", this.getNextHighestDepth());
    var sndAudio:Sound = new Sound(mcMusictrackHolder);
    var nMaxMusicVolume:Number = 30;
    sndAudio.attachSound("MusicTrack");
    sndAudio.setVolume(nMaxMusicVolume);
    sndAudio.start(0,99999);
    _global.fadeSoundF = function(mc:MovieClip,s:Sound,vol:Number,sec:Number):Void
              trace("Getting here with level at " + sndAudio.getVolume());
              trace("asking to set it to " + vol + " in " + sec + " second(s).");
              clearInterval(mc.fadeI);
              var volumeInc:Number = vol-s.getVolume()/(10*sec);
              mc.fadeI=setInterval(fadeF,100,mc,s,volumeInc,vol);
              trace("Leaving with sound at " + sndAudio.getVolume());
              trace(" ");
    function fadeF(mc:MovieClip,s:Sound,inc:Number,endVol:Number):Void
              s.setVolume(s.getVolume()+inc);
              if(Math.abs(s.getVolume-endVol)<inc)
                        clearInterval(mc.fadeI);
    Here's sample trace output:
    Getting here with level at 30                  <---- this is on first visiting the page where the listener object initializes and asks it to ramp the audio from its
    asking to set it to 30 in 1 second(s).             current level to the same level (probably because the video is buffering or rewinding and that counts as a state change).
    Leaving with sound at 30
    Getting here with level at 111                <---- this is a second triggering of the function (probably because the video is STOPPED and that counts as a
    asking to set it to 30 in 1 second(s).            state change after buffering).  As of yet the video hasn't been asked to play.
    Leaving with sound at 111
    Getting here with level at 3765               <---- This is what happens when the video is asked to play; since it is asking to leave the level at 30 I'm guessing it is buffering
    asking to set it to 30 in 1 second(s).              again but not playing yet, which is why it's still being asked to set the background to 30 instead of 0.
    Leaving with sound at 3765
    Getting here with level at 3765                <---- NOW the video is actually playing, so it asks to set the background audio to 0.
    asking to set it to 0 in 1 second(s).
    Leaving with sound at 3765
    Getting here with level at -41740             <---- ... and I hit STOP, which generates a request to bring the background audio back to 30.
    asking to set it to 30 in 1 second(s).
    Leaving with sound at -41740
    I should probably replace the if/else on the video player page with a switch/case so the function ONLY gets called when playback actually stops and starts, and doesn't get triggered for every state change.  But I think I still have an error in here someplace...
    Many thanks to kglad for your help!
    Pete

Maybe you are looking for

  • My iPhone 3GS will not activate following update to iOS 6.0.1

    Hi guys, My mate has just been given a new iPhone 3GS, which is locked to the Vodafone network. He has bought a $2 Vodafone SIM to ensure a smooth transition. The issue we are having is that following an update of the iPhone to iOS 6, the iPhone woul

  • How do I connect my iPod remote app with itunes?

    I can't get my remote app to connect with my computer, I've tried everything that I could find in the help menu but I still can't get it to work.

  • Clicking noise from power adapter

    I have a G4 Titanuium and today when I plugged the power adapter into my AC outlet it was making a clicking noise. This is before I plug it into the Powerbook. When I do plug it into the Powerbook I cannot charge my battery. Does anyone know what thi

  • Drilling in multiple analyses at once

    All, I have several graphs on a dashboard, all built off of the same subject area with the data source being a GL Balance cube. So, I have a graphs for revenue by organization, revenue by account, expenses by organization, and expenses by account. I

  • HT4623 resetting iphone 4 with black screen

    black screen other than when i turn it off i can see an apple what can be wrong( yes it is fully charged)! people say to reset it thru itunes but how can i if i cant see whats on my screen