Modbus can't share variables: error -1967353901

Hi guys,
I'm using for my first time the dsc module,
and specially the modbus communication part.
I've tried on winXP (installed on VMware) the given exemples:
Modbus Fundamentals.vi and ModbusSimulator.vi work,
but when i want to build mine, it's going on errors.
 - 1: Error -1967353901 occurred at Shared Variable in P1_server_vi.vi
 Possible reason(s):
 LabVIEW DSC:  (Hex 0x8ABC8FD3) The Modbus I/O server
 failed to connect to the Modbus Ethernet slave device.
 Ensure that the Modbus Ethernet slave device works properly
 and that the connection between the Modbus master and slave
 devices is configured correctly.
 This error or warning occurred while writing the following
 Shared Variable:
 \\My Computer\P1_server_lib\000001
 \\my_ip\P1_server_lib\000001
 - 2: it's running but the values of the shared variables are not shared,
  between the server and the client.
 - 3: when i'm using the library of the given exemples, its working,
  I can even add or remove some variables.
 So i looked the configuration of the given library, and the one
 i've created, to compare them, but they are strickly the same.
 Restarted my PC, run it again still the same errors.
I've tried too on Win7, (no WMware) none of them work,
neither the given exemples or my program.
I've enable all NIs software from the firewall.

Of course,
Thanks for the reply, I'll be pleased to get the why of this matter.
I sent you in a .zip file, two projects and their .lvproj, .vi, .lvlib and .aliases
You have P1_server which is to simulate the server, and P2_client for the client,
using just one shared variable (create bound variable from the serve) named 000001.
An action from the server on the boolean button should occured on client Boolean Led.
But ...
Best Regards
Martin
Attachments:
dsc_modbus_LMartin.zip ‏18 KB

Similar Messages

  • Can read sharred variable only when the vi is ran a second time

    In an initialization VI, a shared variable is populated with information from a config file. There is no problem here. The variable is written to. However, when I read from the shared variable in a second vi, the variable only appears to have content the second time the vi is open and ran. First time the vi is open an ran, it errors, saying the shared variable is empty. I tried saving the shared variable library, click deploy and even auto deploy on the library and then saving the project, but nothing happens. Any experiences, tips, ideas or handfulls of money that may help?

    You have not specified whether you are creating a single-process shared variable or a network published. In both cases, LabVIEW creates the 'client-side' buffer the first time a Shared Variable node
    attempts to read from the shared variable. This behavior
    results in a value not being read the first time or a slighlty longer time on the initial execution. Try to read the variable at least once outside the loop to 'warm up' and then read inside the loop. Have a look at the following article:
    Using the LabVIEW Shared Variable
    Let me know if that helps or if you have additional questions.
    Adnan Zafar
    Certified LabVIEW Architect
    Coleman Technologies

  • Can I share Attributes/Variables between 2 different Class Driver Sessions?

    I am designing a Simulator of Instrumentation following these steps:
    1) re-programming, re-compiling, and re-building the DLLs from the advanced class simulation drivers included in IVI Driver Toolset 2.0 using LabWindows/CVI 7.0;
    2) then i create a VI in LabVIEW 7.0 which calls an IVI Class Driver obtaining the desired simulated output data.
    My problem is that I need to share variables between different DLLs in LabVIEW.
    I want to simulate a circuit which consists of a battery and a resistor. I've got 2 instruments: a DC Power Supply and a Digital Multimeter.
    The DC Power Supply acts as the battery providing a certain voltage level, and the Multimeter measures the Voltage and the Current in the resistor.
    I've designed a VI in LabVIEW which uses 2 different sessions: one which calls the class driver IviDCPwr, and the other one which calls IviDmm.
    I wish to be able to access the attributes from "nisDCPwr.c" in the file "nisDmm.c".
    For example, to write a line like this:
    Ivi_GetAttributeViReal64 (ViSession vi, ViConstString channelName, NISDCPWR_ATTR_MEASUREMENT_BASEV, 0, &reading));
    inside the source code "nisDmm.c" of the advanced class simulation driver.
    The problem is that the only ViSession accessible from nisDmm is the handle from the Digital Multimeter, but not from DC Power Supply.
    Would this be possible? Is it "legal"?
    I've tried another approach through the declaration of external variables, but unfortunately I get a run-time error in LabVIEW.
    The only solution I've found is using auxiliary files going between, through the functions included in the Low Level I/O Library .
    Nevertheless, the solution proposed above would result much more convenient, faster and safer in my application.
    I hope everyone has understood my question, and anyone can help.
    THANK YOU VERY MUCH FOR YOUR TIME!!!

    Doesn't anyone have an answer?
    Or any proposal?
    Or even a clue?
    THANKS!

  • New Adobe Photoshop elements 11-can not share pictures. I do use AOL email. Get error of "Elements 11 Organ. has stopped working,  I have looked into sharing tab and my only option is Adobe email settings.  I do have outlook set up to work on computer run

    New Adobe Photoshop elements 11-can not share pictures. I do use AOL email. Get error of "Elements 11 Organ. has stopped working,  I have looked into sharing tab and my only option is Adobe email settings.  I do have outlook set up to work on computer running windows 8.1  Please help, Mainly use to share pictures.  Thanks!

    One thing puzzles me:
    RedClayFarmer wrote:
    I then found one suggestion that the problem might involve permissions. The suggestion was to right click PhotoshopElementsOrganizer.exe in its installation folder (which on my computer is at at D:\Photo\Elements 11 Organizer) and run Organizer as an administrator. This also failed.
    I don't understand why running the exe from the installation folder would have worked.
    I would have simply tried to run that exe from its real location :
    Sorry, I can't help you more about permissions...

  • Please help i can't share my project I did try in all of them and it doesnt work it apears like that........ The share operation Master File has failed The operation could not be completed because an error occurred when creating frame 608 (error -1). and

    I did try in all of them and it doesnt work it apears like that........
    The share operation Master File has failed
    The operation could not be completed because an error occurred when creating frame 608 (error -1).
    and i dont know what to do plese hlp me....
    Re: when i try to share my project to quicktime aroun 50% appears error -1 and i can't share it what to do please help 

    Double post…

  • Imovie for osx 10.9.4  Rendering Error Can't share!!

    I Can't Share My Movie at All... Not matter what I do, it give the same error!!  Rendering Error -50
    What can I Do???

    Try scanning FROM your Mac. Use Image Capture app in your Applications folder.
    Click once on the scanner on the left side, then click on Show Details along the bottom. Along the right side you will see LOTS of options for scanning and saving.
    Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
    I am employed by HP

  • How can I share Pin variable between two packages?

    Hi every one,
    Is there any one who knows how can I share Pin variable that it is defined with OwnerPin between two packages in java card( with eclipse 3.1),I studied Sharing Interface subject and I knows it teorical but I can not do it practical .
    I can share primitive data type but I can not share Ownerpin.
    If anybody has some sample codes or knows any link ,please inform me.
    My code is same as below:
    //In Server Side
    package ginaPack;
    import javacard.framework.*;
    public class GinaApplet extends Applet implements GinaInterface{
    OwnerPIN pin;
    private GinaApplet (byte[] bArray,short bOffset,byte bLength) {
        pin =new OwnerPIN(PIN_TRY_LIMIT,MAX_PIN_SIZE);
              byte PinTemp[] = new byte[4];
              PinTemp[0] = (byte) 0x31;
              PinTemp[1] = (byte) 0x31;
              PinTemp[2] = (byte) 0x31;
              PinTemp[3] = (byte) 0x31;
              pin.update(PinTemp, (short) (0), (byte) PinTemp.length);       
        public Shareable getShareableInterfaceObject(AID clientAID,byte parameter)
              return  this;
        public OwnerPIN getPinShareable()
             return pin;         
         public void process(APDU apdu)
                      //there are some codes in this here
    }//Interface in Server side
    public interface GinaInterface extends Shareable
          public OwnerPIN getPinShareable();
    }//In Client side
    import ginaPack.*;
    public class UserCardApplet extends Applet {
    private UserCardApplet(byte[] bArray, short bOffset, byte bLength) {
         //there are some codes in this here
    public boolean select() {
              final byte[] Gina_AID={(byte)0x47,(byte)0x69,(byte)0x6e,(byte)0x61,(byte)0x41,(byte)0x70,(byte)0x70,(byte)0x6c,(byte)0x65,(byte)0x74};
              AID GinaAID = JCSystem.lookupAID( Gina_AID, ( short )0,( byte )Gina_AID.length );
              if ( GinaAID == null ) // probably not loaded on card
                        ISOException.throwIt( ISO7816.SW_FUNC_NOT_SUPPORTED );//6a 80
              GinaInterface ff = (GinaInterface) JCSystem.getAppletShareableInterfaceObject(GinaAID,(byte)0);
              if( ff == null )
                   ISOException.throwIt((short)0x0903);
    if ( ff.getPinShareable().getTriesRemaining()== 0 ) return false;
    }My problem is in this line :
    "if ( ff.getPinShareable().getTriesRemaining()== 0 ) return false; "when I select my applet this line throw an exception, ff.getPinshareable includes all of OwnerPin methods(such as getTriesRemaining ,check ,reset, update ,...)but all of them throw exception .
    I think firewal does not allow other packages uses this methods .If my guess is right then what should I do for sharing the variables that they are defined with non primitive data type such as (OwnerPin,Signature,...)
    I'd appriciated for any help.
    yours sincerely,
    Orchid.
    Message was edited by:
    NewOrchid

    Applet 1:
    package com.package1;
    import javacard.framework.*;
    public class Applet1 extends Applet {
        private static final byte tryLimit  = (byte)3;
        private static byte[] pinBytes = {(byte)1, (byte)7, (byte)4, (byte)5, (byte)2};
        private Library1 lib;
        protected Applet1(byte bArray[], short bOffset, byte bLength) throws PINException {
            lib= new Library1(tryLimit, (byte)pinBytes.length);
            lib.update(pinBytes, (short)0, (byte)pinBytes.length);
            register();
        public static void install(byte[] bArray, short bOffset, byte bLength) {
            new Applet1(bArray, bOffset, bLength);
        public void process(APDU apdu) {
            byte status=(byte)0;
            lib.resetAndUnblock();
            if (!(lib instanceof Shareable)) status += (byte)2;
            if (!(lib instanceof MyPIN)) status += (byte)4;
            ISOException.throwIt(Util.makeShort((byte)0x90, status)); // sw indicates tries remaining
        public Shareable getShareableInterfaceObject(AID cltAID, byte parm) {
            return lib;
    }Library1:
    package com.package1;
    import javacard.framework.OwnerPIN;
    import javacard.framework.PINException;
    public class Library1 extends OwnerPIN implements Interface1{
        public Library1(byte tryLimit, byte maxPINSize) throws PINException {
            super(tryLimit, maxPINSize);
    }Interface1:
    package com.package1;
    import javacard.framework.PIN;
    import javacard.framework.Shareable;
    public interface Interface1 extends Shareable {
        boolean check(byte[] pin, short offset, byte length);
        byte getTriesRemaining();
        boolean isValidated();
        void reset();
    }Applet2:
    package com.package2;
    import javacard.framework.*;
    import com.package1;
    public class Applet2 extends Applet {
        private final static byte CLA_TEST = (byte)0x80;  
        private final static byte INS_TEST = (byte)0x20;
        private final static byte P1_AUTHORIZE = (byte)0x00;
        private final static byte P1_DOIT = (byte)0x01;
        private final static byte P1_CHECK_SIO = (byte)0x0a;
        private Interface1 sio;
        protected Applet2(byte bArray[], short bOffset, byte bLength) {
            register();
        public static void install(byte[] bArray, short bOffset, byte bLength) {
            new Applet2(bArray, bOffset, bLength);
        public void process(APDU apdu) {
         byte[] buffer = apdu.getBuffer();
            if ((buffer[ISO7816.OFFSET_CLA] == CLA_TEST) ||
                (buffer[ISO7816.OFFSET_CLA] == ISO7816.CLA_ISO7816)) {
                short bytesReceived = apdu.setIncomingAndReceive();
                switch (buffer[ISO7816.OFFSET_INS]) {
                case ISO7816.INS_SELECT:
                    if (!JCSystem.getAID().equals(buffer, ISO7816.OFFSET_CDATA, buffer[ISO7816.OFFSET_LC]))
                        ISOException.throwIt(ISO7816.SW_APPLET_SELECT_FAILED);
                    sio = (Library1)JCSystem.getAppletShareableInterfaceObject(JCSystem.lookupAID(<fill in parameters>);
                    if (sio == null)
                        ISOException.throwIt(ISO7816.SW_CONDITIONS_NOT_SATISFIED);            
                    break;
                case INS_TEST:
                    switch (buffer[ISO7816.OFFSET_P1]) {
                    case P1_AUTHORIZE:
                        if (!sio.isValidated()) {
                            if(!sio.check(buffer, ISO7816.OFFSET_CDATA, buffer[ISO7816.OFFSET_LC]))
                                ISOException.throwIt(Util.makeShort((byte)0x9A, sio.getTriesRemaining()));
                        break;
                    case P1_DOIT:
                        if (!sio.isValidated())
                            ISOException.throwIt(ISO7816.SW_SECURITY_STATUS_NOT_SATISFIED);
                        sio.reset();
                        ISOException.throwIt(Util.makeShort((byte)0x9A, sio.getTriesRemaining()));                
                        break;
                    default:
                        ISOException.throwIt(ISO7816.SW_INCORRECT_P1P2);                   
                    break;
                default:
                    ISOException.throwIt(ISO7816.SW_INS_NOT_SUPPORTED);
            else {
                ISOException.throwIt(ISO7816.SW_CLA_NOT_SUPPORTED);
    }1. Upload package1
    2. Install Applet1
    3. Select Applet1
    4. Upload package2
    5. Install Applet2
    6. Select Applet2

  • Iphoto can't share via email; error message: Your email did not go through because the server did not reply.

    I can never share via email, using iPhoto. The error: Your email did not go through because the server did not reply. always pops up. I have no problems with my server or internet connection.
    Any ideas?
    thanks.

    Go into iPhoto's Accounts preference pane and delete the   email account there. Then add it back.  If that fails you can select Mail as your email client in iPhoto as that's more reliable and flexible.  It also offers stationary for photos that are not unlike those in iPhoto's client:
    and using Mail as the client will allow you to have a Sent copy automatically.
    OT

  • Can't share in iMovie "Video rendering error: 2"

    hello everyone running osx 10.9 imovie 10.0.1. MacBook air mid 2011.
    can't share video in iMovie, not to file, itunes, vimeo etc.
    help please

    Workoround - working in guest account. Copy the media to the share user folder and then on the guest desktop copy the media from the shared folder to the guest desktop folder. Start iMovie and begin your project on guest account.

  • Can anyone share File-to_file ,file-to-IDOC senarios?

    Can anyone share File-to_file ,file-to-IDOC senarios?if possible with screen shots..

    hi phani..
    refer these blogs
    FILE Related Scenarios
    /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter - FCC
    /people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns - FCC
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file - FCC
    /people/harrison.holland5/blog/2006/12/20/xi-configuration-for-mdm-integration--sample-scenario - FCC - MDM
    /people/shabarish.vijayakumar/blog/2006/04/03/xi-in-the-role-of-a-ftp - FCC
    /people/prateek.shah/blog/2005/06/14/file-to-r3-via-abap-proxy - FCC
    /people/mickael.huchet/blog/2006/09/18/xipi-how-to-exclude-files-in-a-sender-file-adapter - EOIO - File
    /people/jayakrishnan.nair/blog/2005/06/20/dynamic-file-name-using-xi-30-sp12-part--i - Dyanamic File Name
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    /people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
    /people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
    /people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns
    /people/shabarish.vijayakumar/blog/2006/02/27/content-conversion-the-key-field-problem
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    /people/karthiknarayan.kesavan2/blog/2007/08/22/file-content-conversion-for-multi-hierarchical-structure - File Content Conversion for Multi Hierarchical Structure
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/7053...File [original link is broken] [original link is broken] [original link is broken] Adapter (Receiver) - Are we "really" sure about the concepts?
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/7009...Troubleshooting [original link is broken] [original link is broken] [original link is broken] the File Adapter
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/7036...SFTP [original link is broken] [original link is broken] [original link is broken] vs. FTPS in SAP PI
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3509... [original link is broken] [original link is broken] [original link is broken] XI: RFC or ABAP Proxy ? ....ABAP Proxies with attachments
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/4383...How [original link is broken] [original link is broken] [original link is broken] to send any data (even binary) through XI, without using the Integration Repository
    /people/shabarish.vijayakumar/blog/2006/04/03/xi-in-the-role-of-a-ftp... XI in the role of a FTP
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3774...Customise [original link is broken] [original link is broken] [original link is broken] your 'XPATH' Expressions in Receiver Determination
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2114...XPath [original link is broken] [original link is broken] [original link is broken] to show the path (Multiple Receivers)
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/4484...Receiver [original link is broken] [original link is broken] [original link is broken] Determination based on the payload of input data.(Extended-->xpath,Context Object)
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3774...Illustration [original link is broken] [original link is broken] [original link is broken] of Enhanced Receiver Determination - SP16
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2161...Solution [original link is broken] [original link is broken] [original link is broken] to the problem encountered using Variable Substitution with XI-SP12
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2411...Executing [original link is broken] [original link is broken] [original link is broken] Unix shell script using Operating System Command in XI
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/5814...XI/PI [original link is broken] [original link is broken] [original link is broken]: Command line sample functions
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2184...XI [original link is broken] [original link is broken] [original link is broken]: Operation system command - error catching
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1967....Read [original link is broken] [original link is broken] [original link is broken] Excel instead of XML through FileAdapter
    /people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter...NAB the TAB (File Adapter)
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/6713..Content [original link is broken] [original link is broken] [original link is broken] conversion in Sender file adapter-- 2 new useful parameters
    http://sapient.xi.googlepages.com/xi-excellentintegration...... FILE to FILE scenario sending ".jpg" file as attachment with Screen shots
    IDOC related
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2704........IDOC [original link is broken] [original link is broken] [original link is broken] Tunneling.
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3280........Managing [original link is broken] [original link is broken] [original link is broken] bulky flat messages with SAP XI
    https://www.sdn.sap.com/irj/sdn/weblogs? blog=/pub/wlg/5696........Troubleshooting File-to-IDOC Scenario in XI.
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1921........ [original link is broken] [original link is broken] [original link is broken]
    Any flat file to any IDoc
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1819........IDoc [original link is broken] [original link is broken] [original link is broken] to File
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2034........Collection [original link is broken] [original link is broken] [original link is broken] of IDoc to Single File
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1180........ [original link is broken] [original link is broken] [original link is broken] Configuration Tips for a Business Service/Integration Process to send back ALE audit IDOC
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2476........One [original link is broken] [original link is broken] [original link is broken] Logical System Name for serveral BPM Acknowledgements
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2923........Generate [original link is broken] [original link is broken] [original link is broken] Test Case for an IDOC Scenario
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2162........Choose [original link is broken] [original link is broken] [original link is broken] the Right Adapter to integrate with SAP systems
    Regards,
    Satya..

  • Can Grow Vertical Alignment Error in Embedded Report View, but not in .PDF

    Hello,
    I have seen postings about this issue before, but have yet to find a solution. 
    I am using Visual Studio 2008 w/ the basic version of Crystal Reports that is included.
    I have a simple report that displays results of a stored procedure as rows across the report.  One field can be of variable length, anywhere from 0 to 100 characters.  Usually it's something reasonable (less than 40 chars), and so I have only given it so much width in the report.  For when it is longer than that, I turned the "Can Grow" property ON, and set the Maximum Number of Lines property to 0. 
    When the report displays embedded in my Web Form, and this field's data is wider than the space I have allowed, it breaks the data down into multiple lines of the same correct width, as you'd expect, but those lines end up displaced vertically upward several rows, and print directly on top of other data from the above rows, make the report unreadable in that area (and quite ugly overall!).
    If I export this report to a .PDF, it displays perfectly, without the vertical displacement error.
    Anyone know what the official work is on this?  Is there a fix or is this a bug?
    If there is no fix, does anyone know how to direct the report to the .PDF file viewer, so the embedded report remains invisible (and thus hides the ugly error), but the user has the .PDF version to see?  My client ultimately wants to export the report to .PDF, which I have already coded, but it does not open the .PDF Viewer, just saves the report to disk.  However, if I use the Crystal built-in Export button, it first displays a pop-up asking which format to export to, then if .PDF is chosen and okay is clicked, the pop-up switches to contain the .PDF Viewer, and opens the report.  In my user-defined export code, the .PDF is correctly created, but I am missing the step on how to open the .PDF Viewer.
    Any ideas?

    Thanks for the responses.
    Jonathan, moving the field in question to its own details section (details B) did not fix the issue.  The field in question is moved slightly down as its in a new details section with sits slightly lower than details A, but when it has to be broken up into multiple lines, the same issue arises, the field text is displaced vertically upward and sits on top of other data.
    Ludek, I wanted to send the report to a .PDF Viewer in a new browser, and keep the original browser intact.  I'm using code very similar to yours.  To launch the new broswer I added this code to the Page_Load of my main browser:
    btnViewReport.Attributes.Add("onclick", "window.open(Page.aspx', """", """", 'height=200,width=400')")
    When the button is clicked the report is exported, and the new browser opens Page.aspx.
    I use this code in Page_Load of Page.aspx:
            Dim webClient As System.Net.WebClient = New System.Net.WebClient()
            Dim buffer As Byte() = webClient.DownloadData("C:\Reports\Report.pdf")
            If Not buffer.Length.Equals(0) Then
                Response.ContentType = "application/pdf"
                Response.AddHeader("content-length", buffer.Length.ToString())
                Response.BinaryWrite(buffer)
            End If
    Any other ideas on the original vertical displacement issue when using Can Grow, I'd still appreciate it.
    Thanks,
    Scott
    Edited by: Scott Deltorto on Sep 23, 2008 10:15 PM

  • How can i disply the error in my forms which occurs from plsql package

    Dear all
    i am using 10g forms.
    i have a package and in the pkg i am reading data from flat file using UTL_FILE and comparing with what user input in the form .
    If that does not match then it is raising errors . but how can i display those errors in my forms .
    Let say in my PKG The error is "Account no does not match " . this error message i wnat to show in my Forms .
    For the error i have created one block :error.err_dtl.
    I want to show here in :error.err_dtl.

    Hello,
    Several solutions:
    You can write a procedure or a function in that package that returns a Boolean and/or an error message.
    You can also, in your package, raise the RAISE_APPLICATION_ERROR(), then trap this error in the Forms calling code, via the DBMS_ERROR_CODE and DBMS_ERROR_TEXT variables.
    Francois

  • Using HttpServletRequest object to share variables between static methods.

    Does anyone know of the overhead/performance implications of using the HttpServletRequest object to share variables between a static method and the calling code?
    First, let me explain why I am doing it.
    I have some pagination code that I would like to share across multiple servlets. So I pulled the pagination code out, and created a static method that these servlets could all use for their pagination.
    public class Pagination {
         public static void setPagination (HttpServletRequest request, Config conf, int totalRows) {
              int page = 0;
              if (request.getParameter("page") != null) {
                   page = new Integer(request.getParameter("page")).intValue();
              int articlesPerPage = conf.getArticlesPerPage();
              int pageBoundary = conf.getPageBoundary();
                int numOfPages = totalRows / articlesPerPage;  
                // Checks if the page variable is empty (not set)
                if (page == 0 || (page > numOfPages && (totalRows % articlesPerPage) == 0 && page < numOfPages + 1)) {    
                 page = 1;  // If it is empty, we're on page 1
              // Ex: (2 * 25) - 25 = 25 <- data starts at 25
             int startRow = page * articlesPerPage - (articlesPerPage);
             int endRow = startRow + (articlesPerPage);           
             // Set array of page numbers.
             int minDisplayPage = page - pageBoundary;
             if (minDisplayPage < 1) {
                  minDisplayPage = 1;     
             int maxDisplayPage = page + pageBoundary;
             if (maxDisplayPage > numOfPages) {
                  maxDisplayPage = numOfPages;     
             int arraySize = (maxDisplayPage - minDisplayPage) + 1;
             // Check if there is a remainder page (partially filled page).
             if ((totalRows % articlesPerPage) != 0) arraySize++;
             // Set array to correct size.
             int[] pages = new int[arraySize];
             // Fill the array.
             for (int i = 1; i <= pages.length; i++) {
                  pages[i - 1] = i;
             // Set pageNext and pagePrev variables.
             if (page != 1) {
                  int pagePrev = page - 1;
                  request.setAttribute("pagePrev", pagePrev);
             if ((totalRows - (articlesPerPage * page)) > 0) {
                 int pageNext = page + 1;
                 request.setAttribute("pageNext", pageNext);
             // These will be used by calling code for SQL query.
             request.setAttribute("startRow", startRow);
             request.setAttribute("endRow", endRow);
             // These will be used in JSP page.
             request.setAttribute("totalRows", totalRows);
             request.setAttribute("numOfPages", numOfPages);
             request.setAttribute("page", page);
             request.setAttribute("pages", pages);          
    }I need two parameters from this method (startrow and endrow) so I can perform my SQL queries. Since this is a multithreaded app, I do not want to use class variables that I will later retrieve through methods.
    So my solution was to just set the two parameters in the request and grab them later with the calling code like this:
    // Set pagination
    Pagination.setPagination(request, conf, tl.getTotalRows());
    // Grab variables set into request by static method
    int startRow = new Integer(request.getAttribute("startRow").toString());
    int endRow = new Integer(request.getAttribute("endRow").toString());
    // Use startRow and endRow for SQL query below...Does anyone see any problem with this from a resource/performance standpoint? Any idea on what the overhead is in using the HttpServletRequest object like this to pass variables around?
    Thanks for any thoughts.

    You could either
    - create instance vars in both controllers and set them accordingly to point to the same object (from the App Delegate) OR
    - create an instance variable on the App Delegate and access it from within the view controllers
    Hope this helps!

  • Can't share photos using shared Photo Stream with iCloud Control Panel for Windows

    BACKSTORY: My friend took pictures of my family. I want to see the pictures he took. We live about 2.5 hours apart by car. Gas prices are too high for me to just drive down with an external hard drive to get the pictures and I might as well throw my money out the window if I were to ship him a hard drive and he ship it back. SO. I ask him if he would share photos with me and he quickly agreed. He added me to a Photo Stream  he has. ok cool. I recieve the invitation email just fine but this is the error I get when I click on the link:
    ERROR MESSAGE:
    Photo Stream
    Follow these steps to join a shared photo stream
    1.Make sure you have an iPhone, iPad or iPod touch running iOS 6 or a Mac running OS X 10.8.2 withiPhoto 9.4 or Aperture 3.4 or later installed.
    2. Sign in to iCloud on your devices.
    3. Open the invitation email on an updated device and tap the Join this Photo Stream button. 
    WHAT I NEED:
    How can I view shared photo streams using iCloud Windows control panel 2.1.2.0? How can I work around this error message? I don't own any of these products that apple wants me to own in order to view these photos! I don't have the cash to go out and purchase them. What can I do to get "my" photos? Do I have to be signed into my friends apple id to see the shared photos?
    What I've tried:
    I already have the icloud control panel installed and updated to the latest version.
    I'm signed into iCloud on the control panel. (no apple id password issues)
    I have photo stream checked.
    I have my photo stream checked
    I have shared photo stream checked.
    I have tried copying and pasting the link into the address bars of Safari for Windows, Google Chrome, Internet Explorer,  and Firefox respectively and pressing enter to load. all present the same error message.
    I visited iCloud.com to see if there was anywhere to access the shared photo stream there... No option exisits
    Checked my photo stream folder in windows explorer. it's completely empty. I haven't put any of my own photos there so nothings missing per se... I just can't see my friends shared photos.
    MY SET UP:
    Windows 7 64bit Home Premium
    4gb of RAM
    iCloud control panel version 2.1.2.0
    I don't own any version of Outlook, (if that matters. I doubt that it matters at all in this case.)
    I don't have any iOS Devices or a mac capable of 10.8. My MacBook is stuck at 10.6.8. It's a late mid 2008 just before the aluminum unibody computers came out. If I had only waited another month... sigh. Murphy's Law is alive and well.
    any sugestions, especially correct answers, are welcome. please help me figure this out. Thanks in advance.
    Desert_dweller5

    Hello desert_dweller5,
    It sounds like you art trying to access a Shared Photo Stream, but you do not have one of the devices to enable your Apple ID as an iCloud account.  The following article provides information on how Shared Photo Streams work:
    iCloud: Photo Stream FAQ
    http://support.apple.com/kb/HT4486
    The article states that for privately Shared Photo Streams to work, the recipient will not only have to have an Apple ID, but it will have to be an iCloud account:
    Friends and family with iCloud accounts can view your photos in the Photos app on any device using iOS 6 or later; on a Mac in iPhoto 9.4 or Aperture 3.4 or later; on a Windows PC with Windows Vista or later and iCloud Control Panel 2.0 or later installed; or on a second generation or later Apple TV with software version 5.1 or later installed. They can also view your photos on the web if you enable Public Website in the settings or options for your Shared Photo Stream.
    Since you do not have an iCloud account and just and Apple ID, your friend can share the photo stream as a public website so that you can view it, as stated in the same article: 
    Can I share with people who don't have an iCloud account?
    Yes. If you enable Public Website in the settings or options for your shared photo stream your photos will be published to a website that anyone can view in an up-to-date web browser.
    To be able to change an Apple ID to an iCloud account, you would need an iPhone, iPad, or iPod touch with iOS 5 or later or a Mac with OS X Lion v10.7.4 or later as stated in the following article:
    Creating an iCloud account: Frequently Asked Questions
    http://support.apple.com/kb/HT4436
    Best,
    Sheila M.

  • Can I share my iphoto pictures with AT

    Can I share my iphoto pictures with my AT&T Uverse tv?

    Yes, this is exactly how I use iPhoto on my system.
    You do need to update the permissions on the iPhoto directory after it's moved to the Shared folder. the default permissions will only permit your account to fully access the files, your wife's account will get errors or not see thumbnails correctly when accessing the pictures from iPhoto in her account.
    After moving the iPhoto Library into Shared (and with iPhoto closed), Get Info on the iPhoto Library folder and change the Others access to Read+Write. Let it apply to all enclosed folders, also. Then hold down the Option key while starting iPhoto and choose the Shared version of the folder as your Library. Repeat the iPhoto launch w/option key on the other account as well and each user will access the same set of pictures, albums, keywords, etc. Just make sure you don't open iPhoto from both accounts at the same time. Close iPhoto before walking away from the computer or letting the other person logon.

Maybe you are looking for