Method called more than once - and dies with EXC_BAD_ACCESS error

Hi,
In my app, I have 4 views with their respective viewControllers. In the appDelegate.m, I provide methods that allows to switch to any of these views. Following is code for switching to the editView:
-(void) flipToEditView {
[self populateTheList]; // populate an array
EditViewController *anEditVC = [[EditViewController alloc] initWithNibName:@"EditView" bundle:nil];
[self setEditVC:anEditVC];
[viewController.view removeFromSuperview];
[self.window addSubview:[editVC view]];
[anEditVC release]; }
The view is not switched - and moreover, this method is called more than once; and the app dies with EXCBADACCESS!
2009-08-23 14:54:40.648 iNotate[2128:20b] Album (before): x= 0 y=20 width=320 height=460
2009-08-23 14:54:40.653 iNotate[2128:20b] Album (after): x= 0 y= 0 width=320 height=480
warning: Couldn't find minimal bounds for "_sigtramp" - backtraces may be unreliable
(gdb) bt
#0 -[iNotateAppDelegate flipToEditView] (self=0x523690, _cmd=0x9563) at /Users/sam/MY_FILES/iPhone Apps/app/Classes/iNotateAppDelegate.m:116
#1 0x00008661 in -[FirstView editAction] (self=0x546a30, _cmd=0xac94) at /Users/sam/MY_FILES/iPhone Apps/app/FirstView.m:25
#2 0x30a4eee6 in -[UIApplication sendAction:to:from:forEvent:] ()
#3 0x30ab0d36 in -[UIControl sendAction:to:forEvent:] ()
#4 0x30ab11fe in -[UIControl(Internal) _sendActionsForEvents:withEvent:] ()
#5 0x30ab0544 in -[UIControl touchesEnded:withEvent:] ()
#6 0x30a67917 in -[UIWindow sendEvent:] ()
#7 0x30a56fff in -[UIApplication sendEvent:] ()
#8 0x30a561e0 in _UIApplicationHandleEvent ()
#9 0x31565dea in SendEvent ()
#10 0x3156840c in PurpleEventTimerCallBack ()
#11 0x94a713c5 in CFRunLoopRunSpecific ()
#12 0x94a71aa8 in CFRunLoopRunInMode ()
#13 0x31566600 in GSEventRunModal ()
#14 0x315666c5 in GSEventRun ()
#15 0x30a4eca0 in -[UIApplication _run] ()
#16 0x30a5a09c in UIApplicationMain ()
#17 0x000027e8 in main (argc=1, argv=0xbffff068) at /Users/sam/MY_FILES/iPhone Apps/app/main.m:14
Current language: auto; currently objective-c
(gdb) continue
2009-08-23 14:54:55.885 iNotate[2128:20b] >>>>>>>>>>>>>>>>>> populateTheList
(gdb) bt
#0 -[iNotateAppDelegate flipToEditView] (self=0x523690, _cmd=0x9563) at /Users/sam/MY_FILES/iPhone Apps/app/Classes/iNotateAppDelegate.m:116
#1 0x00008661 in -[FirstView editAction] (self=0x5457b0, _cmd=0xac94) at /Users/sam/MY_FILES/iPhone Apps/app/FirstView.m:25
#2 0x30a4eee6 in -[UIApplication sendAction:to:from:forEvent:] ()
#3 0x30ab0d36 in -[UIControl sendAction:to:forEvent:] ()
#4 0x30ab11fe in -[UIControl(Internal) _sendActionsForEvents:withEvent:] ()
#5 0x30ab0544 in -[UIControl touchesEnded:withEvent:] ()
#6 0x30a67917 in -[UIWindow sendEvent:] ()
#7 0x30a56fff in -[UIApplication sendEvent:] ()
#8 0x30a561e0 in _UIApplicationHandleEvent ()
#9 0x31565dea in SendEvent ()
#10 0x3156840c in PurpleEventTimerCallBack ()
#11 0x94a713c5 in CFRunLoopRunSpecific ()
#12 0x94a71aa8 in CFRunLoopRunInMode ()
#13 0x31566600 in GSEventRunModal ()
#14 0x315666c5 in GSEventRun ()
#15 0x30a4eca0 in -[UIApplication _run] ()
#16 0x30a5a09c in UIApplicationMain ()
#17 0x000027e8 in main (argc=1, argv=0xbffff068) at /Users/sam/MY_FILES/iPhone Apps/app/main.m:14
(gdb) continue
2009-08-23 14:55:22.493 iNotate[2128:20b] >>>>>>>>>>>>>>>>>> populateTheList
Program received signal: “EXCBADACCESS”.
(gdb) continue
What's happening here?
Sam!

-(void) flipToEditView {
[self populateTheList]; // populate an array
EditViewController *anEditVC = [[EditViewController alloc] initWithNibName:@"EditView" bundle:nil];
[self setEditVC:anEditVC];
[viewController.view removeFromSuperview];
[self.window addSubview:[editVC view]];
[anEditVC release]; }
}<---- is this } matched elsewhere?

Similar Messages

  • -setFence:count: called more than once per transaction

    I am getting following error, any body have any idea what it is?
    -setFence:count: called more than once per transaction
    Debugger stopped.
    Program exited with status value:101.
    Thanks in Advance
    Ravi

    I am getting the same error...
    T'is usly a m'ry error.
    Use the debugging/testing tools in the latest Xcode to track down suspects, etc.

  • WDDOMODIFYVIEW and WDDOPOSTPROCESSING is called more than once!

    Hello everybody,
    maybe someone can help me. Our WDA application consist of 5 Components. One main and 4 components embedded in it. We instantiate the components in the WDDOINIT of the main component and use them between themselves.
    I suppose that's the reason that the events in the views and componentcontrollers of each component is called so often.
    With a break point in a WDDOMODIFYVIEW an the debugger I find out that the  HANDLE_REQUEST methos from the CL_WDR_CLIENT_ABSTRACT_HTTP  class is startet also more than once.
    1.  if m_ucf is not bound -> yes and  m_request_type = suspend
    2.  if m_ucf is not bound -> initial and  m_request_type = suspend
    3.  if m_ucf is not bound -> initial and  m_request_type = suspend
    4.  if m_ucf is not bound -> initial and  m_request_type = refresh
    Maybe someone has expierence with it an can give a hint or explanations for this.
    I hope so
    Thanks for any answer
    Best regards
    Christian Breitenbach

    hi christian.......
         a wddomodifyview view method will be called even if there is a little change in your view. it will b e called more times than your normal pbo in a dynpro application. the wddoinit will be called only before the view is loaded... but the modify willbe called even for popups nad any event.
    ---regards,
       alex b justin

  • QuickTime DOM Events called more than once?

    I am in the process of writing code in JavaScript that will track the interaction on a embedded QuickTime video.
    function ew_addImage(v) {
    trackImg=new Image(1,1);
    trackImg.src=v;
    function ew_pauseTrk() {
    var imgStr='http://www.sldkfjsldfjk.com/200125/EWTRACKNEW_VINT?ewadid=751801&ewbust='ewbust'&eid=1078554&file=$VIDEO$&bw=56&vlen=3:00&vint=PAUSED';
    ew_addImage(imgStr);
    if (document.addEventListener)
    document.getElementById("mov1").addEventListener("qt_pause", ew_pauseTrk, false);
    Everything works correctly. I am able to see the image being called when I am looking at Wireshark. The problem is when I click pause more than once.. It seems like the QuickTime DOM Events can only be called once.. Is that true?
    Thanks

    -(void) flipToEditView {
    [self populateTheList]; // populate an array
    EditViewController *anEditVC = [[EditViewController alloc] initWithNibName:@"EditView" bundle:nil];
    [self setEditVC:anEditVC];
    [viewController.view removeFromSuperview];
    [self.window addSubview:[editVC view]];
    [anEditVC release]; }
    }<---- is this } matched elsewhere?

  • Can a thread's start() method be called more than once?

    Is it legal/well-defined to call a Thread object's start() method after a previous call to start() has completed?
    eg.
    Thread t = new Thread(public void run() {...});
    t.start();
    t.join();
    t.start(); // will this call fail?

    Ok, since no one's going to answer you I will.
    Yes. It won't work if you call start() multiple times and it will throw an exception on all subsequent times.
    The way I work around it is to put the method in an inner-class and then create a new instance of that iner-class everytime I want to start a new thread.

  • Function module In Update Task is called more than once

    Hi experts!!
    I had a requirement to Create a Customer ( i will call it B) when another Customer (A)  is created (ON SAVE).
    I used a Badi to implement the requirement, and inside my Badi i have 2 Function Calls in Update Task.
    The first one to create Customer B and the second one to send Customer's B data to another System.
    Even though the second function call is inside an IF-ENDIF condition ( so that only Customer's B data are sent) the function is called twice sending the same data. My guess is that since the First Function saves the Customer to the database, that is the reason why the second Function is called twice.
    Is there any way i can control how many times a Function In Update Task is called????
    Please help!!
    Thank you in advance!!

    Hi BreakPoint & thank you for your reply!!
    I tried your suggestion but even if i fill the flag during the first call the function is called twice. Looks like during the second database commit the function is called with the correct conditions met but twice.
    Also while debugging it looks like it is only called once. It s very strange!
    Any other ideas???

  • Possible to download emails more than once and still display new emails?

    Hi,
    I have to download emails to my powerbook when i travel, and I download my emails to my powerbook via POP3 server. My office desktop PC, is connected to the company's email server via exchange server. Evertime after i download my emails to my powerbook, the email server will signalified the downloaded emails are read when i download them again to my desktop PC in my office . This way makes it difficult for me to read new emails in my PC when i got back from work. I just use my powerbook to read my emails to make sure nothing serious has happened. when i got the office, i will read my emails carefully and individually. Is there any ways to download all of my email to my Entourage and still showing NEW emails when i download my emails again in my office PC? I think our company uses exchange server 2000. thanks.

    If he is selling the $!29.00 Leopard, and keeping his original discs and $9.99 upgrade, everything is OK. The $129.00 kit will install on another computer (if it meets the Leopard requirements). The $129.00 is licensed for one computer, so technically, he should reinstall Tiger with the discs that came with the computer, then upgrade to Leopard with the $9.99 disc, before selling the $129.00 kit. The resulting software will be the same on his computer, though, so it is just a waste of time (unless he wants to check that the upgrade disc works). If anybody asks, he can say he did it. There's no way to prove he didn't.

  • How to display the same field more than once in  report with diff. filters

    Hello,
    I have an RTF template I built out. There is a 1:M relationship of an opportunity:deal point.
    I want the user to be able to pass the opportunity and then see a report including all the deal points.
    The report looks something like this:
    Date: DP100
    Terms: DP200
    Duration: DP300
    and so on. to simplify things, the date will always be DP100, terms will lways be DP200, etc.
    Where do I set these filters? When using the query builder on the BI Publisher server i don't see anywhere to filter.

    Here is a copied piece of the RTF template illustrating what I'm trying to do in the word template builder.
    Tenant (Signing Entity): <Deal_Point_Value where Deal_point_name = 'DP231'>
    Tradename (D/B/A): <Deal_Point_Value where Deal_point_name = 'DP240'>
    State of Incorporation: <Deal_Point_Value where Deal_point_name = 'DP1330'>
    Landlord: <Deal_Point_Value where Deal_point_name = 'DP1560'>
    Premises: <Deal_Point_Value where Deal_point_name = 'DP144>
    Storage Space: <Deal_Point_Value where Deal_point_name = 'DP235'>
    Off Premises Equipment: <Deal_Point_Value where Deal_point_name = 'DP386'>
    Term: <Deal_Point_Value where Deal_point_name = 'DP940'>
    Options: <Deal_Point_Value where Deal_point_name = 'DP1200'>
    Rent Commencement: <Deal_Point_Value where Deal_point_name = '1136'>
    Estimated Delivery Date: <Deal_Point_Value where Deal_point_name = 'DP123'>

  • HT1212 i have done all of these steps more than once and my iphone is continuing to be disabled. my computer shows "the iphone server could not be contacted." what do i do? i am in desperate need of my iphone to no longer be disabled!

    I have completed the steps given to me to have my iphone 5 no longer be disabled. I have completed the steps multiple times but my computer continues to say "The Iphone spftware update server could not be contacted." I have officially ran out of patience and I am in need of some assistance. I have never disabled my Iphone before and i am having some difficulties trying to get it restored. Please give me any helpful tips possible!!!!
                                                                                                                                               Thanks, Iphone 5 lover

    Temporarily disable any security software on the computer.

  • Performance... Why a function column in a view is executed more than once...?

    Why a function column created inside a view is executed more than once when called more than once?
    EXAMPLE:
    create or replace view aux1 as
    date_column,
    any_function(date_column) column1
    from any_table
    create or replace view aux2 as
    column1 c1,
    column1 c2,
    column1 c3
    from aux1
    select * from aux2
    It will execute 3 times the function any_function... logically the value will be the same for all columns...
    I understand why!... are 3 calls... but...
    Why not to create a "small" verification and if the function column was execute replace the second, the third... value? ... instead of execute 3, 4... times...
    tks
    Braga

    Actually, this is more than a performance issue. This is a consistency problem. If the function is NOT deterministic then you may get different values for each call which is clearly not consistent with selecting 3 copies of the same column from a row. Oracle appears to have fixed this in 9i...
    Connected to:
    Oracle8i Enterprise Edition Release 8.1.7.2.0 - Production
    With the Partitioning option
    JServer Release 8.1.7.2.0 - Production
    create view v1 as select dbms_random.value(1,100) r from dual;
    create view v2 as select r r1, r r2 from v1;
    select * from v2;
              R1           R2
              93           74
    Connected to:
    Oracle9i Enterprise Edition Release 9.0.1.3.0 - Production
    With the Partitioning option
    JServer Release 9.0.1.3.0 - Production
    create view v1 as select dbms_random.value(1,100) r from dual;
    create view v2 as select r r1, r r2 from v1;
    select * from v2;
              R1           R2
              78           78Richard

  • Can you create a form in which its never possible for the same person te sign the form more than once.

    Hi, I've been looking into this for awhile and believe the answer is 'no' but was just wondering if anyone here would know of a solution.
    The company I work for has a formulier on which a number of Excel files are placed. This form is then sent to a five (often different) people who are then required to open the Excel files and if accord to place their digital signature. We would like to make sure that no one is able to sign the form more than once and also if possible to make sure they have opened the Excel files. It would be great if anyone had any tips...
    All the very best,
    Martin Angell

    I am not an Excel or Excel-to-PDF conversion expert, so I do not know how Excel forms are converted to PDF form fields. With this caveat here's what I do know.
    In Acrobat It is possible to create a PDF form in which there are JavaScripts associated with fields (any fields, including signature fields). These JavaSripts can do a lot of things, including checking the signer's certificates on the already signed signature fields. Then you can make all unsigned signature fields read-only, in which case the user will not be able to actually sign them. After that you can overlay a button field on top of each unsigned signature field with exactly the same dimensions and associate a JavaAcript with this button field. This JavaScript would put up an UI asking the user for the signing certificate and its password, check this certificate's CN against the list of already signed signature fields and initiate the signing of the unsigned signature field behind this button if your condition is satisfied.
    I never tried that myself but it could work. This looks complicated and it is but if you really want it you can try.

  • Messages receive appear more than once in my mailbox

    The problem is the messages that i receive appear more than once and it keep doing this.
    Its like they were cloning or multiplicand, I have until 8 messages of the same thing and this thing continuous happening.
    What can I do?, i all ready try the suggestions in the support area in apple, but this does not works with my problem.
    I even think that cold be a virus.
    Any suggestions will be very appreciate.
    Thnaks

    Please, try to provide as much information as possible, instead of as little as possible. What’s the time interval chosen in the Remove copy from server popup menu?
    It looks like Mail has lost track of which messages have already been downloaded and is downloading them again, or maybe it’s failing to remove them from the server according to your settings.
    Try to remove from the server all the messages that have already been downloaded by clicking the Remove now button -- check for new mail first, just in case there is something amiss and that function doesn’t work as expected.
    If Preferences > Accounts > Advanced > Remove now fails to remove the messages from the server, you can try to do so manually using the Account Info window. In order to use that feature, choose Get Info (⌘I) from the Action menu (gear icon) located below the mailboxes list in the main Mail window.

  • Albums Showing up more than Once

    I have two albums that are showing up more than once, and the album is only on the i pod once, and it is only under the "album" section. I have already restored the i pod and re put every back on the i pod. Does anyone one know how to fix it?

    Repeat albums are normally caused by minor spelling differences or the presence of guest artist information in the artist field. Select all the tracks of the album and get info (CTRL-I for Windows, OPTION-I for Mac). Check that you have values for all the fields you think should be the same across the album, particularly *Album Artist*, *Album Title* and, if no guest artists are listed, Artist. If you have guest artists you can either move this information into the track title, e.g. append *(Feat. Guest)* or change the *Sort Artist* of each affected track to the value of the *Album Artist*.
    tt2

  • Hello. My iPhone 4s when recieving message plays the tone more than once. How to stop that?

    It plays the tone more than once and it's not playing the tone fully. It plays like it is "stuck". Like CDs play when they are scratched. How can I stop that?

    Pause and off are the same thing.   This is how you stop the music.
    iPhone User Guide (For iOS 5.0 Software)

  • How to call the same query more than once with different selection criteria

    Hi,
    Please do anybody know how to solve this issue? I need to call one query with the fixed structure more than once with different selection criteria. For example. I have following data
    Sales organization XX
                         Income 2008  Income 2009
    Customer A       10                 20
    Customer B        30                  0
    Sales organization YY
                         Income 2008  Income 2009
    Customer A        20                5
    Customer B        50                10
    Now, I need this. At the selection screen of query, user fill variable  charakteristic "Sales organization" with interval  XX - YY, than I need to generate two separate results per sales organization, one for Sales Organization XX and the second for SO YYwhich will be displayed each on separate page, where result for SO YY will be dispayed under result for SO YY. Are there some options how to do it for example in Report Designer or WAD or with programming? In Report Designer is possible to use one query more than once, but I dont know how to force each query in RD to display result only for one Sales Organization, which will be defined in selection screen.
    Thank you very much
    J.

    Hello,
    thanks to all for cooperation. Finally we solved this issue with the following way..
    User fill appropriate SO on the selection screen, which is defined as range. This will resulte, that selected SO are listed in report below each othe (standard behavior). Required solution we achieved with the Report Designer, we set page break under each Result row of RD. This caused, that report is divided into required part per SO, which are stated each on separate page.
    J.

Maybe you are looking for

  • Required Vendor Excise Details_J1ID_Creation Date & time

    Hi Experts, We have update Vendor Excise details in t code J1ID under vendor Excise details tab. We have required to Creation date (When Excise details update of particular Customer) Please help BK GAIKWAD

  • DMEE - How to supress tags with no values

    Hi, I have created a payment format tree using transaction DMEE and the values are getting generated as required. But the problem is, when i dont have any values in a given node, I dont want to display the tag for that particular node. For example, s

  • Generated Code for Button Bar - Not Working

    Hi all, I'm working with LightSwitch 2013 (Visual Studio 2013 Update 4), and I noticed that when I view my HTML5 client in Internet Explorer 11 and switch between tabs (in the HTML5 client), the buttons become barely visible (like they were disabled,

  • How to execute multiple SQL statements thru frontend?

    With SQL Server database, you can execute multiple SQL statements. Ex. SQLCommand cmd = new SQLCommand(); cmd.CommandText = "SELECT * FROM EMP; SELECT * FROM DEPT"; cmd.ExecuteXXX(); Note that for SQL Server, ";" (semocolon) is used as a separator. W

  • Help me now plz did i frie it

    my girlfriend was listening to my ipod and it like froze it doesnt even move at all and itunes doesnt see it at all so what do i do it wont move a bit it 4gb 2nd blue