Static arc to tv

This winter my friend got up to manually switch her LCD flat screen tv off.  Suddenly an electric arc went from the tv to her finger (or vice versa?) and obviously the tv shorted out because now it doesn't work. 
Where might the short be?  Is it worth fixing?
Thanks

Is it worth fixing? Depends on what you paid for it, how old it is, and the screen size. Have you unplugged it from the wall? If not try that and wait a few minutes before you plug it back in. How do you receive the signal? Is it cable TV with a cable box? Is it over the air antennae? Is it satelite TV like Dish or Directv? Have you asked geek squad for any ideas? Just some thoughts as I am not a tech. You need to decide for yourself wheather it is worth it or not. If it is old like 5 plus years and it was not an expensive set then you would probably benefit from the newer technology.
Bob 

Similar Messages

  • Calling a method from a callback function under ARC

    Hi All
    I previously wrote some HIDManager software. The HIDManager references were done in a Objective C class so within this object you have the code:
        IOHIDManagerRegisterDeviceMatchingCallback( k8055HIDManager, k8055BoardWasAdded, (__bridge void*)self );
    Which registers with the HIDManager
    The Callback function which is outside the class was as follows:
    static void k8055BoardWasAdded(void* inContext, IOReturn inResult, void* inSender, IOHIDDeviceRef k8055HIDDevice)
        IOHIDDeviceOpen(k8055HIDDevice, kIOHIDOptionsTypeNone);
        CCVellemanK8055Driver * k8055 = (__bridge CCVellemanK8055Driver *)inContext;
        [k8055 setHardwareConnectionStatus : YES];
    Any how my problem is in converting the code to ARC as under OS X 10.9 SDK and 64bit I'm now getting a EXC_BAD_ACCESS (Code=EXC_I386_GPFLT) at this line
        CCVellemanK8055Driver * k8055 = (__bridge CCVellemanK8055Driver *)inContext;
    although removing the method
    [k8055 setHardwareConnectionStatus : YES];
    will alow it to build but then obviously the app won't work as required.
    Could someone suggest a ARC safe way of accessing the passed instance so I can again call methods on it.
    Cheers
    Steve

    Try using blocks instead. This is the callback I am using for libcurl.
    static size_t callback(
      void * contents, size_t size, size_t nmemb, void * context)
      size_t (^block)(void *, size_t) =
        (__bridge size_t (^)(void *, size_t))context;
      size_t result = block(contents, size * nmemb);
      return result;

  • How do I join together arcs and lines in a single Shape???

    I am out of my depth, I am probably missing something spectacular .... I need to construct a shape from arcs and lines to get something like this, only closed:
    Like a winding river sort of thing... I do not need to draw this I need to have this shape and its area available to me.... How do I join these two arcs and two lines into a shape from which I can find - area.contains(xy.getX(), xy.getY()); , preatty please?
    here is the code that causes numerous errors:
    import java.awt.*;
    import java.awt.Graphics.*;
    import java.awt.Graphics2D.*;
    import java.awt.geom.RectangularShape.*;
    import java.awt.geom.Arc2D;
    import java.awt.geom.Line2D;
    import java.awt.geom.Rectangle2D;
    import java.awt.geom.Area;
    import java.awt.geom.GeneralPath;
    class MyShapes //extends Arc2D
    public static Arc2D outerOne;
    public static Arc2D innerOne;
    public static Line2D upLine, bottomLine;
    public static Area area = new Area();
    public MyShapes(double[] upper, double [] lower)
    outerOne.setArc(upper[0], upper[1], upper[2], upper[3], upper[4], upper[5], (int)upper[6]);
    //                         x,          y,               w,          h,               OA,      AA, int OPEN =1
    innerOne.setArc(lower[0], lower[1], lower[2], lower[3], lower[4], lower[5], (int)lower[6]);
    //outerTR=this.makeClosedShape(outerTopRightArc,middleTopRightArc);
    upLine     = new Line2D.Double(outerOne.getX(),outerOne.getY(),innerOne.getX(),innerOne.getY());
    bottomLine = new Line2D.Double(outerOne.getX()+outerOne.getWidth(),outerOne.getY()+outerOne.getHeight(),innerOne.getX()+innerOne.getWidth(),innerOne.getY()+innerOne.getHeight());
    area = this.joinAll(outerOne,innerOne, upLine, bottomLine);     
    private Area joinAll(Arc2D out, Arc2D in, Line2D one, Line2D two)
    GeneralPath joiner = new GeneralPath(out);
    joiner.append(in, true);
    joiner.append(one, true);
    joiner.append(two, true);      
    Area temp = new Area(joiner);
    return temp;     
    public boolean isInArea(Point xy)
    return area.contains(xy.getX(), xy.getY());     
    public boolean isItClosed()
    return area.isSingular();     
    Thanks

    Glad to hear you find what was wrong. Still, it doesn't the main problem : why is that method crashing?
    Here is what I've done in the mean time. See if it fits your purpose.import javax.swing.*;
    import java.awt.*;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    import java.awt.geom.*;
    public class MyShapes {
         private Arc2D outerOne;
         private Arc2D innerOne;
         private Shape line1;
         private Shape line2;
         public MyShapes(double[] upper, double[] lower) {
              outerOne = new Arc2D.Double(upper[0],
                                                 upper[1],
                                                 upper[2],
                                                 upper[3],
                                                 upper[4],
                                                 upper[5],
                                                 0);
              innerOne = new Arc2D.Double(lower[0],
                                                 lower[1],
                                                 lower[2],
                                                 lower[3],
                                                 lower[4],
                                                 lower[5],
                                                 0);
              line1 = new Line2D.Double(outerOne.getStartPoint().getX(),
                                              outerOne.getStartPoint().getY(),
                                              innerOne.getStartPoint().getX(),
                                              innerOne.getStartPoint().getY());
              line2 = new Line2D.Double(outerOne.getEndPoint().getX(),
                                              outerOne.getEndPoint().getY(),
                                              innerOne.getEndPoint().getX(),
                                              innerOne.getEndPoint().getY());
         public void paint(Graphics2D aGraphics2D) {
              aGraphics2D.draw(outerOne);
              aGraphics2D.draw(innerOne);
              aGraphics2D.draw(line1);
              aGraphics2D.draw(line2);
         public static void main(String[] args) {
              double [] XO= {56, 58, 400, 280, 90, 90};// outter arc
              double [] XI={114, 105, 300, 200, 90, 90}; // inner arc
              final MyShapes myShapes = new MyShapes(XO, XI);
              JPanel panel = new JPanel() {
                   protected void paintComponent(Graphics g) {
                        super.paintComponent(g);
                        Graphics2D g2 = (Graphics2D)g;
                        myShapes.paint(g2);
              final JFrame frame = new JFrame("Test shape");
              frame.addWindowListener(new WindowAdapter() {
                   public void windowClosing(WindowEvent e) {
                        System.exit(0);
              frame.setContentPane(panel);
              SwingUtilities.invokeLater(new Runnable() {
                   public void run() {
                        frame.show();
    }

  • Finit-ARC: boot your system in 4 seconds

    Hi people! I present the reimplementation of FAST-INIT for Archlinux.
    Fast-init is an original init system written in C from Xandros Linux. I did a reimplementation of fast-init and I called it FINIT-ARC.
    Finit-arc can works with all computers and all filesystem types. With it and static kernel I can boot my system in about 3,5 seconds from grub to console login.
    X for me take only 5 seconds. Then in 8 seconds I'm fully operative on my desktop.
    Installation
    Actually finit-arc it's in BETA version and it is present in AUR.
    1 - http://aur.archlinux.org/packages.php?ID=25159
    FOR TESTERS finit-arc-git is avaiable on AUR
    http://aur.archlinux.org/packages.php?ID=26314
    2 - Insert init=/sbin/finit-arc as kernel parameter in /boot/grub/menu.lst
    3 - After installation you must do a boot with traditional init system of Archlinux, and after you can boot with finit-arc. The first boot could be slow.
    Important!
    Finit-arc doesn't support UUIDs. Then you must replace UUIDs with /dev/sdx devices in /boot/grub/menu.lst and /etc/fstab.
    Known Problems
    1) Error width pcspkr on kernel -ARCH
    do !pcspkr into MODULES of rc.conf
    2) Wrong clock time
    3) DBUS or other daemon don't start
    Before start finit-arc you must do a boot with traditional Archlinux init system
    4) Fam and portmap don't stop
    You can use GAMIN instead fam
    5) Network doesn't work
    Insert into MODULES your ethernet module in the first position. Insert into DAEMONS your network daemon (network or net-profiles) in the latest position.
    Logging finit-arc with bootchart
    Edit /sbin/bootchartd and replace the line init="/sbin/init" with init="/sbin/finit-arc"
    Add on your kernel line init=/sbin/bootchartd as parameter (remove init=/sbin/finit-arc)
    Bug reports and testers are welcome
    Last edited by adriano (2009-05-07 20:19:37)

    ohhhhhhhh yeaah |-.-|
    yet another kernel panic
    Kinit: Mounted root (ext4 filesystem) read only
    Finit-ARC - beta 0.2
    finit-arc[1] general protection ip:7fd5a36c0706 sp: 7fffabbb67e8 error:0 in libc-2.9.50[7fd5a3646000+14a000]
    kernel panic - not syncing: Attempted to kill init!
    I install via yaourt finit-arc, after modified my /boot/grub/menu.lst adding the second entry like this:
    # (0) Arch Linux
    title Arch Linux
    root (hd0,6)
    kernel /vmlinuz26 root=/dev/disk/by-uuid/a20131af-7d82-4b29-b0b8-6d23022659c6 ro vga=795
    initrd /kernel26.img
    # (1) Arch Linux without UUID
    title Arch Linux with FINIT-ARC
    root (hd0,6)
    kernel /vmlinuz26 root=/dev/sda9 ro init=/sbin/finit-arc vga=795
    initrd /kernel26.img
    Entry 0 for my normal boot, and entry 1 for finit-arc.
    Next delete all UUID from menu.lst and fstab:
    # /etc/fstab: static file system information
    # <file system> <dir> <type> <options> <dump> <pass>
    none /dev/pts devpts defaults 0 0
    none /dev/shm tmpfs defaults 0 0
    /dev/sda9 / ext4 defaults 0 1
    /dev/sda10 /home ext4 defaults 0 1
    /dev/sda7 /boot ext2 defaults 0 1
    /dev/sda8 swap swap defaults 0 0
    /dev/sda6 /mnt/data ext4 defaults 0 2
    # USB en virtualbox
    none /proc/bus/usb usbfs auto,busgid=108,busmode=0775,devgid=108,devmode=0664 0 0
    and editing /etc/finittab to start kdm:
    #Command that you want execute after boot
    #uncomment it for X login
    #you must set YOURUSERNAME
    #level:/bin/su YOURUSERNAME -l -c "/bin/bash --login -c xinit >/dev/null 2>&1"
    #level:/usr/sbin/gdm --nodaemon
    #level:/usr/bin/xdm -nodaemon
    level:/usr/bin/kdm -nodaemon
    #level:/usr/bin/slim
    After all, reboot my system with the entry 0 from grub and after reboot with entry 1...
    Sorry to repeat, but excuse my poor English
    Last edited by takedown (2009-05-06 19:04:15)

  • TextField on a Arc

    Is is possible to populate a textfield that is on a arc, arched, or half circle? If so how is the best way to do it while keeping the text centered. It's not worth it if I have to make seperate text fields for each letter.

    Hi,
    No, not as far as I know. You can rotate the textfield, but it will remain linear at the selected angle. Individual textfields would work, but it will be incredibly messy. If the text is static (eg not changing at runtime) then you could import it as an image from Illustrator or Photoshop.
    Good luck,
    Niall

  • Problem with Threads and a static variable

    I have a problem with the code below. I am yet to make sure that I understand the problem. Correct me if I am wrong please.
    Code functionality:
    A timer calls SetState every second. It sets the state and sets boolean variable "changed" to true. Then notifies a main process thread to check if the state changed to send a message.
    The problem as far I understand is:
    Assume the timer Thread calls SetState twice before the main process Thread runs. As a result, "changed" is set to true twice. However, since the main process is blocked twice during the two calls to SetState, when it runs it would have the two SetState timer threads blocked on its synchronized body. It will pass the first one, send the message and set "changed" to false since it was true. Now, it will pass the second thread, but here is the problem, "changed" is already set to false. As a result, it won't send the message even though it is supposed to.
    Would you please let me know if my understanding is correct? If so, what would you propose to resolve the problem? Should I call wait some other or should I notify in a different way?
    Thanks,
    B.D.
    Code:
    private static volatile boolean bChanged = false;
    private static Thread objMainProcess;
       protected static void Init(){
            objMainProcess = new Thread() {
                public void run() {
                    while( objMainProcess == Thread.currentThread() ) {
                       GetState();
            objMainProcess.setDaemon( true );
            objMainProcess.start();
        public static void initStatusTimer(){
            if(objTimer == null)
                 objTimer = new javax.swing.Timer( 1000, new java.awt.event.ActionListener(){
                    public void actionPerformed( java.awt.event.ActionEvent evt){
                              SetState();
        private static void SetState(){
            if( objMainProcess == null ) return;
            synchronized( objMainProcess ) {
                bChanged = true;
                try{
                    objMainProcess.notify();
                }catch( IllegalMonitorStateException e ) {}
        private static boolean GetState() {
            if( objMainProcess == null ) return false;
            synchronized( objMainProcess ) {
                if( bChanged) {
                    SendMessage();
                    bChanged = false;
                    return true;
                try {
                    objMainProcess.wait();
                }catch( InterruptedException e ) {}
                return false;
        }

    Thanks DrClap for your reply. Everything you said is right. It is not easy to make them alternate since SetState() could be called from different places where the state could be anything else but a status message. Like a GREETING message for example. It is a handshaking message but not a status message.
    Again as you said, There is a reason I can't call sendMessage() inside setState().
    The only way I was able to do it is by having a counter of the number of notifies that have been called. Every time notify() is called a counter is incremented. Now instead of just checking if "changed" flag is true, I also check if notify counter is greater than zero. If both true, I send the message. If "changed" flag is false, I check again if the notify counter is greater than zero, I send the message. This way it works, but it is kind of a patch than a good design fix. I am yet to find a good solution.
    Thanks,
    B.D.

  • Can I use same IP to static to internal server from external dedicated ip?

    M question is would it cause my problems if I had the outside interface external ip mapped to vlan2 with the same ip address as I am trying to create static route to my server? Or is this OK? Keep in mind these are imaginary ips.
    I was trying to use this command but it was not letting me:
    static (inside,outside) tcp 99.89.69.333 3389 192.168.6.2 3389 netmask 255.255.255.255
    Here is the front end of my config
    ASA Version 7.2(4)
    hostname ciscoasa
    domain-name default.domain.invalid
    enable password DowJbZ7jrm5Nkm5B encrypted
    passwd 2KFQnbNIdI.2KYOU encrypted
    names
    interface Vlan1
    nameif inside
    security-level 100
    ip address 192.168.6.254 255.255.255.0
    interface Vlan2
    nameif outside
    security-level 0
    ip address 99.89.69.333 255.255.255.248
    interface Ethernet0/0
    switchport access vlan 2
    interface Ethernet0/1

    Since you are using the outside interface ip address in your static PAT, you should use the keyword "interface" as follows:
    static (inside,outside) tcp interface 3389 192.168.6.2 3389 netmask 255.255.255.255

  • Compilation error while calling static method from another class

    Hi,
    I am new to Java Programming. I have written two class files Dummy1 and Dummy2.java in the same package Test.
    In Dummy1.java I have declared a static final variable and a static method as you can see it below.
    package Test;
    import java.io.*;
    public class Dummy1
    public static final int var1= 10;
    public static int varDisp(int var2)
    return(var1+var2);
    This is program is compiling fine.
    I have called the static method varDisp from the class Dummy2 and it is as follows
    package Test;
    import java.io.*;
    public class Dummy2
    public int var3=15;
    public int test=0;
    test+=Dummy1.varDisp(var3);
    and when i compile Dummy2.java, there is a compilation error <identifier > expected.
    Please help me in this program.

    public class Dummy2
    public int var3=15;
    public int test=0;
    test+=Dummy1.varDisp(var3);
    }test+=Dummy1.varDisplay(var3);
    must be in a method, it cannot just be out somewhere in the class!

  • Error while running statically linked OCCI application on 11G client

    Hello,
    Till recently we used RogueWave classes to connect to Oracle database both 10G and 11G server. So we used to do a build on 10.2.0.4 client and then use that same build with 10.2.0.4 as well as 11.1.0.7 client to connect to 10G and 11G server databases respectively.
    Now we replaced RogueWave classes with Oracle Template Library solution which is a open source solution and want it to run the same way as in use Oracle 10.2.0.4 client to connect to Oracle 10G database and Oracle 11.1.0.7 client to connect to Oracle 11.1.0.7 database. But here when we used to do a build and link with occi library of 10.2.0.4 client we were unable to run that build by changing oracle client to 11.1.0.7 as name of occi library in Solaris 10.2.0.4 client is libocci.so.10.1 . This is not available in 11.1.0.7.
    So we used static version of same library libocci10.a and we were successfully able to run our application on both 10.2.0.4 as well as 11.1.0.7 client but occasionally we get below message on console although no error is observed in data in databases.
    ld.so.1: oracle: fatal: libskgxp11.so: open failed: No such file or directory
    Here is the details.
    SunOS md1npdsun37 5.10 Generic_141444-09 sun4v sparc sun4v
    Can someone suggest solution to this ?
    Thanks
    Niraj Rathi

    HI Karthick,
    Thanks for your reply.
    while exporting the application it is running properly on NWDS platform as well in Eclipse platform but not in mi client.
    i am sure that,
    <b>MCD Name = Application Name = War file which is MDK_TUTORIAL_SYNC</b>
    Below is my Meta XML file:
    <b><?xml version="1.0" encoding="utf-8" ?>
    - <MeRepApplication schemaVersion="1.1" id="MDK_TUTORIAL_SYNC" version="250901">
      <Property name="CLIENT.BUILDNUMBER" />
      <Property name="C_APPLRESOLVE" />
      <Property name="DATA_VISIBLE_SHARED" />
      <Property name="EN">LANGUAGE</Property>
      <Property name="E_APPLRESOLVE" />
      <Property name="FACADE_C_CLIENT">X</Property>
      <Property name="FACADE_E_CLIENT">X</Property>
      <Property name="HOMEPAGE.INVISIBLE" />
      <Property name="INITVALUE" />
      <Property name="RUNTIME">JSP</Property>
      <Property name="TYPE">APPLICATION</Property>
    - <SyncBO id="ZNWW_EXM01" version="2" type="download" allowCreate="false" allowModify="false" allowDelete="false" reqDirectSync="false">
    - <TopStructure name="TOP">
    - <Field name="SYNC_KEY" type="N" length="10" decimalLength="0" signed="false" isKey="true" isIndex="true">
      <Input type="create">false</Input>
      <Input type="modify">false</Input>
      </Field>
    - <Field name="LAND_TEXT" type="C" length="50" decimalLength="0" signed="false" isKey="false" isIndex="false">
      <Input type="create">false</Input>
      <Input type="modify">false</Input>
      </Field>
      </TopStructure>
      </SyncBO>
      </MeRepApplication></b>
    reffer the above xml file and please find if  i miss any fields.
    regards,
    Venugopal.

  • Static NAT to two servers using same port

    I have a small office network with a single public IP address. Currently we have a static nat for port 443 for the VPN. We just received new software that requires the server the software is on to be listening on port 443 across the internet. Thus, essentially I need to do natting (port forwarding) using port 443 to two different servers.
    I believe that the usual way to accomplish this would be to have the second natting use a different public facing port, natted to 443 on the inside of the network (like using port 80 and 8080 for http). But, if the software company says that it must use port 443, is there any other way to go about this? If, for example, I know the IP address that the remote server will be connecting to our local server on, is there any way to add the source IP address into the rule? Could it work like, any port 443 traffic also from x.x.x.x, forward to local machine 192.168.0.2. Forward all other port 443 traffic not from x.x.x.x to 192.168.0.3.
    Any help would be very much appreciated.
    Thanks,
    - Mike                  

    Hi,
    Using the same public/mapped port on software levels 8.2 and below would be impossible. Only one rule could apply. I think the Cisco FWSM accepts the second command while the ASA to my understanding simply rejects the second "static" statement with ERROR messages.
    On the software levels 8.3 and above you have a chance to build a rule for the same public/mapped port WHEN you know where the connections to the other overlapping public/mapped port is coming from. This usually is not the case for public services but in your situation I gather you know the source address where connections to this server are going to come from?
    I have not used this in production and would not wish to do so. I have only done a simple test in the past for a CSC user. I tested mapping port TCP/5900 for VNC twice while defining the source addresses the connections would be coming from in the "nat" configuration (8.4 software) and it seemed to work. I am not all that certain is this a stable solution. I would imagine it could not be recomended for a production environment setup.
    But nevertheless its a possibility.
    So you would need the newer software on your firewall but I am not sure what devce you are using and what software its using.
    - Jouni

  • In "LOOP ... WHERE ..." the line type of the table must be statically defin

    Hi All,
            I have written the code, for greater than (GJAHR) 2007 and restricted company codes ( table name = ZGLCCODE).
         Here I have written the following the code which is giving an error
    In "LOOP ... WHERE ..." the line type of the table must be statically defin
    ZGLCCODE Contains only restricted company codes.
    Code is as follows
    TABLES : ZGLCCODE. 
    DATA : LT_DATAPACKAGE TYPE TABLE OF DTFIGL_4.
    DATA : LS_PACKAGE TYPE DTFIGL_4.
    TYPES: BEGIN OF LS_TZGLCCODE,
           ZBUKRS type BUKRS,
            END OF LS_TZGLCCODE.
    DATA : LT_ITZGLCCODE TYPE LS_TZGLCCODE OCCURS 0 WITH HEADER LINE.
    DATA : LI_NUM TYPE I,
           LC_ZGJAHR TYPE BSEG-GJAHR VALUE '2007'.
    SELECT ZBUKRS INTO TABLE LT_ITZGLCCODE FROM ZGLCCODE.
    Note:  "C_T_DATA" dynamic structure = "DTFIGL_4" structure
    *-  Remove from the DataSource Company Code -
    LOOP AT C_T_DATA INTO LS_PACKAGE WHERE GJAHR GE '2007'.
    READ TABLE LT_ITZGLCCODE WITH KEY ZBUKRS = LS_PACKAGE-BUKRS.
    IF SY-SUBRC <> 0.
       APPEND LS_PACKAGE TO LT_DATAPACKAGE.
    ENDIF.
      CLEAR LS_PACKAGE.
    ENDLOOP.
    IF LT_DATAPACKAGE[] IS NOT INITIAL.
    DESCRIBE TABLE LT_DATAPACKAGE LINES LI_NUM.
    IF LI_NUM GT 0.
       REFRESH C_T_DATA.
       APPEND LINES OF LT_DATAPACKAGE TO C_T_DATA.
       REFRESH LT_DATAPACKAGE.
       FREE LT_DATAPACKAGE.
    endif.
    ELSE.
       REFRESH C_T_DATA.
    ENDIF.
    Please give me your valuable suggestions.
    Thanks
    Ganesh Reddy.

    Hi Ganesh,
    whatever you do, you can try like this:
    1 - any code posted should be wrapped in \
    then try something like this:
    field-symbols:
      <tabrec> type any,
      <field>   type any.
    sort ITZGLCCODE by bukrs.
    LOOP AT C_T_DATA ASSIGNING <tabrec>.
      ASSIGN component 'GJAHR' of structure <tabrec> to <field>.
      check <field> <= 2007.
      ASSIGN component 'BUKRS' of structure <tabrec> to <field>.
      READ TABLE LT_ITZGLCCODE WITH KEY ZBUKRS = <field>
        BINARY SEARCH TRANSPORTING NO FIELDS. "speed up the volume.
      IF SY-SUBRC 0.
        MOVE-CORRESPONDING <tabrec> to  LS_PACKAGE.   
        APPEND LS_PACKAGE TO LT_DATAPACKAGE.
      ENDIF.
    ENDLOOP.
    Regards,
    Clemens

  • I have recently upgraded my iMac Intel G5 iSight to OS 10.6.8 and now the internal mic does not work with skype or facebook. I can here static when playing back clips. Do I need to update firmware or reload old sys parts

    I have recently upgraded my iMac Intel G5 iSight (iMac5,1) to OS 10.6.8 and now the internal mic does not work with skype or facebook. I can here static when playing back clips. Do I need to update firmware or reload old system parts. I have zapped PRAM. The blue indicator in system audio panel will appear for a second as I slide the bar for internal mic but then it disappears. Is there a fix?

    The sound seems very faint but can here static on playback.

  • Can not call a static function with-in a instance of the object.

    Another FYI.
    I wanted to keep all of the "option" input parameters values for a new object that
    i am creating in one place. I thought that the easiest way would be to use a
    static function that returns a value; one function for each option value.
    I was looking for a way to define "constants" that are not stored in
    the persistent data of the object, but could be reference each time
    the object is used.
    After creating the static functions in both the "type" and "body" components,
    I created the method that acutally receives the option input values.
    In this method I used a "case" statement. I tested the input parameter
    value, which should be one of the option values.
    I used a set of "WHEN conditions" that called the same
    static functions to get the exact same values that the user should
    pass in.
    When I try to store this new version, I get the error:
    "PLS-00587: a static method cannot be invoked on an instance value"
    It points to the first "when statifc_function()" of the case function.
    This seems weird!
    If I can call the static method from the "type object" without creating
    and instance of an object, then why can't I call it within the body
    of a method of an instance of the object type?
    This doesn't seem appropriate,
    unless this implementation of objects is trying to avoid some type
    of "recursion"?
    If there is some other reason, I can not think of it.
    Any ideas?

    Sorry for the confusion. Here is the simplest example of what
    I want to accomplish.
    The anonymous block is a testing of the object type, which definition follows.
    declare
    test audit_info;
    begin
    test := audit_info(...);
    test.testcall( audit_info.t_EMPLOYER() );
    end;
    -- * ========================================== * --
    create or replace type audit_info as object
    ( seq_key integer
    , static function t_EMPLOYER return varchar2
    , member procedure test_call(input_type varchar2)
    instantiable
    final;
    create or replace type body audit_info
    as
    ( id audit_info
    static function t_EMPLOYER return varchar2
    as
    begin
    return 'EMPLOYER';
    end;
    member procedure test_call(input_type varchar2)
    as
    begin
    CASE input_type
    WHEN t_EMPLOYER()
    select * from dual;
    WHEN ...
    end case;
    end;
    end;
    The error occurs on the "WHEN t_EMPLOYER()" line. This code is only
    an example.
    Thanks.

  • Help!! Static sound and Lock ups

    I recently updated to the newest Ipod Mini version software 1.4. and when i play the songs on my ipod i get static sounding sounds and when i look at the display timer, it looks like the ipod i slowing down.
    Also i'm getting lockups when i'm browsing.
    Ipod service told me to restore the ipod, and i have 3 times, 1 to the factory software version, and twice to the newer version. It didn't help, as i'm still hearing static sounds, and I've switched headphones and headphone jacks, and it still doesn't help.

    the exact same thing happened to me. Mine is an original mini which needless to say is out of warranty, so I need an answer that is not "replace the hardware". Is there a way to restore it to a previous version of the software?
    mini   Windows XP  
      Windows XP  

  • Which OCI library to use for static linking with application on Unix, Linux

    Hi Friends
    I am new to OCI programming.
    I am developing a C++ application that works on Windows 7 (32, 64 bit, VS-9) and Linux (32, 64 bit), with OCI-11.2.0.3 version and Oracle 10g Express edition.
    I want to statically link OCI library in my application.
    For Windows, I got oci.lib in the package: instantclient-sdk-nt-11.2.0.3.0.zip\instantclient_11_2\sdk\lib\msvc downloaded from [Instantclient download location.|http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html] .
    But, the instanclient packages instantclient-basic-linux-11.2.0.3.0.zip & instantclient-sdk-linux-11.2.0.3.0.zip do not contain a static archive for OCI library.
    These packages have only include files and following .so (shared libraries) for Linux:
    libclntsh.so.11.1
    libnnz11.so
    libocci.so.11.1
    libociei.so
    libocijdbc11.so
    Can someone please guide me, where can I find the static archive (possibly liboci.a or libociei.a) for OCI-11.2.0.3 - 32 & 64 bit?
    Many thanks in advance for your time and kind guidance.
    Best Regards,
    -ganes

    You need:
    libclient11.a
    libcore11.a
    libgeneric11.a
    libcommon11.a
    libn11.a
    libldapclnt11.a
    libncrypt11.a
    and others.
    Actually, you can link to all *.a files in $ORACLE_HOME/lib
    EXCEPT: libclntst11.a and libexpat.a

Maybe you are looking for