Link flap problem?

Hello everyone,
Quick question about what causes a "link flap failure"
Here is the output
11-07-2005 18:48:38 Local7.Warning 172.16.208.184 1737: *Mar 13 05:47:09.196: %PM-4-ERR_DISABLE: link-flap error detected on Gi0/1, putting Gi0/1 in err-disable state
11-07-2005 18:49:10 Local7.Error 205.110.152.19 9281: 1w3d: %LINK-3-UPDOWN: Interface FastEthernet0/5, changed state to up
11-07-2005 18:50:53 Local7.Warning 172.16.208.184 1738: *Mar 13 05:49:23.765: %PM-4-ERR_RECOVER: Attempting to recover from link-flap err-disable state on Gi0/1
11-07-2005 18:50:55 Local7.Error 172.16.208.184 1739: *Mar 13 05:49:26.137: %LINK-3-UPDOWN: Interface GigabitEthernet0/1, changed state to up
I leave the errdisable recovery on and it brings the port back up once the timer goes.
What causes this link flap?
Thanx

Hello there 8)
From the previously mentioned switch:
Gi0/1 TRUNK TO ISF159 connected trunk a-full a-1000 1000BaseLX
CONTRA#sh run | begin Gig
interface GigabitEthernet0/1
description TRUNK TO AS
switchport mode trunk
This is from the connected switch:
Gi0/1 TRUNK TO CONTRACTO connected trunk a-full a-1000 1000BaseLX
AS#sh run | begin Gig
interface GigabitEthernet0/1
description TRUNK TO CONTRACTORS
switchport trunk encapsulation dot1q
switchport mode trunk
no ip address
Thanx for any help

Similar Messages

  • WLC 5508 reboot cause switch port link flap error disable

    Hi All
    today my customer call me saied after reboot WLC , the switch port was err-disable , the cause is link flap
    after we reboot 3 times , the switch port link flap err-disable every time
    does anyone to meet the same problem??
    we don't know why the WLC rebboot will cause it , it just normal action on device
    the WLC version is 7.4.100.0
    link switch with access port , no port channel , no portfast
    Asa Hung          2013/05/30

    Hello Asa,
    As per your query i can suggest you the following solution-
    Complete these steps to reset the WLC to factory default settings using the CLI:
    Enter reset system at the command prompt.
    At the prompt that asks whether you need to save changes to the configuration, enter Y or N. The unit reboots.
    When you are prompted for a username, enter recover-config to restore the factory default configuration.
    The WLC reboots and displays the  Welcome to the Cisco WLAN Solution Wizard Configuration Tool message.
    Use the configuration wizard to enter configuration settings.
    Note: Once the WLC is reset to defaults, you need a serial connection to the WLC in order to use the configuration wizard.
    Hope this will help you.

  • Link-flap faulty port

    Hi,there
    I have a Catalyst 2950 switch which was connected to a 3620 Cisco router.The router had hw problems and was repaired.After that,I tried to connect the repaired router to the 24th port of the switch,where it was.But the LED was off and I saw the port was in err-disable state because of link-flap.I've connected my router to the 22nd port of the switch and everything was fine.The 22nd and the 24th port have the same configuration now.I've entered the "no shut" command on int 24 but the state remained err-disabled.I've entered the err-disable recovery interval 30 but the output of sh errdisable detect recovery was ErrDisable Reason Timer Status
    udld Disabled
    bpduguard Disabled
    security-violatio Disabled
    channel-misconfig Disabled
    vmps Disabled
    pagp-flap Disabled
    dtp-flap Disabled
    link-flap Disabled
    psecure-violation Disabled
    gbic-invalid Disabled
    dhcp-rate-limit Disabled
    unicast-flood Disabled
    loopback Disabled
    Timer interval: 30 seconds
    Interfaces that will be enabled at the next timeout:
    switch#
    Is there a hw problem with the port because of the faulty router in the past?Or is there another way to re-establish the state of my port so I can use it?Thank you for your time!

    I would not think this is an hardware issue. To restore port, you need to do a shut first and then no shut. For automatic recovery, you need to configure "errdisable recovery cause all" or "errdisable recovery cause link-flap".

  • Does iphone 4's dailymotion link have problem?

    does iphone 4's dailymotion link have problem?

    gdgmacguy wrote:
    you will not be able to use it as that phone is forever locked to Sprint.
    Not true. In fact Sprint will unlock the sim slot for customers in good standing.

  • 2960s Link-Flap issue.

    I've recently had a few ports on 48 way 2960s go in to err mode.
    Bit of digging and they have been disabled due to link flapping. I disconnected the devices to check cables etc and all checked out. I've since repatched in another stacked 2960s without issue.
    The switch with the issue seems to have got progressively worse, what started with a couple of ports now has gone to gi1/0/33-40 are now disabled due to flapping.Even though none of the ports are now in use. I've restarted the switch just in case it was having a special moment but no luck.
    show log displays
    000062: Dec 17 19:30:19.490: %PM-4-ERR_DISABLE: link-flap error detected on Gi1/0/40, putting Gi1/0/40 in err-disable state
    Switch attempts to recover after 300s with no luck. Just to confirm there is nothing patched in to the effected ports.
    Any suggestions or is it it RMA time.

    Hello Leo Laohoo,
    Thank you for the quick reply,
    I mentioned earlier in the thread that I've unpatched and tested the cables and have moved the devices in to another switch all working fine. Ports also have recover on too, and still are in error mode.
    Below is test result on one port which shows fine.
    Interface Speed Local pair Pair length        Remote pair Pair status
    Gi1/0/33  auto  Pair A     0    +/- 0  meters N/A         Normal
                    Pair B     0    +/- 0  meters N/A         Normal
                    Pair C     0    +/- 0  meters N/A         Normal
                    Pair D     0    +/- 0  meters N/A         Normal
    Regards
    Rob

  • Fcip link flapping priodically

    We have a 9509 at the HQ site and a 9216 in the DR site connected via a DS3.
    There are preiodic times when the fcip link will flap and come back up, sometimes it will continue for minutes and has happened for several hours with this error:
    %PORT-5-IF_DOWN_TCP_MAX_RETRANSMIT: %$VSAN 50%$ Interface fcip1 is down(TCP conn. closed - retransmit failure)
    originally the fcip profile was configured for 1000 max bandwidth and it was suggested to change it to something closer to the DS3 and this change was made:
    fcip profile 1
    ip address 10.1.2.1
    tcp max-bandwidth-mbps 41 min-available-bandwidth-mbps 30 round-trip-time-ms 4
    tcp send-buffer-size 5000
    It made no difference at all. There is connectivity to the DR site during the flapping, I can see the bandwidth spike up, but there should be plenty to handle the load during the flapping.
    Last night the serial interface of the DS3 was showing the tx load 65/255 and rx was 5/255 during the problem.
    I am wondering, would the "min bandwidth" setting cause a "retransmit failure"?
    That seems like more of a tcp/ip issue that an interface configuration issue, but I cannot find any reason for the flap.
    No interface errors, but I have seen the ping response times go from 3ms to 25ms during this time, an indication of congestion somewhere.
    Does anyone have any ideas?
    There ar no errors on any of the interfaces for the DS3 or the fcip.

    thanks for the reply,
    Where do I make these changes and can you explain the logic behind them?
    "enabling ip compression" I think compression is enabled in mode1 if I remember correctly
    "and disabled fccit" what does this do?
    "change the Rx buffer to defaults 16" is this in place of:
    tcp send-buffer-size 5000
    Are you talking about 16K rather than 5K?

  • VPC trouble - link flapping between C3750 stack and Nexus 5596

    Hi All,
    I have configured 1 vPC's between 2 Nexus 5596 and 1 stack C3750 switch. The links in the stack are distributed over both members.
    Gi1/1/1  -> Eth 1/44  NX 5596-02
    Gi 2/1/1 -> Eth 1/45  NX 5596-02
    Gi 1/1/2 -> Eth 1/46  NX 5596-01
    Gi 2/1/2 -> Eth 1/47  NX 5596-01
    The same logic is for another stack C3750 to the same pair of Nexus 5596 switches.
    The problem is that the links from the vPCs keep flapping at random moments - 1-2 times per hour.
    The network is not loaded at this time and the same issue is on both vPC's.
    the flaps in the nexus 5596 looks like this
    %ETH_PORT_CHANNEL-5-PORT_DOWN: port-channel108: Ethernet1/44 is down
    %ETH_PORT_CHANNEL-5-FOP_CHANGED: port-channel108: first operational port changed from Ethernet1/44 to Ethernet1/45
    %ETHPORT-5-IF_DOWN_INITIALIZING: Interface Ethernet1/44 is down (Initializing)
    %ETH_PORT_CHANNEL-5-PORT_UP: port-channel108: Ethernet1/44 is up
    %ETHPORT-5-IF_UP: Interface Ethernet1/44 is up in mode trunk
    On the stack is just up/down the pair interface.
    I started few debugs on the stack and captured the folowing output:
    C3750X-02#im_if_stack_relationship_add: Posting the ACP job for stack add for 5018.10902
    im_if_stack_relationship_add: Posted the ACP job for stack add successfully
    im_add_ifstackentry: higher_if_index = 5018 lower_if_index = 10902
    im_add_ifstackentry: Failed to delete nolayerelem from NoLowerLayerTree for higher_ifIndex = 5018
    im_add_ifstackentry: Failed to delete nolayerelem from NoHigherLayerTree for lower_ifIndex = 10902
    im_add_ifstackentry: Deleted nolayerelems from NoHigherLayerTree and NoLowerLayerTree
    im_add_ifstackentry: Failed to insert stackelem into StackTree
    Jul 12 03:35:26.122: %LINEPROTO-5-UPDOWN: Line protocol on Interface TenGigabitEthernet2/1/2, changed state to downim_if_stack_relationship_add: Posting the ACP job for stack add for 5018.10902
    im_if_stack_relationship_add: Posted the ACP job for stack add successfully
    im_add_ifstackentry: higher_if_index = 5018 lower_if_index = 10902
    im_add_ifstackentry: Failed to delete nolayerelem from NoLowerLayerTree for higher_ifIndex = 5018
    im_add_ifstackentry: Failed to delete nolayerelem from NoHigherLayerTree for lower_ifIndex = 10902
    im_add_ifstackentry: Deleted nolayerelems from NoHigherLayerTree and NoLowerLayerTree
    im_add_ifstackentry: Failed to insert stackelem into StackTree
    Jul 12 03:35:29.058: %LINEPROTO-5-UPDOWN: Line protocol on Interface TenGigabitEthernet2/1/2, changed state to up
    Do someone have any idea what happens here ?
    The configuration is ok because i have another vPC connected to FEX's and is working fine.
    Kind regards,

    Hello,
    Problem solved after  upgrade to the last version of NX OS  6.0.2.N2.3
    BR,

  • Remote Delta link setup problem with Bean / Access Service

    Hello,
    I am trying to setup Remote Delta Link (RDL) between two portals. (Both portals same version - EP 7.0 EHP1 SP 05 - are in the same domain)
    I already have the Remote Role Assignment working without any issues.
    The following have been done successfully:
    1. Same user repository has been setup for both the portals
    2. Setup trust between producer and consumer (SSO working fine)
    3. Producer added and registered succesfully on consumer
    4. Permissions setup on producer and consumer
    4. pcd_service user with required UME actions setup
    I am able to see all the remote content in the Consumer portal.
    When I try to copy the remote content and paste it as local content, I am getting the following error:
    Could not create remote delta link to object 'page id'. Could not connect to the remote portal. The remote portal may be down, there may be a network problem, or your connection settings to the remote portal may be configured incorrectly.
    After increasing the log severity, I am able to see the following in Default Trace:
    com.sap.portal.fpn.transport.Trying to lookup access service (P4-RMI) for connecting to producer 'ess_int' with information: com.sap.portal.fpn.remote.AccessServiceInformation@31c92207[connectionURL=hostname.mycompany.com:50004, shouldUseSSL=false, RemoteName=AccessService]
    com.sap.portal.fpn.transport.Unable to lookup access service (P4-RMI) with information: com.sap.portal.fpn.remote.AccessServiceInformation@31c92207[connectionURL=hostname.mycompany.com:50004, shouldUseSSL=false, RemoteName=AccessService]
    AbstractAdvancedOperation.handleDirOperationException
    [EXCEPTION]
    com.sap.portal.pcm.admin.exceptions.DirOperationFailedException: Could not retrieve the bean / access service to connect with producer
    Could not retrieve the bean / access service to connect with producer
    Like you can see above, there is some bean / access service which is not retrieved successfully. I am not sure if this is a permission problem on the consumer.
    I have checked that the P4 ports are configured correctly (standard - not changed) and I am able to telnet from producer to consumer (and vice versa) on the P4 port.
    I am stuck at this point and am not able to find any information on this.
    I would really appreciate if some one can point me in the right direction.
    Thank you for reading.
    - Raj

    Hi Raj,
    Please check your config of the P4 port on the producer.  Is it really 50004 (check SystemInfo of the producer)?
    I do think there's a problem with the P4 communication since RDL requires P4 connection.
    Do you have load balanced consumer-producer connection? Please refer to this blog for further details
    Little known ways to create a load balanced Consumer – Producer connection in a FPN scenario
    Regards,
    Dao

  • Purch. Req. to COPA link causing problems for PO Goods Receipt

    A problem just started occuring in the past week and a half where our Warehouse staff could not receive in goods due to error: "Complete PA transfer structure FI".
    What I have found out is that when a Purch. Req. is created with Account Assignment "F" (Internal Order - GR), the corresponding EKBN segment is being created with a Profitability Analysis segment ID (EKBN-PAOBJNR) and the Functional Location field (EKBN-FKBER) is left blank.
    Previously, the PA Seg ID has been blank and the Functional Location fields has always contained a value.
    This COPA link issue is causing havoc in our Receiving department and I can not find if there was a configurator's transport that caused it (no is fessing up to anything), or if a customer in the MM system set some type of flag -or- is some G/L Account was set up incorrectly that is causing a link to COPA when the PR eventually gets received into inventory.
    Help.

    I have checked the KEI2 before and for our Assignment 30 we have "Other Costs", and in the "Source" for the Assignment Lines for #30, we have defined a Group (OTHERCOSTS).
    This group or set contains the Cost elements which we now have to add to, every time we come across a new cost element or G/L account that is assigned to a PO with line items of Account Assignment Category "F".
    The problem is that approximately 3 weeks ago if a PO was created with type "F" line items and the G/L account (cost element) in the Account Assignment portion of the PO was not one that was in the OTHERCOSTS Group/Set ... we had no problem doing the Goods Receipt of the PO -AND- a PA segment was created as well.
    For now, we are just adding any new Cost elements to our OTHERCOSTS set if the need arises.

  • Command link navigation problems in IE but not firefox

    Hi,
    I've developed an application using JSF and SDO. I have several pages where the user is displayed data from the database and pages where the user can add data , edit data and delete data.
    Each page has a jsp fragment contained in the page. This is based on faces and is the naviation menu. Each link in the menu is a command link and has navigation rules which are global. Now the problem I get is that when I sometimes nvaigate between pages using the navigation or command links in a page the page just refreshes and displays the same page again. But if I keep trying to click the link again then after a few attempts the link goes to the page i've requested. I've added system outs on the actions for the links to see if they are getting called when the page just refreshes. The answer is no as the system out line is never printed unless the action of the link is actually executed.
    Now the problem is that this only occurs in ie and NOT in firefox. I'm really confused now!!
    Here is some techinical details to help narrow down my situation:
    I'm using wsad 5.1.2 which has faces 1.0, ie 6, firefox 1.0.3.
    Any help would be appreciated!!

    doh! i've solved this problem now....well for now its working perfectly but i'll have to do a bit more testing.
    For anyone that has this problem here was my solution...
    - In IE i went to tools > general tab > settings
    from this menu choose check for newer versions of stored pages to automatically. I previously had every visit to the page.
    This seems to have fixed my problem and the reason why it worked in firefox was because the settings for caching were different.

  • Archive Link Authorization problem for Business Partner.

    Hi Experts,
    Currently we are attaching documents to respective objects through Tr. OAWD & these documents are available in service for object as attachment, until this it is working fine.
    But we are facing problem of authorization for archive link of ISU- Business Partner. Letu2019s say we had two users USER-A & USER-B responsible to upload documents of Business partners started with 1 & 2 respectively.
    We needed authorization control for USER A&B so that,
    USER-A should upload documents for Business Partner 1001 to 1999
    & USER-B should upload documents for Business Partner 2001 to 2999
    we need to know can we restrict USER A&B so that they can not upload documents for Business Partner for which they are not responsible. we allready checked the roles "SAP_BC_SRV_ARL_*  " but not found useful to restrict USER A&B.
    Thanks in advance....

    Hi Sam,
    as this sounds like you search for suitable authorization objects I think that the authorization trace in transaction ST01 could be useful for you. For further information please see the following link: http://wiki.sdn.sap.com/wiki/display/PLM/AuthorizationTraceintransactionST01
    Best regards,
    Christoph

  • Link colour problem when previewed in IE

    I'm using DW CS4 on a PC.
    Problem:   I have successfully (thanks to this forum!) changed the colour of some links on my site (two different types) and it works great in all the browsers except for Internet Explorer. The main links throughout my site have been changed to blue (active) and orange (hover), and the links in my footer have been changed to white (active) - they are on a dark blue background - and orange (hover). In Internet Explorer my main links appear as a purple colour (active) instead of blue and the hover is orange. The links in the footer haven't changed to white (active). Again, hover has changed to orange.
    Because I'm still building the site I haven't got it on line yet so I can't provide a link, but I have attached the code. Can anyone help me fix this??

    John,
    Thankyou so much for your reply - it worked! Now I have all my links working beautifully and I couldn't be happier!     All I have to do now is tackle the next task, i.e. forms, and then hopefully the site will be complete. I must admit, if it wasn't for the help I get on this forum I wouldn't have been able to do half of it.
    Many thanks once again.
    Vickie

  • Linked lists problem -- help needed

    Hello again. I've got yet another problem in my C++ course that stems from my use of a Mac instead of Windows. I'm going to install Parallels so I can get Windows on my MacBook and install Visual Studio this week so that I don't have to deal with these discrepancies anymore, but in the meanwhile, I'm having a problem here that I don't know how to resolve. To be clear, I've spent a lot of time trying to work this out myself, so I'm not just throwing this up here to have you guys do the work for me -- I'm really stuck here, and am coming here as a last resort, so I'll be very, very appreciative for any help that anyone can offer.
    In my C++ course, we are on a chapter about linked lists, and the professor has given us a template to make the linked lists work. It comes in three files (a header, a source file, and a main source file). I've made some adjustments -- the original files the professor provided brought up 36 errors and a handful of warnings, but I altered the #include directives and got it down to 2 errors. The problematic part of the code (the part that contains the two errors) is in one of the function definitions, print_list(), in the source file. That function definition is shown below, and I've marked the two statements that have the errors using comments that say exactly what the errors say in my Xcode window under those two statements. If you want to see the entire template, I've pasted the full code from all three files at the bottom of this post, but for now, here is the function definition (in the source file) that contains the part of the code with the errors:
    void LinkedList::printlist( )
    // good for only a few nodes in a list
    if(isEmpty() == 1)
    cout << "No nodes to display" << endl;
    return;
    for(CURSOR = FRONT_ptr; CURSOR; CURSOR = CURSOR-> link)
    { cout << setw(8) << CURSOR->name; } cout << endl; // error: 'setw' was not declared in this scope
    for(CURSOR = FRONT_ptr; CURSOR; CURSOR = CURSOR-> link)
    { cout << setw(8) << CURSOR->test_grade; } cout << endl; // error: 'setw' was not declared in this scope
    As you can see, the problem is with the two statements that contain the 'setw' function. Can anyone help me figure out how to get this template working and get by these two errors? I don't know enough about linked lists to know what I can and can't mess with here to get it working. The professor recommended that I try using 'printf' instead of 'cout' for those two statements, but I don't know how to achieve the same effect (how to do whatever 'setw' does) using 'printf'. Can anyone please help me get this template working? Thank you very, very much.
    For reference, here is the full code from all three files that make up the template:
    linkedlist.h (header file):
    #ifndef LINKED_LINKED_H
    #define LINKED_LINKED_H
    struct NODE
    string name;
    int test_grade;
    NODE * link;
    class Linked_List
    public:
    Linked_List();
    void insert(string n, int score);
    void remove(string target);
    void print_list();
    private:
    bool isEmpty();
    NODE *FRONT_ptr, *REAR_ptr, *CURSOR, *INSERT, *PREVIOUS_ptr;
    #endif
    linkedlist.cpp (source file):
    #include <iostream>
    using namespace std;
    #include "linkedlist.h"
    LinkedList::LinkedList()
    FRONT_ptr = NULL;
    REAR_ptr = NULL;
    PREVIOUS_ptr = NULL;
    CURSOR = NULL;
    void Linked_List::insert(string n, int score)
    INSERT = new NODE;
    if(isEmpty()) // first item in List
    // collect information into INSERT NODE
    INSERT-> name = n;
    // must use strcpy to assign strings
    INSERT -> test_grade = score;
    INSERT -> link = NULL;
    FRONT_ptr = INSERT;
    REAR_ptr = INSERT;
    else // else what?? When would this happen??
    // collect information into INSERT NODE
    INSERT-> name = n; // must use strcpy to assign strings
    INSERT -> test_grade = score;
    REAR_ptr -> link = INSERT;
    INSERT -> link = NULL;
    REAR_ptr = INSERT;
    void LinkedList::printlist( )
    // good for only a few nodes in a list
    if(isEmpty() == 1)
    cout << "No nodes to display" << endl;
    return;
    for(CURSOR = FRONT_ptr; CURSOR; CURSOR = CURSOR-> link)
    { cout << setw(8) << CURSOR->name; } cout << endl; // error: 'setw' was not declared in this scope
    for(CURSOR = FRONT_ptr; CURSOR; CURSOR = CURSOR-> link)
    { cout << setw(8) << CURSOR->test_grade; } cout << endl; // error: 'setw' was not declared in this scope
    void Linked_List::remove(string target)
    // 3 possible places that NODES can be removed from in the Linked List
    // FRONT
    // MIDDLE
    // REAR
    // all 3 condition need to be covered and coded
    // use Trasversing to find TARGET
    PREVIOUS_ptr = NULL;
    for(CURSOR = FRONT_ptr; CURSOR; CURSOR = CURSOR-> link)
    if(CURSOR->name == target) // match
    { break; } // function will still continue, CURSOR will
    // mark NODE to be removed
    else
    { PREVIOUS_ptr = CURSOR; } // PREVIOUS marks what NODE CURSOR is marking
    // JUST before CURSOR is about to move to the next NODE
    if(CURSOR == NULL) // never found a match
    { return; }
    else
    // check each condition FRONT, REAR and MIDDLE
    if(CURSOR == FRONT_ptr)
    // TARGET node was the first in the list
    FRONT_ptr = FRONT_ptr -> link; // moves FRONT_ptr up one node
    delete CURSOR; // deletes and return NODE back to free memory!!!
    return;
    }// why no need for PREVIOUS??
    else if (CURSOR == REAR_ptr) // TARGET node was the last in the list
    { // will need PREVIOUS for this one
    PREVIOUS_ptr -> link = NULL; // since this node will become the last in the list
    REAR_ptr = PREVIOUS_ptr; // = REAR_ptr; // moves REAR_ptr into correct position in list
    delete CURSOR; // deletes and return NODE back to free memory!!!
    return;
    else // TARGET node was the middle of the list
    { // will need PREVIOUS also for this one
    PREVIOUS_ptr -> link = CURSOR-> link; // moves PREV nodes' link to point where CURSOR nodes' points
    delete CURSOR; // deletes and return NODE back to free memory!!!
    return;
    bool Linked_List::isEmpty()
    if ((FRONT_ptr == NULL) && (REAR_ptr == NULL))
    { return true; }
    else
    { return false;}
    llmain.cpp (main source file):
    #include <iostream>
    #include <string>
    #include <iomanip>
    using namespace std;
    #include "linkedlist.h"
    int main()
    Linked_List one;
    one.insert("Angela", 261);
    one.insert("Jack", 20);
    one.insert("Peter", 120);
    one.insert("Chris", 270);
    one.print_list();
    one.remove("Jack");
    one.print_list();
    one.remove("Angela");
    one.print_list();
    one.remove("Chris");
    one.print_list();
    return 0;

    setw is the equivalent of the field width value in printf. In your code, the printf version would look like:
    printf("%8s", CURSOR->name.c_str());
    I much prefer printf over any I/O formatting in C++. See the printf man page for more information. I recommend using Bwana: http://www.bruji.com/bwana/
    I do think it is a good idea to verify your code on the platform it will be tested against. That means Visual Studio. However, you don't want to use Visual Studio. As you have found out, it gets people into too many bad habits. Linux is much the same way. Both development platforms are designed to build anything, whether or not it is syntactically correct. Both GNU and Microsoft have a long history of changing the language standards just to suit themselves.
    I don't know what level you are in the class, but I have a few tips for you. I'll phrase them so that they answers are a good exercise for the student
    * Look into const-correctness.
    * You don't need to compare a bool to 1. You can just use bool. Plus, any integer or pointer type has an implicit cast to bool.
    * Don't reuse your CURSOR pointer as a temporary index. Create a new pointer inside the for loop.
    * In C++, a struct is the same thing as a class, with all of its members public by default. You can create constructors and member functions in a struct.
    * Optimize your function arguments. Pass by const reference instead of by copy. You will need to use pass by copy at a later date, but don't worry about that now.
    * Look into initializer lists.
    * In C++ NULL and 0 are always the same.
    * Return the result of an expression instead of true or false. Technically this isn't officially Return Value Optimization, but it is a good habit.
    Of course, get it running first, then make it fancy.

  • Database Link.  Problem in Forms. Baffled!

    Hoping someone can help.
    I'm working on a system that has a form on it with a problem. Although there is a currently compiled and working version of this form available, I cannot get it to compile.
    The situation is this.
    There are 2 databases, MINX a 9i database, and PROD an APPS 11i database.
    On the database PROD exists a view called MTL_ITEM_CATEGORIES_V.
    SELECT is granted on this to the APPSINQ user.
    On the database MINX exists a public synonym MTL_ITEM_CATEGORIES_V, which points at the view MTL_ITEM_CATEGORIES_V on the PROD database by way of a public database link, also called PROD. The database link uses the APPSINQ user on the PROD database.
    (once the set_org_context, and nls_language have been set)
    From SQL on the MINX database, I can select from the public synonym, MTL_ITEM_CATEGORIES_V, and rows are successfully returned from the MTL_ITEM_CATEGORIES_V view on the PROD database. This is all ok and good.
    However, in the main form, is a trigger which does a select from the public synonym and this will not compile.
    I get the error : identifier 'CATEGORY_SET_ID' must be declared.
    It's like it can't see the category_set_id column in the view. However, if I create a new block, and base it on the public synonym, the category_set_id column is there for me to choose. Meaning that forms CAN see the column.
    Am baffled! Anyone ??

    Hi
    I´ve got some problems with synonyms and dblinks in forms too. Try creating a local view based on the remote view usign the dblink (do not use the public synonym) and try to compile again.
    I think in some cases the compiler gets lost trying to follow synonyms and links. a forms bug maybe?

  • Web link creation problem

    Hi experts
    I have en number of web links in my INDD document. While i am exporting the document as PDF everything works fine. But the problem is some of the web links are changed to local file link in the output PDF
    link in the indesign: www.arl.co.uk/some_text/some/new.htm
    link in the exported PDF: file:///current_file_path/www.arl.co.uk/some_text/some/new.htm
    is anyone experienced this before.
    I am using ID CS3 windows.
    Thanks in advance

    Thanks a lot for fast reply ..
    unfortunatelly when i write my serializer, i can't use it in JDeveloper - syntax of map files in jdev 10.1.3 is different from the one used in the document and when i want to do mapping with the wizard - the wizard always allerts "you must specify a QName for each mapping" - and Qname is specified (maybe bug?)
    i have created java obejcts using xmlbeans (i tried toplink and several others too) .. parsing marshallling and unmarshalling works fine, but i'm not still able to create web service with these objects.
    Thanks a lot for any help
    Tomas

Maybe you are looking for