How to use ImageContr​ol on another thread out main

Hi All,
I'm looking to use ImageControl (ImageControl.fp) on another thread out main thread 
In my second thread i try to update image but i have a error (This panel operation can be performed (if a top-level panel) only in the thread in which the panel was created, or (if a child panel) only in the thread in which the top-level parent panel was created.)
Here my code
Main thread :
ImageControl_ConvertFromDecoration (panelHandle, PANEL_IMAGECTRL, 0);
ImageControl_SetZoomToFit (panelHandle, PANEL_IMAGECTRL, 1);
ImageControl_SetAttribute (panelHandle, PANEL_IMAGECTRL, ATTR_IMAGECTRL_SHOW_SCROLLBARS, 0);
 hdleThread = CreateThread(NULL, 0,  (LPTHREAD_START_ROUTINE) ThreadTest,  NULL,  0, &idThread);
Secand thread :
int ThreadTest (void * data)
ImageControl_SetZoomToFit (panelHandle, PANEL_IMAGECTRL, 1);
iIdError  =    ImageControl_SetAttribute (panelHandle, PANEL_IMAGECTRL, ATTR_IMAGECTRL_IMAGE, imageToDisplay);
// iIdError  = -129
Could you help me ?
Thankyou

many thanks.  I should have thought of the need for using the Target Display Mode. 
tony

Similar Messages

  • How to use temporary interface in another interface as derived table in 10g

    Hi ,
    Can somebody please tell me how to use temporary interface in another interface as derived table in 10g.
    I have an option in odi 11g to this task.But i am working on odi 10g for my project.So that please help me to do this task.
    I can able to create temporary interface in 10g ,but i dont know how to use that temporary interface in another inerface as derived table.
    Thanks in Advance
    Thanks,
    Srikanth A

    A temp interface CANNOT be used as a derived table in ODI 10g.
    All you can do is to drag and drop the temp interface as the source in the mapping.
    PS. Please remember to assign correct/helpful points to the people who help you in the forum.

  • In SQLScript, how to use EXEC to call another procedure with parameters in procedure?

    Hi experts,
    In SQLScript, How to use EXEC to call another procedure with input and output parameters in procedure?thanks very much

    Hi Sagar,
    thank you! I generate another procedure with an input parameter and an output parameter in a procedure. Then i need to call the generated procedure using EXEC. Here is my code:
    create procedure ftest1(out sum_num bigint)
    as
    begin
    declare fa_output bigint;
    declare v_sql_drop varchar(200);
    declare v_sql varchar(500);
    declare cursor c_cursor1 for select num from TABLE1;
    --v_sql_drop := 'drop procedure fe';
    --exec v_sql_drop;
    v_sql := 'create procedure fe(in i_num bigint,out o_num bigint) as begin';
    v_sql := :v_sql || ' o_num := :i_num * 2 + :i_num * :i_num;';
    v_sql := :v_sql || ' end';
    exec v_sql;
    open c_cursor1;
    for c_item as c_cursor1 do
    exec 'call fe(c_item.num,o_num=>fa_output)';
    if sum_num is null then
    sum_num := fa_output;
    else
    sum_num := :sum_num + fa_output;
    end if;
    end for;
    close c_cursor1;
    end;
    The underline code is using exec to call the generated procedure. But this method cannot work. Any suggestion? thanks again!

  • How to use different Vlans outside another gateway in sg-300 28?

    dear all
    how shall i use different vlans outside another gateway in sg-300 28?
    Example:
    vlan2 192.168.2.0/24 gateway 192.168.2.1 outside router gateway 192.168.2.254
    vlan3 192.168.3.0/24 gateway 192.168.3.1 outside router gateway 192.168.3.254
    should me doing in sg-300 28?
    thanks.

    Hi Amin,
    Leave the switch in Layer 2 mode 
    Cable  VLAN2  to the to the outside router gateway 192.168.2.254 interface
    cable  VLAN3  to the to the outside router gateway 192.168.3.254 interface
    Excuse the rough diagram
    Make the port going to the outside router gateway,  untagged in the vlans they will be transporting. (I am assuming that the router gateway is not vlan aware.)
    IP hosts will most likely get DHCP from the router gateway.  The IP hosts will then automatically send IP traffic to the router gateway.
    VLAN 1 in my switch,  could  then be the only interface within the switch  that has a IP address associated  with it,  for management purposes.
    I can see from you post,  that English is not your first language,  if you want to speak to someone,  you can ask a question by going to;
    www.cisco.com/go/sbsc
    regards Dave

  • How to use once SC in Another SC, and How use one DC in another DC

    Hi all,
    I am new to DC and SC's concetp.
    we have got two  abc.sca  and xyz.sca files which contains  some DC's kind of the functionality. So, now we need to create new SC called MyComp.sca and i need to create one new DC caleed "display_dc" in this.
    So this DC need to call the DC's which are available in the above .sca files. how to build this.
    How to use once .sca file in another.
    How to call dc from another sca of the dc.
    how to use from one dc to another dc.
    do i need to define the depency in the SLD when i am create the new SCA with using SCA files.?
    REgards
    Vijay

    I will try to give you a place to begin...
    SC are Software Components. Think of them as development products, like MS Word or Adobe Reader. They include sets of DCs, development components. DCs are smaller units, like programs and libraries in the SCs.
    Software architects define SCs in SLD and also define two types of dependencies between them:
    - build time (required to compile and build)
    - runtime (required during execution)
    SCs themselves are "buckets" for DCs, so dependencies between SCs describe dependencies between DCs they include. Think of that the same way as we we say "SAP Visual Admin (SC) depends on JDK (SC)". It means that swing apps of Visual admin (DCs) need java classes packaged in JDK (DCs).
    This will help:
    http://help.sap.com/saphelp_nw70/helpdata/EN/42/d27865d006136ae10000000a1553f7/frameset.htm
    DCs interact between themselves by exposing "public parts" (SAP webdynpro terminology), allowing one DC to access objects of another DC.
    Here it explained in more details:
    http://help.sap.com/saphelp_nw70/helpdata/EN/62/06108b6af0264a9a5393fd787ea3c9/frameset.htm
    http://help.sap.com/saphelp_nw70/helpdata/EN/3b/13d6de881a8f4daac3d28e1652a2bb/frameset.htm
    I tried to explain it in asimple terms.
    Hope it helped.
    Regards,
    Slava

  • How to use same object in another vi file.

    Hi i am new to OOP in labview.
    How to use (ACCESS) same Object in multiple VI fiels in labview.
    in c# if we use same name space , then we can acces the object .
    i dont know how to use it in labview.
    and also i need to know , how to use oop in large applications

    Well LVOOP tries to be this...
    And the Actor Framework tries to be this... Using some of LabVIEW's object oriented components.
    You can have LVOOP without Actor Framework, but you can't have the Actor Framework without LVOOP.  You can however have other actor based designs without LVOOP but honestly few go this route because classes help force the developer to work inside the constructs of the design.
    Also quit yelling so much.  And before you try taking on LabVIEW's object oriented designs (and Actor for crying out loud) I'd suggest taking some beginner training which can be found at the bottom of this page.
    https://decibel.ni.com/content/docs/DOC-40451

  • Does anyone know how to use music transfered from another phone to the iphone as ringtones?

    Does anyone know how to use ringtones that I put on my iphone from my previous phone? It went in as music and now I cant use as ringtones and figure out how to put it as ringtones.

    Two ways to do this:
    Download an app, such as RMakerPro, which uses music on your phone to create ringtones.
    Plug in to iTunes and find where your ringtones are listed. Drag them to your desktop, and then you will need to change the file type to .m4r, which can be done at www.freefileconvert.com.

  • How to use bootcamp in mackbook air  with out Disk drive..please help

    Please help me how to install windows 8 using boot camp with cd drive to install on patition mac HDD

    It is almost 99.9% in the FAQ and How To on the support page and inside Boot Camp Assistant instructions (and pdf)
    http://www.apple.com/support/bootcamp
    Walks you through how to use USB flash devices

  • HT1338 how to use tap to zoom in and out?

    I have tried to tap using Mt Lion to zoom and out on a web page and it would do it. Can anyone pls advise?

    In an application like Safari, it's a Double-tap with one finger on the Magic Mouse or a double-tap with two fingers on the Trackpad.  Check System Preferences > Mouse/Trackpad to make sure the option is checked.

  • How to use selected row on another tab ?

    Hi,
    I created a table with a number of rows, containing a objectid and other stuff.
    When I select 1 or more rows and click a button,
    my application is doing his thing,
    and finally I got a message that all went fine.
    When I select another tab in that same page,
    I want to display the previously selected object id's.
    I created a getter and setter in my backingbean for these id's.
    When I print them on the first tab, they are available,
    but when I click the other tab, they dissapear....
    Anyone who can help me how to do this ?
    So I need to set a String in 1 tab, and display it after I changed to another tab.
    Thanks.

    Hi,
    I'm not using a VO.
    I have in memory an array of selected id's.
    They should be printed on another tab , but when I click that tab, they are empty.
    If I display them on the same tab, they get filled out after I clicked the button.
    But navigating away from that tab clears the contents.
    Maybe some code could help :
    in my backingbean_method :
    RowKeySet rks = graph_table.getSelectedRowKeys(); => graph_table is the table using a VO and displaying some rows. (binding)
    while(itr.hasNext())
    key = itr.next();
    graph_table.setRowKey(key);
    Object o = graph_table.getRowData();
    JUCtrlHierNodeBinding rowData = (JUCtrlHierNodeBinding) o;
    Row row = rowData.getRow();
    objectid[i] = row.getAttribute("Objectid").toString(); => array of objectid[] contains all selected objectids I want to display in another tab.
    title = objectid[0]; => just to try one
    i++;
    I added a getter and setter method for title in the backing bean.
    In my JSPX page, I use : #{FNI_backing_bean.title}

  • SQLLOADER : How to use to Id from another table

    Hi ,
    We want to use sqlloader to load data from input file into
    multiple temporary tables, which will be called by us as 'Load
    Tables'.We will have three directories 'Input' , 'Working' and 'Acrhive'
    . All input files before processing will be in 'input' directory, during
    the time of processing file is moved from 'input' directory to 'Working'
    directory. After processing file is moved from 'Working ' directory to
    'Archive' directory. Here is our requirement in detail.
    Step 1 : Read the file from input directory.
    Step 2: Insert a record into control table, which will have
    information like input file name and system generated unique control id.
    Step 3: Move the file to working directory.
    Step 4: Call Sql Loader executable command and load the input file into
    multiple 'Load tables'. For each of the record that is loaded into 'Load
    Table' we also want to capture 'Control Id' to make sure the source of
    the record.
    Our question is, how do we make it happen in sql loader. It will be
    highly appreciated if any one has any information on it .
    Please reply back by email.
    Thanks
    Satish

    1) Why not name your ID as the ROWNUM, so text line 1 becomes ID=1, etc.
    2) Another way to do this is to place the ID into your text files.
    Even if you could read the ID from a database table, which you can - one way I can think of is functions, you still need a key value from which you would find the specific ID on which you are working.
    And if you had that key value - why not just use that as the Id.
    Or maybe, I misunderstood the question.
    I hope that helped,
    Eric Kamradt

  • How to use old phone on another line after upgrade?

    Let's say that I've 2 lines, one with iPhone 4 and another with iPhone 5. If I upgrade the iPhone 5 to iPhone 6, how can I replace the iPhone 4 on the other line with the now extra iPhone 5?

    Get a new SIM card for the iPhone 5 (they're free at your local Corporate Verizon store or by calling Customer Service).  You can then activate it on-line via your MyVerizon account if you're the Account Owner and logged in as such.

  • How to use JPA in a worker thread?

    I'm using WebLogic 10.3.5.0 with JPA 2.0 and have the following scenario:
    - user needs to start a task takes some time to complete;
    - this task needs to read and write to DB;
    One solution would be to write a worker and use the WorkManager feature to start this from an session EJB.
    How should I use JPA from this worker to access the DB in a transactional manner?

    You should be able to use it as normal.
    Your worker class is probably not injected like your SessionBean, so you would either need to pass the EntityManager, or look it up either through JNDI if container managed, or Persistence if application managed.
    For transactions, you either need to use JTA directly if using JTA, or use JPA transactions if using RESOURCE_LOCAL.

  • How to use a project in another project

    I am learning Java, Activiti and Vaadin - all at once. I am so new to Java I am not even sure how to ask this question. I have been searching and trying for the last couple of hours.
    I am following a book on Vaadin. They have example code. It needed some classes from example code at their site (http://dev.vaadin.com/svn/doc/book-examples/trunk/). I used Subversive to "download" the project that has all the source code in a project. This is where I am stuck.
    I have a project I am using to experiment with. I tried quite a few different things. I suspect that I need the whole project I downloaded to be packaged in some way and then import that into my project.
    How do I do what I need to do?

    >
    I suspect that I need the whole project I downloaded to be packaged in some way and then import that into my project.
    >
    In order of recommended preference
    1. Do NOT try to learn three interdependent technologies like that at the same time. Sample code for one project may use advanced features of one of the other projects. Learn the basics of each technology one at a time before you start combining them.
    2. Download the pre-built jar files and then add them to your classpath. That site has a release folder where you can find the jar files
    http://dev.vaadin.com/svn/releases/
    3. Download the source files (you say you did) and build THEIR project manually then use those jar files in your project. For someone new to Java that would NOT be recommended. You may not have the tools needed to do the build properly and you will spend more time trying to get the build working when you would be better off using the time to learn Java. They may use Eclipse while you may be using NetBeans. Their pre-packaged build scripts may not work at all with NetBeans.
    4. Add their source files to your project. The kicker here is that they may be using other third-part jar files and you will need to find and download the correct versions of those. See item #2 above.

  • How to use the Ip4s with another carrier network?

    Hi,
    I bought an IP4S from Walmart without contract (original price). Can I use the Tmobile on it? If not, how can I do?
    Thanks,

    Yes, but it requires actions that will void your warrenty and presumably can't be explained here. Google it, lots of answers there...

Maybe you are looking for