A doubt on overloading

it is said that functions with same name and signature can't be overloaded only by different return types.
but when i coded like as below,
class sub{
// declarations
sub(){
// initializations
int sub(){
return 100;
the above code did'nt rise errors, and works simply as some function in the class. when invoked using the object it returns the integer 100.
could anybody , please explain me the concept of java behind this.

its not a question whether constructors are method or
not. the question is overloading.No, the issue, in essence, is exactly that constructors are not methods. In the OP, we have a base constructor and a subclass method with the same name.
The subclass method is not an "overload with different return type" (the actual question) because:
- the base ctor is not a method
=> it is not inherited
=> therefore, it cannot be overloaded in the subclass.
Even within the base class, you cannot "overload a constructor by a method" because again, a constructor is not a method. You are allowed to give your class a method with a constructor name (although it is discouraged) but it doesn't qualify as an overload.
seocndly we can call constructors as special type of
functions but i think it is hardly used.Care to demonstrate that?

Similar Messages

  • Doubt in Overloading Concept in Packages

    Hi,
    I have two Stored Procedures are inside a package
    sp_mem(mCursor REFCURSOR Datatype,MemberId INTEGER);
    sp_mem(mCursor REFCURSOR Datatype, mEmailId INTEGER);
    In the Above Procedures if the second Parameter is Member Id then the first SP will be executed.
    In the Above Procedures if the Second Parameter is MemEmailId then the Second SP will be Executed.
    This is the normal OverLoading Concept inside the package. But for me, i am returning the Recordset using a RefCursor.
    I just want to know it is possible for returning the recordset using ref cursor with the overloading concept for both the SP.
    Thanks,
    Murali.V

    Hello
    You need to be careful with this type of overloading. Overloading is generally based around the position and data types of the parameters being supplied which are used to identify the "signature" of the particular procedure to call i.e.
    sp_myproc(ref cursor, integer)
    sp_myproc(ref cursor, date)
    sp_myproc(ref cursor, varchar2)
    sp_myproc(ref cursor, varchar2, integer)
    etc etc
    When you have 2 procedures that have the same signature, unless you specify the name of the parameter, there is no way to determine which procedure to call:
    tylerd@DEV2> CREATE OR REPLACE PACKAGE pkg_test_overload
      2  IS
      3
      4     PROCEDURE sp_mem(mCursor sys_refcursor,MemberId INTEGER);
      5     PROCEDURE sp_mem(mCursor sys_refcursor, mEmailId INTEGER);
      6
      7  END;
      8  /
    Package created.
    tylerd@DEV2>
    tylerd@DEV2> CREATE OR REPLACE PACKAGE BODY pkg_test_overload
      2  IS
      3
      4     PROCEDURE sp_mem(mCursor sys_refcursor,MemberId INTEGER)
      5     IS
      6
      7     BEGIN
      8
      9             NULL;
    10
    11     END;
    12
    13     PROCEDURE sp_mem(mCursor sys_refcursor, mEmailId INTEGER)
    14     IS
    15
    16     BEGIN
    17
    18             NULL;
    19
    20     END;
    21
    22  END;
    23  /
    Package body created.
    Package body created.
    tylerd@DEV2> var mycursor refcursor
    tylerd@DEV2> var memberid number
    tylerd@DEV2> exec pkg_test_overload.sp_mem(:mycursor,:memberid)
    BEGIN pkg_test_overload.sp_mem(:mycursor,:memberid); END;
    ERROR at line 1:
    ORA-06550: line 1, column 7:
    PLS-00307: too many declarations of 'SP_MEM' match this call
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    tylerd@DEV2> exec pkg_test_overload.sp_mem(:mycursor,MemberId=>:memberid)
    PL/SQL procedure successfully completed.
    tylerd@DEV2> exec pkg_test_overload.sp_mem(:mycursor,mEmailId=>:memberid)
    PL/SQL procedure successfully completed.To me, using named notation with overloading kind of defeats part of the objective...I'm not saying it's completely wrong, as sometimes I guess it's unavoidable, but I'd review the design carefully :-)
    HTH
    David
    Message was edited by:
    David Tyler
    Oops, copied the wrong bit of the output! :-)

  • Overloading string functions

    hi everyone
    i have a doubt regarding overloading concept in strings .i need to know whether we can overload string functions in java.you can take any function available in the string class.
    regards
    kvikram

    The whole class of String is final, so you won't be able to inherit from it - and therefore, not overload any methods.
    String is one of these very special constructs in Java, which are not meant to be enhanced or costumized.

  • System Overload ...i know ..I'm not the 1st ...

    _History Below_
    Topic : System Overload ...i know ..I'm not the 1st ...
    This topic has been archived - replies are not allowed.
    Your question is not answered.
    Mark as answered.
    Use the "helpful" or "solved" buttons to award points to replies.
    Subscribe to this Topic Back to Topic List
    Replies : 10 - Pages : 1 - Last Post : Aug 10, 2009 12:04 PM by: Pancenter
    4feet4
    Posts: 17
    From: Pasadena
    Registered: Mar 12, 2009
    System Overload ...i know ..I'm not the 1st ...
    Posted: Aug 9, 2009 7:52 PM
    Any quick tips on what to do? My project is small - while monitoring my CPU usage it never goes above 30 while running the project - I've got 2.78 GB of free disk space - 4Gig Ram - I dont use my IMAC OSX 10.5.5 for anything but Logic? Hoping to get around this CONSTANT issue - thanks for your help.
    Imac Mac OS X (10.5.5)
    Larry Mal
    Posts: 654
    From: Saint Louis, Missouri
    Registered: Sep 27, 2007
    Re: System Overload ...i know ..I'm not the 1st ...
    Posted: Aug 9, 2009 9:48 PM in response to: 4feet4
    Well, if you are saying you have only 2.78 GB's of space on your hard drive, then you'll want to have more. You should leave about 10-15% of your drive free.
    dual 2.8GHz Mac Pro, Macbook Pro 2.16 GHz Mac OS X (10.5.6) 2 GB RAM
    4feet4
    Posts: 17
    From: Pasadena
    Registered: Mar 12, 2009
    Re: System Overload ...i know ..I'm not the 1st ...
    Posted: Aug 9, 2009 10:51 PM in response to: Larry Mal
    I'm running LP8 - I have an IMAC OSX 10.5.5 - 2.4 processor - 4 GB RAM - M-Audio Fast Track Pro interface (USB direct to MAC) - I do NOT have an external hard drive ( sounds like I should ? - although I was told by others my system would be sufficient) - I use ALL instruments/track options ( midi etc) and will need to in the future - I want to be able to run a full music project 10-15 tracks. So far I'm running 4-5 tracks -(1) midi - the rest are audio with little to no effects ( in one project I'm using an LP8 template but deleted most of the tracks to cut down on the load ). Don't know if I can freeze these tracks-I'm new to this - thats why I'm looking for options ........ i was also using a 3rd party software in the project - Steinberg Groove Agent 3 (drums) but it was giving me the same error ..even when it was the ONLY track in the project....(its not fully compatible) - however I was finally able to create a full drum track with GA3 - play the midi data back - and record it to an audio track - therefore deleting the midi data I was having issues with and keeping the drums.... hope this helps?
    Imac Mac OS X (10.5.5)
    4feet4
    Posts: 17
    From: Pasadena
    Registered: Mar 12, 2009
    Re: System Overload ...i know ..I'm not the 1st ...
    Posted: Aug 10, 2009 6:39 AM in response to: 4feet4
    Updated
    Imac Mac OS X (10.5.5) 2.4 Processor, 4 GB RAM, M-Audio Fast Track Pro Interface, No External HD
    Larry Mal
    Posts: 654
    From: Saint Louis, Missouri
    Registered: Sep 27, 2007
    Re: System Overload ...i know ..I'm not the 1st ...
    Posted: Aug 10, 2009 7:54 AM in response to: 4feet4
    Perfect. Well here are some suggestions:
    1) Logic 7, 8 and 9 all have a "freeze" function. Logic 9 has a new "bounce in place" function which I haven't used yet. These will make temporary audio files of your MIDI instruments so that you are able to play them as finished audio for the most part and free up CPU power. ( I haven't yet used "bounce in place", I just got Logic 9.) This will help with MIDI instruments quite a bit, and you can still go back and change them by un-freezing... I guess "thawing" would be the proper term.
    2) The reason I was asking about your audio interface is because I was wondering what you had available. You very definitely want to record to a non-system (on that Logic nor your operating system are on) drive. Firewire is much superior to USB, which is why I'm glad to hear you are using USB as your audio in. By using Firewire in and Firewire out, on an iMac, you would be halving the bandwidth. In your case you are not.
    You will add very much stability to your Logic work by adding an external Firewire drive and recording audio to it, and working on Logic projects there! If you have the money, I'd go with Firewire 800, which is frankly overkill, but why not. Firewire 400 drives will work fine for you. Add one and many of the overload messages will disappear, simply because right now you are pulling information from (in the form of calculating what the virtual instruments and Logic are doing) and writing information to (in the form of writing what those instruments and Logic are resulting in) to the same disk.
    Try these two things and get back to us. I think you'll be very happy with the results.
    It's also important to pay attention to your buffer size. When it is not important for you to play with it in real time, you want to make it be 1024. Otherwise as low as possible. So when you are recording audio to a MIDI drum track, you'd want it to be very low so you can play along accurately. When you have all that done, and are editing MIDI only, then put the buffer higher. When mixing, put it higher.
    Let me know how this works, good luck, L
    dual 2.8GHz Mac Pro, Macbook Pro 2.16 GHz Mac OS X (10.5.6) 2 GB RAM
    4feet4
    Posts: 17
    From: Pasadena
    Registered: Mar 12, 2009
    Re: System Overload ...i know ..I'm not the 1st ...
    Posted: Aug 10, 2009 9:10 AM in response to: Larry Mal
    Ok Great - Thanks - makes sense - I was using a Lacie with Protools an my PC ( it recently crashed) - I was under the impression I would have enough processing power with out it on the MAC.
    Looks like I can pick one up for just a little over $100 ( I'm rolling in that kind of cash) ... please clarify though - you stated: "Firewire is much superior to USB, which is why I'm glad to hear you are using USB as your audio in. By using Firewire in and Firewire out, on an iMac, you would be halving the bandwidth. In your case you are not" ....are you GLAD to hear I am using USB as in - We may have found the problem .... go external to free up processing ? Please confirm.
    Thanks again
    Imac Mac OS X (10.5.5) 2.4 Processor, 4 GB RAM, M-Audio Fast Track Pro Interface, No External HD
    CCTM
    Posts: 249
    Registered: Mar 11, 2007
    Re: System Overload ...i know ..I'm not the 1st ...
    Posted: Aug 10, 2009 9:28 AM in response to: 4feet4
    4feet4 wrote:
    Ok Great - Thanks - makes sense - I was using a Lacie with Protools an my PC ( it recently crashed) - I was under the impression I would have enough processing power with out it on the MAC.
    As stated in an earlier reply, if you only have 2 or 3 gigs of free space on your Mac hard drive, processing power is NOT the problem. Your boot disc is way too full. You should have at least 20-30GB free.
    Running a second drive for the audio side will, of course, help, but you MUST clear out the main hard drive (or fit a larger one) before you run into even more serious problems.
    HTH
    CCT
    Larry Mal
    Posts: 654
    From: Saint Louis, Missouri
    Registered: Sep 27, 2007
    Re: System Overload ...i know ..I'm not the 1st ...
    Posted: Aug 10, 2009 9:37 AM in response to: 4feet4
    Well, you have enough processing power, that isn't the issue. All the processing power in the world won't matter if you have 64 megabytes of RAM, there will be a bottleneck. Another bottleneck is with data transference. Like I said, when using a single drive to transfer date from as well as to- which is what you are doing when you are using Logic, running within the scope of the operating system, and hosting virtual instruments, all of which is writing the resulting audio information to the same drive, at the same time, then you are creating another problem. But you don't have to do that, by sending the audio written to another drive other than the one the audio is being generated from.
    In other words, your processing power is both faster than and irrelevant to the physical limitations of the hard drive itself.
    Another bottleneck would be if you were recording tracks on a Firewire in, and sending that to and external Firewire drive out. This is one of the limitations of the iMac, there is no way to add what is called another bus, which is simply another pipeline for data transference. You can get around that with a Mac Pro, in which you add another internal hard drive, which connects directly to the motherboard, and has its own bus. Or by adding another Firewire PCIe card, which will add another Firewire bus, again, with its own data transference. On an iMac, you have one Firewire bus, and one USB bus.
    Clear? You can imagine these as pipes of water. The more pipes you have leading to and from a location the faster it will go.
    USB, in your case, is a dedicated pipeline in. Nothing (well, your mouse, maybe a flash drive) is using that pipeline. Your Firewire is a pipeline out, in this case- you could reverse this, it doesn't matter*. If you use Firewire in and out, then you are sending water flowing in both directions in the same pipe. It will work, but not as well. By adding a dedicated bus, you would be adding another pipe to flow in one way, while the original flowed the other way. No impedances.
    I don't see why you can't use the Lacie drive you already have, though. It's quite likely your crash wasn't due to it. No need to buy another drive, if it's Firewire, anyway. Just give it a shot- this isn't a cure all, but just good audio practice. Let me know how it pans out. Good luck, L
    *Firewire is better than USB in all situations. But you seem to be going a track or two of USB audio in, so I'd use USB for that. For light use it's fine. Then you can use your superior Firewire bus to write the audio to the external Firewire drive.
    dual 2.8GHz Mac Pro, Macbook Pro 2.16 GHz Mac OS X (10.5.6) 2 GB RAM
    4feet4
    Posts: 17
    From: Pasadena
    Registered: Mar 12, 2009
    Re: System Overload ...i know ..I'm not the 1st ...
    Posted: Aug 10, 2009 11:12 AM in response to: Larry Mal
    L - Thanks for laying that out in simple terms - learning a ton and loving it ( when things work) - I will pick up another Lacie - my old Lacie for my PC crashed - I'm better off starting from scratch ( I'm still trying to retrive some data of the old one) ... I'll let you know how it works. I would have got an external drive outright but the Logic Certified guys at Apple told me I would not need one - sounds like this is the big problem. I'll use the freeze method when needed also....... maybe I'll have better luck with Groove Agent 3 with the external drive.
    Much appreciated-
    (TBD)
    Imac Mac OS X (10.5.5) 2.4 Processor, 4 GB RAM, M-Audio Fast Track Pro Interface, No External HD
    Larry Mal
    Posts: 654
    From: Saint Louis, Missouri
    Registered: Sep 27, 2007
    Re: System Overload ...i know ..I'm not the 1st ...
    Posted: Aug 10, 2009 11:39 AM in response to: 4feet4
    And free up some room on that system drive.
    dual 2.8GHz Mac Pro, Macbook Pro 2.16 GHz Mac OS X (10.5.6) 2 GB RAM
    Pancenter
    Posts: 3,306
    From: Southwest U.S.
    Registered: Apr 22, 2007
    Re: System Overload ...i know ..I'm not the 1st ...
    Posted: Aug 10, 2009 12:04 PM in response to: 4feet4
    4feet4 wrote:
    L - Thanks for laying that out in simple terms - learning a ton and loving it ( when things work) - I will pick up another Lacie - my old Lacie for my PC crashed - I'm better off starting from scratch ( I'm still trying to retrive some data of the old one) ... I'll let you know how it works. I would have got an external drive outright but the Logic Certified guys at Apple told me I would not need one - sounds like this is the big problem. I'll use the freeze method when needed also....... maybe I'll have better luck with Groove Agent 3 with the external drive.
    Groove Agent 3 loads samples into memory so I doubt if your luck will change.
    The -first- thing I would do is clear some space on your hard drive, my feeling is that OSX is writing swap files and the drive head is working overtime to try and find free space to write. That in itself could cause an overload.
    Free drive space now or expect more problems than you're currently experiencing.
    pancenter-
    Power Mac G5 1.8GHz Dual, 4GB RAM Mac OS X (10.5.5) RME Audio - MOTU MIDI, Mac (Logic 8.02), Intel/XP-Pro Quad Core PC

    _History Below_
    Topic : System Overload ...i know ..I'm not the 1st ...
    This topic has been archived - replies are not allowed.
    Your question is not answered.
    Mark as answered.
    Use the "helpful" or "solved" buttons to award points to replies.
    Subscribe to this Topic Back to Topic List
    Replies : 10 - Pages : 1 - Last Post : Aug 10, 2009 12:04 PM by: Pancenter
    4feet4
    Posts: 17
    From: Pasadena
    Registered: Mar 12, 2009
    System Overload ...i know ..I'm not the 1st ...
    Posted: Aug 9, 2009 7:52 PM
    Any quick tips on what to do? My project is small - while monitoring my CPU usage it never goes above 30 while running the project - I've got 2.78 GB of free disk space - 4Gig Ram - I dont use my IMAC OSX 10.5.5 for anything but Logic? Hoping to get around this CONSTANT issue - thanks for your help.
    Imac Mac OS X (10.5.5)
    Larry Mal
    Posts: 654
    From: Saint Louis, Missouri
    Registered: Sep 27, 2007
    Re: System Overload ...i know ..I'm not the 1st ...
    Posted: Aug 9, 2009 9:48 PM in response to: 4feet4
    Well, if you are saying you have only 2.78 GB's of space on your hard drive, then you'll want to have more. You should leave about 10-15% of your drive free.
    dual 2.8GHz Mac Pro, Macbook Pro 2.16 GHz Mac OS X (10.5.6) 2 GB RAM
    4feet4
    Posts: 17
    From: Pasadena
    Registered: Mar 12, 2009
    Re: System Overload ...i know ..I'm not the 1st ...
    Posted: Aug 9, 2009 10:51 PM in response to: Larry Mal
    I'm running LP8 - I have an IMAC OSX 10.5.5 - 2.4 processor - 4 GB RAM - M-Audio Fast Track Pro interface (USB direct to MAC) - I do NOT have an external hard drive ( sounds like I should ? - although I was told by others my system would be sufficient) - I use ALL instruments/track options ( midi etc) and will need to in the future - I want to be able to run a full music project 10-15 tracks. So far I'm running 4-5 tracks -(1) midi - the rest are audio with little to no effects ( in one project I'm using an LP8 template but deleted most of the tracks to cut down on the load ). Don't know if I can freeze these tracks-I'm new to this - thats why I'm looking for options ........ i was also using a 3rd party software in the project - Steinberg Groove Agent 3 (drums) but it was giving me the same error ..even when it was the ONLY track in the project....(its not fully compatible) - however I was finally able to create a full drum track with GA3 - play the midi data back - and record it to an audio track - therefore deleting the midi data I was having issues with and keeping the drums.... hope this helps?
    Imac Mac OS X (10.5.5)
    4feet4
    Posts: 17
    From: Pasadena
    Registered: Mar 12, 2009
    Re: System Overload ...i know ..I'm not the 1st ...
    Posted: Aug 10, 2009 6:39 AM in response to: 4feet4
    Updated
    Imac Mac OS X (10.5.5) 2.4 Processor, 4 GB RAM, M-Audio Fast Track Pro Interface, No External HD
    Larry Mal
    Posts: 654
    From: Saint Louis, Missouri
    Registered: Sep 27, 2007
    Re: System Overload ...i know ..I'm not the 1st ...
    Posted: Aug 10, 2009 7:54 AM in response to: 4feet4
    Perfect. Well here are some suggestions:
    1) Logic 7, 8 and 9 all have a "freeze" function. Logic 9 has a new "bounce in place" function which I haven't used yet. These will make temporary audio files of your MIDI instruments so that you are able to play them as finished audio for the most part and free up CPU power. ( I haven't yet used "bounce in place", I just got Logic 9.) This will help with MIDI instruments quite a bit, and you can still go back and change them by un-freezing... I guess "thawing" would be the proper term.
    2) The reason I was asking about your audio interface is because I was wondering what you had available. You very definitely want to record to a non-system (on that Logic nor your operating system are on) drive. Firewire is much superior to USB, which is why I'm glad to hear you are using USB as your audio in. By using Firewire in and Firewire out, on an iMac, you would be halving the bandwidth. In your case you are not.
    You will add very much stability to your Logic work by adding an external Firewire drive and recording audio to it, and working on Logic projects there! If you have the money, I'd go with Firewire 800, which is frankly overkill, but why not. Firewire 400 drives will work fine for you. Add one and many of the overload messages will disappear, simply because right now you are pulling information from (in the form of calculating what the virtual instruments and Logic are doing) and writing information to (in the form of writing what those instruments and Logic are resulting in) to the same disk.
    Try these two things and get back to us. I think you'll be very happy with the results.
    It's also important to pay attention to your buffer size. When it is not important for you to play with it in real time, you want to make it be 1024. Otherwise as low as possible. So when you are recording audio to a MIDI drum track, you'd want it to be very low so you can play along accurately. When you have all that done, and are editing MIDI only, then put the buffer higher. When mixing, put it higher.
    Let me know how this works, good luck, L
    dual 2.8GHz Mac Pro, Macbook Pro 2.16 GHz Mac OS X (10.5.6) 2 GB RAM
    4feet4
    Posts: 17
    From: Pasadena
    Registered: Mar 12, 2009
    Re: System Overload ...i know ..I'm not the 1st ...
    Posted: Aug 10, 2009 9:10 AM in response to: Larry Mal
    Ok Great - Thanks - makes sense - I was using a Lacie with Protools an my PC ( it recently crashed) - I was under the impression I would have enough processing power with out it on the MAC.
    Looks like I can pick one up for just a little over $100 ( I'm rolling in that kind of cash) ... please clarify though - you stated: "Firewire is much superior to USB, which is why I'm glad to hear you are using USB as your audio in. By using Firewire in and Firewire out, on an iMac, you would be halving the bandwidth. In your case you are not" ....are you GLAD to hear I am using USB as in - We may have found the problem .... go external to free up processing ? Please confirm.
    Thanks again
    Imac Mac OS X (10.5.5) 2.4 Processor, 4 GB RAM, M-Audio Fast Track Pro Interface, No External HD
    CCTM
    Posts: 249
    Registered: Mar 11, 2007
    Re: System Overload ...i know ..I'm not the 1st ...
    Posted: Aug 10, 2009 9:28 AM in response to: 4feet4
    4feet4 wrote:
    Ok Great - Thanks - makes sense - I was using a Lacie with Protools an my PC ( it recently crashed) - I was under the impression I would have enough processing power with out it on the MAC.
    As stated in an earlier reply, if you only have 2 or 3 gigs of free space on your Mac hard drive, processing power is NOT the problem. Your boot disc is way too full. You should have at least 20-30GB free.
    Running a second drive for the audio side will, of course, help, but you MUST clear out the main hard drive (or fit a larger one) before you run into even more serious problems.
    HTH
    CCT
    Larry Mal
    Posts: 654
    From: Saint Louis, Missouri
    Registered: Sep 27, 2007
    Re: System Overload ...i know ..I'm not the 1st ...
    Posted: Aug 10, 2009 9:37 AM in response to: 4feet4
    Well, you have enough processing power, that isn't the issue. All the processing power in the world won't matter if you have 64 megabytes of RAM, there will be a bottleneck. Another bottleneck is with data transference. Like I said, when using a single drive to transfer date from as well as to- which is what you are doing when you are using Logic, running within the scope of the operating system, and hosting virtual instruments, all of which is writing the resulting audio information to the same drive, at the same time, then you are creating another problem. But you don't have to do that, by sending the audio written to another drive other than the one the audio is being generated from.
    In other words, your processing power is both faster than and irrelevant to the physical limitations of the hard drive itself.
    Another bottleneck would be if you were recording tracks on a Firewire in, and sending that to and external Firewire drive out. This is one of the limitations of the iMac, there is no way to add what is called another bus, which is simply another pipeline for data transference. You can get around that with a Mac Pro, in which you add another internal hard drive, which connects directly to the motherboard, and has its own bus. Or by adding another Firewire PCIe card, which will add another Firewire bus, again, with its own data transference. On an iMac, you have one Firewire bus, and one USB bus.
    Clear? You can imagine these as pipes of water. The more pipes you have leading to and from a location the faster it will go.
    USB, in your case, is a dedicated pipeline in. Nothing (well, your mouse, maybe a flash drive) is using that pipeline. Your Firewire is a pipeline out, in this case- you could reverse this, it doesn't matter*. If you use Firewire in and out, then you are sending water flowing in both directions in the same pipe. It will work, but not as well. By adding a dedicated bus, you would be adding another pipe to flow in one way, while the original flowed the other way. No impedances.
    I don't see why you can't use the Lacie drive you already have, though. It's quite likely your crash wasn't due to it. No need to buy another drive, if it's Firewire, anyway. Just give it a shot- this isn't a cure all, but just good audio practice. Let me know how it pans out. Good luck, L
    *Firewire is better than USB in all situations. But you seem to be going a track or two of USB audio in, so I'd use USB for that. For light use it's fine. Then you can use your superior Firewire bus to write the audio to the external Firewire drive.
    dual 2.8GHz Mac Pro, Macbook Pro 2.16 GHz Mac OS X (10.5.6) 2 GB RAM
    4feet4
    Posts: 17
    From: Pasadena
    Registered: Mar 12, 2009
    Re: System Overload ...i know ..I'm not the 1st ...
    Posted: Aug 10, 2009 11:12 AM in response to: Larry Mal
    L - Thanks for laying that out in simple terms - learning a ton and loving it ( when things work) - I will pick up another Lacie - my old Lacie for my PC crashed - I'm better off starting from scratch ( I'm still trying to retrive some data of the old one) ... I'll let you know how it works. I would have got an external drive outright but the Logic Certified guys at Apple told me I would not need one - sounds like this is the big problem. I'll use the freeze method when needed also....... maybe I'll have better luck with Groove Agent 3 with the external drive.
    Much appreciated-
    (TBD)
    Imac Mac OS X (10.5.5) 2.4 Processor, 4 GB RAM, M-Audio Fast Track Pro Interface, No External HD
    Larry Mal
    Posts: 654
    From: Saint Louis, Missouri
    Registered: Sep 27, 2007
    Re: System Overload ...i know ..I'm not the 1st ...
    Posted: Aug 10, 2009 11:39 AM in response to: 4feet4
    And free up some room on that system drive.
    dual 2.8GHz Mac Pro, Macbook Pro 2.16 GHz Mac OS X (10.5.6) 2 GB RAM
    Pancenter
    Posts: 3,306
    From: Southwest U.S.
    Registered: Apr 22, 2007
    Re: System Overload ...i know ..I'm not the 1st ...
    Posted: Aug 10, 2009 12:04 PM in response to: 4feet4
    4feet4 wrote:
    L - Thanks for laying that out in simple terms - learning a ton and loving it ( when things work) - I will pick up another Lacie - my old Lacie for my PC crashed - I'm better off starting from scratch ( I'm still trying to retrive some data of the old one) ... I'll let you know how it works. I would have got an external drive outright but the Logic Certified guys at Apple told me I would not need one - sounds like this is the big problem. I'll use the freeze method when needed also....... maybe I'll have better luck with Groove Agent 3 with the external drive.
    Groove Agent 3 loads samples into memory so I doubt if your luck will change.
    The -first- thing I would do is clear some space on your hard drive, my feeling is that OSX is writing swap files and the drive head is working overtime to try and find free space to write. That in itself could cause an overload.
    Free drive space now or expect more problems than you're currently experiencing.
    pancenter-
    Power Mac G5 1.8GHz Dual, 4GB RAM Mac OS X (10.5.5) RME Audio - MOTU MIDI, Mac (Logic 8.02), Intel/XP-Pro Quad Core PC

  • In OS X Mavericks using Safari, the search bar at the top that i had on the previous system disappears only reappearing in the full screen. Do i have to go into full screen every time? Bit of a pain but no doubt I'm doing something wrong!

    In OS X Mavericks using Safari, the search bar at the top that i had on the previous system version disappears only reappearing in the full screen. Do i have to go into full screen every time? Bit of a pain but no doubt I'm doing something wrong!

    Those are all fine
    Here is how to see RAM overloaded…
    Reboot to see the system in it's default state.
    Open TextEdit for the sake of it
    Open Activity Monitor & Terminal from /Applications/Utilities.
    Select the Memory tab
    In Terminal enter the following command
    memory_pressure -l critical
    # note that is a lowercase L
    RAM usage will climb, compression will begin the VM will become way more than the system has installed.
    Eventually the system will start swapping  (look for RED) - Watch the 'memory pressure' & 'Swap used' as this happens.
    Try switching to TextEdit - the system is still coping !
    Switch back to Terminal & hit ctrl+c to stop the process.
    Watch the VM & memory pressure return to normal levels.
    This OS kicks 4ss !
    Your problems may lie elsewhere

  • Need solution for "HEAVY" overload.

    This is not the classic case of most of the system overload problems that I've been reading about, where a few settings might do the tricks, although if that's the case, then great! But I doubted...
    Here's my gear:
    -QUAD 6.5 GB 2 drives, 250GB + 500GB
    -RAID 2 X 500 GB
    -Logic
    -Redmatic
    -VSL
    The problem I'm having is a system overload regularly, and buffer is at largest. I work with very dense orchestration, Richard Strauss type and I never use less than 70 instruments, mostly performance, lots of scales and runs, articulations... I cannot afford to work with this problem of "system overload", and freezing tracks don't help, it actually works better in RAM. I need a SURE way to resolve this, what can I do?
    Thanks
    Guy
      Mac OS X (10.4.3)   Quad 2 drives 250GB and 500GB, Raid 2 X 500GB, Logic, VSL

    I am not saying don't use logic, just offload some of the work to another application or system. For your work, I don't think kontakt would be a good idea. I am not totally in the VSL loop but I have heard that they are moving into software as well, as in working on a host. Otherwise another sampler as standalone and/or another system used as a EXS player, because you probably want integration for your libraries. Kontakt would not be a good idea because it is more aimed at sound design from a sampler than max poly, and there are some really big issues for most users. I realize you have a great computer for this, but Logic just wasn't built this way-that's the cold fact. Perhaps they'll update this sometime but in the meantime you have work to do. Also, the VSL forum is a better place to ask, IMO. Not saying this is a bad place but everyone there is loading up a VSL lib and this is a huge library. You could try loading 2 instances of Logic...

  • OO:overloading and overriding in tandem..Interesting one

    Assume Dog IS-A Animal
    class test {
    public static void main(String[] args){
    Animal a = new Dog();
    foo(a);
    void foo(Dog d){
    d.printme();
    void foo(Animal a){
    a.printme();
    }//end of class test
    class Animal{
    void printme(){
    System.out.println("i am in animal");
    }//end of class animal
    class Dog{
    void printme(){
    System.out.println("i am in Dog");
    }//end of class dog
    Question:what will it print and explain how briefly u arrived at that result? (I assume u fix some obvious compile time errors(missing ; etc) as this is just a rough snippet)
    NOTES-----------
    1.Overloading has to do with reference type
    2.Overriding has to do with the object to which it actually points

    ok mlk..really sorry for being so naive.I sometimes don't clearly express my doubt. I jus got a doubt in my mind regarding overriding + overloading and i constructed a sample example as a concept(not actual code).
    Here's the full fledged program..it compiles fine.And IS-A is perfectly satisfied in this case.
    class Animal{
    void printme(){
    System.out.println("In Animal");
    class Dog extends Animal{
    void printme(){//overriding the Animal printme() method
    System.out.println("In Dog");
    public class TestDog {
    void foo(Animal a){
    a.printme();
    void foo(Dog d){
    d.printme();
    public static void main(String[] args) {
    Animal a = new Dog();
    TestDog t = new TestDog();
    t.foo(a); //method overloading
    And it prints In Dog..as expected.Got it.Thanks.

  • CPU overload

    Hi, I thought this topic had been covered in great detail but when I searched, I didn't find relevant info.
    I'm using 4 instances of a plug-in ( Alchemy ), 2 sent to Bus 6 and 2 sent to Bus 7. On each bus I've placed Reverb ( Space Designer ), and an external Pan ( VSL PowerPan ).
    My CPU meter overloads drastically about every 3 seconds so the only way to hear the piece is to freeze all 4 tracks.
    Since only one channel in the CPU shows overloading, and the other one seemingly is hardly being used, is there a way to direct more of the plug-in instances to the under-used channel ?
    Hoping for hints, since progress is rather slow !
    Kay.

    SeaDream wrote:
    No, nothing changes.
    So that I can work on the tracks, I've altered:
    Buffer from 256 to 1024
    *Process Buffer* from Medium to Large
    ReWire from *Live Mode* to *Playback Mode*
    and I can play the project without it stalling.
    Good.
    However, I want to play in another track, so I suppose I'd better freeze them all, and return the above specifications to their former values.
    Yep, freeze whatever you're not editing/playing.
    What should I do when I bounce it ( want to create an MP3 file to send to someone ) ?
    Doesn't matter. You can bounce with the frozen files or with it all 'thawed' - I don't think there will be a noticeable difference in the sound of the MP3 bounce.
    Interesting that you say that Alchemy is CPU heavy since I've written to the very nice chaps at Camel and they did not 'admit' this. It was in fact about another instance in another project and they simply said 'Yes, we've been able to reproduce the same overload here so we'll get working on it and we'll include the adjustment in our next update. Though that was many months ago and I haven't worked on that project since so don't know if there's an improvement'.
    Well, I'm beginning to doubt now, it may be that I have only used very CPU-heavy patches until now, with lots of internal audio manipulation going on, or it may just be that I think that because Alchemy feels/sounds like it should be a CPU-heavy beast...
    BTW, do you use 'source-only' (blue) freeze, or the good old 'green' freeze?
    Erik.

  • Oh yeah, another SYSTEM OVERLOAD thread! Can anyone help please?

    Really? I should be getting constant system overload errors running a dual 2.5Ghz G5 desktop with 2 gigs of RAM, and I'm only running a project with 5 virtual instrument tracks and nothing else? And I froze the four tracks I'm not recording to. I've checked every setting I can think of to minimize processor load. Is there some secret thing I don't know how to do? Any and all help appreciated.

    the place to look is the 'console' app. that contains all the logs and system events you can shake your stickiest stick at.
    However...I very much doubt that will help you.
    Unless the programmers can give more meaningful error messages or enough Logic users complain, perhaps nothing will be done and maybe some 'next release' update might fix 'some' of the problems.
    But you are right, it is frustrating and the messages are all but useless.

  • SSO Doubts !! Help required

    Hello everybody,
    I have few doubts implementing SSO with EP. Let me first briefly explain our design approach.
    We have 5 SAP boxes (R/3, APO, BW, Portal, K-pro) in our landscape and we want to have the functionality of SSO via EP and Active directory to access them.
    I guess i have read all blogs on SDN and lot of SAP documentation for it and below is high level design based upon my understanding.
    1. For internal users(employee) create there user ID in SAP-HR and push it into Active directory using LDAP connector.
    2. Portal and Basis admin to setup the security for these users so that the user can access only those boxes and transaction which they are suppose to access.
    3. User will login into EP and it will authenticate it against Active directory and issue login ticket.(if successful).
    4. This ticket will be used to access other SAP boxes.
    Now below are my doubts:
    1. At what level i will control access of various SAP boxes (APO, BW, R/3, Kpro) for a user ID. Can i control it at Enterprise Portal User management or should i do it in Acive directory. eg: a given user should have access only to portal and R/3 boxes and not to other SAP boxes.
    2. How to handle external users (Customers and vendors) in this architecture, should i create a user id for them in each SAP box to handle security or is there a work around.
    For employee's i am creating HR master in SAP and then planning to use LDAP and use infotype PA0105 for linking employee master with User ID. And then use this user ID to control security/authorization in various systems.
    Though not sure about external users.
    3. Should i allow External users and Internal users to share same Network domain, i mean what is the best practice.
    4, How does companies having multiple SAP boxes achieve SSO, is my appraoch correct or is there a batter or easier way.
    Thanks in advance.
    Regards,
    Jeet

    Please don't take any of this as a recommendation. I don't know enough about your environment for that. But I can give you some options to consider:
    Question#1) There are lots of options there: administer the roles in the portal and push them out, or administer in the backends and pull them intot the portal. Also, have you considered using Central User Administration to administer the authorizations in the various SAP systems. You can also use the CUA server as an authentication source in EP6.
    #2) To avoid creating userIDs in each system, you could write a trusted portal application that makes RFC connections to the various systems. It would have the authorization to look at any external users data, but would only do so for the session's authenticated userID.
    #3) External users can access the internal network as long as you have ensured that you are not open to attack from the internet (e.g., without a good firewall a distributed denial of service attack could overload the internal network).
    #4) At a minimum you will probably want a central authentication source (whether LDAP or CUA) and use SAP logon tickets from there. Whether you centralize authorization administration is a separate question, and you may do one without the other. Maybe break it into stages?
    Regards,
    Sean

  • Audio Core Overload ( Error -10011) and others.....

    Hello,
    I was just wondering if anybody had a solution for the Audio Core Overload and the Disk too slow problem. I run a Dual 1.8 with 1 GB of RAM and Logic 7.1 ( recently upgraded form 7.01), Kontakt, DFH. I use the Moto 828 Firwire interface. I never had any problems before I upgraded. Only sometimes an audio overload, which actually never affected the performance. I never had / have any similar issues when I run DP 4.12
    Anyways, any help or suggestions would be greatly appreciated.
    Thanks

    The error also always occurs if the Mac is left unattended for few minutes (i.e. hard drives go inactive) then Logic is set to play again
    well this is easy fixed. turn off spin down hard drive in power saver in system prefs. i have left mine on and expect to wake logic up by stopping and starting it. no big deal.
    I believe Apple needs to address this immediately but they won't even respond to my email unless I buy a service contract!
    and they won't respond because; a) they are an incredibly secretive organization, and b) because so often people are complaining about flaws in their programming when the answer lies with the user. your point here is a good example of that.
    which ISN'T to say that they DON'T have issues to address. i just make it my business to be very cautious about what exactly they so that the primary content of this forum points them out. ranting or incorrect or unfair blame of apple and LP is only going to annoy the very talented and no doubt hard working people who have developed the programme. how would you feel if your work was being unfairly judged? quite a bit different than how you would feel if it was being fairly judged, i'll bet.
    so the issue that tBird has missed, is an issue that has been confirmed by many many users is the one where there seems to be an overload, even when there is fairly light use of audio and plug-ins, and where the system performance indicators suggest that one processor is overloading and the other is not being used at all.
    the problem is that while LP is idle, one of the plug-ins is taking up CPU cycles, but LP doesn't realize this. so on playback it adds the same processing onto the CPU (a kind of feeback problem i guess) and it ends up peaking before the processing planned for the other CPU is taken up.
    the solution, or workaround, is to open your audio configuration and option-click (bypass) through the plug-ins one by one until the CPU meter (which even though logic is idle will probably be hovering around the 1/4 to 1/3 mark) drops down significantly.
    once you have the right plug-in clicked, LP will run normally. then remove the plug-in and reinstate it in a different plug-in slot, or on a different instrument if it is one of the instrument plug-ins. the main culprit for this problem is space designer.
    the instrument drop-outs are also a common problem. and i do agree apple need to addrress this problem urgently. considering the improvement LP 7.1 was from 7.0.1, i would eat my interface if they don't have a fix planned. roll on 7.2.

  • Core audio system overload

    i can't play the track, it keeps stalling with this CoreAudio system overload can't process date in time business. i've tried changing the buffer size and buffer range but that hasn't helped. any advice please?

    I doubt very much that your software is at fault you do not say as to how you are running stuff. Is it all of the home drive? How much memory do you have?
    Do you realizes, and most people don't or take it for granted, that if you stream everything from one drive you run the risk of wearing out this drive due to the over worked read and write action of the mechanism of the the drive.
    Whilst you may get more powerful computers being built each day until they radically change the way drive systems work you will always have this problem which is how quick the drive can respond to the data input bursts which nowadays are often fast and high.
    This is why having more than one drive when you are using processor intensive operations such as Audio or video editing, is a must a) for smooth operation and b) to save drive wear n tear.
    If you are going to purchase a second drive make it a 800 firewire. Lacies aren't too bad I have a whole stack of them and have found them to be reliable for the 8 years that I've have had them installed.
    Once you have the external drive you can save your Audio Projects to it. Now if you want your system to run even better get another drive and put all your samples on it which come with Logic and Garageband this again will take pressure of that main drive which Ideally should just run the bear-bones of the program. Once you have do this you will see a significant difference within your work flow and the smooth running of your whole system. Good Luck! Remember You already have the makings already of a good system and Operating Software (OS) which if handled right has the potential to being a GREAT ONE!!!!

  • Is this constructor overloading??

    class A
    A(){
    System.out.println("A is instantiated");
    public void A(){
    System.out.println("inside the method A of class A");
    class B extends A
    B(){
    System.out.println("B is instantiated");
    public void B(){
    System.out.println("inside the method B of class B");
    public static void main(String[] args) {
    A a = new A();
    a.A();
    B b = new B();
    b.A();
    b.B();     
    since i hav given same names to constructor and method in class A and also in class B....i hav doubt whether is constructor overloading or not?

    Try compiling this code:
    class ObjectOne {
        ObjectOne() {}
        ObjectOne(int n) {
            System.out.println(n);
    class ObjectTwo extends ObjectOne {
        public static void main(String[] args) {
            ObjectTwo obj = new ObjectTwo(9);
    }The very first line of any constructor is a call to super. Even if you do not type it, that line is explicitly inserted by the compiler.
    So this:
    class Foo extends Bar {
        Foo() {
            System.out.println("Foo");
    }becomes
    class Foo extends Bar {
        Foo() {
            super();  // explicit call to super
            System.out.println("Foo");
    }

  • Overloading & Cast &Type Save?

    Here I use final bounds, therefore ignore cast warnings
    and test overloading and inference(<- do not work)
    My question: Is this considered type-save? public class DoW {
      public static final String[] DAY_NAME=
           {"Su","Mo","Tu","We","Th","Fr","Sa"};
      private int wd;
      public DoW(int day,int month, int year) {
        // just for fun
        if (month<3) { month= month+12; year--; }
        wd= (day+ 2*month+ 3*(month+1)/5+ year+
             year/4-year/100+year/400+1)%7;
      public <T extends String> T getDoW()  { return (T)DAY_NAME[wd]; }
      public <T extends Integer> T getDoW() { return (T)new Integer(wd); }
      public static void main(String[] args) {
        DoW dow= new DoW(20,2,2005);
        System.out.println(dow.<String>getDoW()+" #"+dow.<Integer>getDoW());
    }

    I do not argue about sense, let me tinker please!
    1. As String/Integer are final they can be used to fool
    the compiler and get overloading on return types as a free lunch.
    2. See reply Gafter to "Usafe casting with generics"
    The compiler warns precisely when it cannot generate code to fully check the cast at runtime.Really? I doubt that, as Sun even ignores it's own compiler warning sometime.
    If these two warnings are contrary to the fact that this is type save,
    no one will care too much about warnings, as he might think
    "my code is also Sun-type save".
    This would be a (tiny?) disaster for Generics, as it depends on the fact
    that only "warning-less" code can be used as generic building blocks.
    3. If finals make a sense in bounds the compiler should not ignore that.

  • Confused bout concept of Overloading Constructor

    Hi all...
    hope someone can clear this doubt of mine...
    I'd thought that Java supports overloading constructors but why is it that when I created two constructors for a class, the editor is telling me things like unresolved symbols for the second constructor?
    Although both constructors takes in 4 parameters, they are actually of different type and I can't understand why it won't work..
    can someone please clarify this with me?
    Thanks in advance! :D

    Thanks
    //this is the constructor classes
    public class ConnectionList extends JPanel{
        public ConnectionList(ObjectPanel initOPanel, int lt, JFrame parentPanel)
            oPanel = initOPanel;
            listType = lt;
            parent = parentPanel;
            objectName = oPanel.getCurrentObjectName();
            objectType = oPanel.getCurrentObjectType();
        public ConnectionList(String OName, int OType, int lt, JFrame parentPanel)
         listType = lt;
         parent = parentPanel;
         objectName = OName;
         objectType = OType;
    //I call to the class constructors using these:
    //no problem for this one (first constructor):
    inputList = new ConnectionList(oPanel, inputType, parentPanel);
    //oPanel is the ObjectPanel object
    //parent Panel is JFrame
    //inputType is an integer
    //somehow this one gives the error of unresolved symbols (2nd constructor)
    checkList = new ConnectionList(objectN, objectT, 1, parentPanel);
    //objectN, objectT are all string objects
    //parentPanel is the JFrame object
    //and this...Thanks again!

Maybe you are looking for

  • Error while starting Tomcat

    Hi, This may be a very basic question on tomcat server: What is the difference between creating a server (through the server View provided in eclipse) and using the three icons (at the top, just below the main menu) to start tomcat? I am new to Tomca

  • How to reset EFI password ??

    i got stuck on efi password . how to reset and can i update my os without efi password ??

  • JSF 1.2 on a J2EE 1.4 server ?

    Is there anyone out there who is running a JSF 1.2 webapp on a J2EE 1.4 server ? If so , what did you need to do ?

  • Distiller Start Error, Time-out occured

    We are using Acrobat distiller 7 in our Formscape/Bottomline Project. The incoming file is a pdf  from JDE OneWorld XE.  WHen Formscape tries to create the pdf, it has an error that says "Distiller start error. time-out occured."  Has anyone else had

  • Photoshop CC Selects everything, even when its locked.

    Hello all, I have a major issue with selecting any one object inside the new photoshop CC. When I want to select one object on the canvas, it selects everything thats underneath that object. I literarly try to create folders and lock all the  content