App crashes when trying to open window

Hi guys.
At the moment, my Cocoa Mac application is set to terminate when the last window is closed. I want to run a confirmation alert when the app is about to quit using the following code;
- (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)sender
int choice = NSRunCriticalAlertPanel (@"Confirm",
@"Are you sure you wish to permanently quit Posture? Doing so will stop any further alerts.",
@"Cancel",
@"Yes",
nil,
@"a format");
if(choice == NSAlertDefaultReturn)
[mainWindow makeKeyAndOrderFront:nil];
return NSTerminateCancel;
else
return NSTerminateNow;
The trouble is, when I call [mainWindow makeKeyAndOrderFront:nil] the app will crash, before reaching the NSTerminateCancel.
Does anyone have any ideas as to why this would be happening? The mainWindow is still loaded into the memory, and has not been de-allocated.
I'd appreciate any help!
Thanks,
Ricky.

Your Public Profile indicates you're running Mac OS X (10.4.10) — if that's the case, you should upgrade to 10.4.11 via  menu > Software Update... then update your Public Profile and try editing your site again.
+"A lot of problems can be solved simply by..."+ Read more in the "Fix iWeb" section here:
http://www.iwebformusicians.com/WebMusic/iWebTips.html
But before trying such suggestions, read this:
_iWeb: Backing up your Domain file_
If still no luck, post some details of the crash and perhaps someone can help.
crankbait wrote:
It is my wife's business site...
iWeb is designed for personal sites and is a minor part of Apple's software repertoire. I suggest you consider web-design apps from companies dedicated to their product. Weebly is free and web-based — so you can update the site from any Mac or PC. It also offers e-commerce features:
http://blog.weebly.com/2/post/2009/05/announcing-weebly-e-commerce-features.html
Web-design apps for business sites tend to integrate SEO (Search Engine Optimization) — Sandvox Pro is an example:
http://www.karelia.com/sandvox/getyour_site_noticed_andb.html

Similar Messages

  • I Phone 5s apps crash when trying to open

    Apps crash on I Phone 5s instagram etc.

    Instagram is a 3rd party app, consult the app developer.
    Have you try delete and re-install?

  • InDesign CS5 keeps crashing when trying to open (windows 7)

    I have the master suite collection and have no issues with the other programs. I don't use InDesign as much as some of the other programs, but now I am trying to use it, and it will not open. The purple box comes up saying that it is initializing, then I get RunTime Error! Program: C... This application has requested the Runtime to terminate in an unusual way. After reading a few posts on the forums I tried to update with the 7.0.4 patch, however, this has done nothing for me. I would reinstall but my Adobe account is no longer showing my download info for my purchase.

    Are you sure you've logged in with the same ID? YOu might call customer service and see if they can find the order, too.
    As far as fixing what's wrong, it does sound like a bad install. You could try running the installer again without uninstalling first, and it might recognize the existing serial number (select repair in the installer), but the odss of it actually working are about 50/50 at best, I think.

  • Itunes crashes when trying to open the devices preferences

    itunes crashes when trying to open the devices preferences. I use Mac osX 10.7.3 and iPhone 4s. The iPhone (and iPad) syncs via WLAN but when i try to open the iPhones/iPad Preferences in iTunes iTunes crashes. Any Idea?

    Hi there AlexHB123,
    You may find the troubleshooting steps in the article below helpful.
    iTunes for Windows Vista, Windows 7, or Windows 8: Fix unexpected quits or launch issues
    http://support.apple.com/kb/ts1717
    -Griff W. 

  • Lightroom 4 crashes when trying to open the slideshow module. I spent over three hours with both Adobe and Apple tech support and we know it is a permission issue but have not been able to get it solved.  It started with the last upgrade to 10.8

    Lightroom 4 crashes when trying to open the slideshow module. I spent over three hours with both Adobe and Apple tech support and we know it is a permission issue but have not been able to get it solved.  It started with the last upgrade to 10.8

    Back up all data.
    This procedure will unlock all your user files (not system files) and reset their ownership and access-control lists to the default. If you've set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it.
    Step 1
    If you have more than one user account, and the one in question is not an administrator account, then temporarily promote it to administrator status in the Users & Groups preference pane. To do that, unlock the preference pane using the credentials of an administrator, check the box marked Allow user to administer this computer, then reboot. You can demote the problem account back to standard status when this step has been completed.
    Triple-click the following line to select it. Copy the selected text to the Clipboard (command-C):
    { sudo chflags -R nouchg,nouappnd ~ $TMPDIR.. ; sudo chown -Rh $UID:staff ~ $_ ; sudo chmod -R u+rwX ~ $_ ; chmod -R -N ~ $_ ; } 2> /dev/null
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V). You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The command will take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear, then quit Terminal.
    Step 2 (optional)
    The first step should give you usable permissions in your home folder. This step will restore special attributes set by OS X on some user folders to protect them from unintended deletion or renaming. You can skip this step if you don't consider that protection to be necessary.
    Boot into Recovery by holding down the key combination command-R at startup. Release the keys when you see a gray screen with a spinning dial.
    When the OS X Utilities screen appears, select
    Utilities ▹ Terminal
    from the menu bar. A Terminal window will open.
    In the Terminal window, type this:
    resetpassword
    That's one word, all lower case, with no spaces. Then press return. A Reset Password window will open. You’re not  going to reset a password.
    Select your boot volume ("Macintosh HD," unless you gave it a different name) if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select
     ▹ Restart
    from the menu bar.

  • App crashes when trying to edit specific page

    I need to edit a specific page of my site and I cannot open it as the app crashes when trying to. Does this happen often? It is my wife's business site and she is a novice so we are wondering if we should move to a more stable platform. There is nothing fancy on the page. We bought into iLife specifically because it was easy for her to manage and are interested to know if others see the same thing.

    Your Public Profile indicates you're running Mac OS X (10.4.10) — if that's the case, you should upgrade to 10.4.11 via  menu > Software Update... then update your Public Profile and try editing your site again.
    +"A lot of problems can be solved simply by..."+ Read more in the "Fix iWeb" section here:
    http://www.iwebformusicians.com/WebMusic/iWebTips.html
    But before trying such suggestions, read this:
    _iWeb: Backing up your Domain file_
    If still no luck, post some details of the crash and perhaps someone can help.
    crankbait wrote:
    It is my wife's business site...
    iWeb is designed for personal sites and is a minor part of Apple's software repertoire. I suggest you consider web-design apps from companies dedicated to their product. Weebly is free and web-based — so you can update the site from any Mac or PC. It also offers e-commerce features:
    http://blog.weebly.com/2/post/2009/05/announcing-weebly-e-commerce-features.html
    Web-design apps for business sites tend to integrate SEO (Search Engine Optimization) — Sandvox Pro is an example:
    http://www.karelia.com/sandvox/getyour_site_noticed_andb.html

  • Since the os7 update on my iPad, my safari is not right, it only opens one page at a time, crashes when trying to open more, it has no back button. Help

    Since the os7 update on my iPad, my safari is not right, it only opens one page at a time, crashes when trying to open more, it has no back button. Help

    Well, I rebuilt the entire workbook... that was a few months ago and so far, the problem hasn't resurfaced. It really wasn't fun to do, but whatever glitch there was in the file, I eliminated it.
    I think I should mention that I am using Office v.X, NOT Office 2004. I got a new Intel iMac this week and yesterday when I opened up my files, it opened up the test drive (a JOKE of a program if you ask me) Anyway, some of the very minor issues I had with Office v.X were solved in the 2004 version. (When opening up large multi worksheet files without Excel being already opened, the tabs have white text) Anyway, I am still going to wait for the universal version to come out, but it seems that the newer versions may have fewer glitches (as is to be expected)
    At any rate, best of luck to you!

  • HT1925 I am trying to open Itunes after an upgrade to itunes--it won't open and now says MSVCR80.dll is missimng.  Where do I get this missing DLL.  Also says Error 7 when trying to open (windows error 126)?? I am on Windows 7 if that matters.Help please

    I am trying to open Itunes after an upgrade to itunes--it won't open and now says MSVCR80.dll is missimng.  Where do I get this missing DLL.  Also says Error 7 when trying to open (windows error 126)?? I am on Windows 7 if that matters.Help please

    See the user tip: https://discussions.apple.com/docs/DOC-6562 for the most complete information.

  • Crashing when trying to open a project / forgetting where media files are

    I spent all day manually locating hundreds of missing 'offline media' in a project, saving as I went. Premier Elements crashed when this was complete, now I try to open the project after rebooting and it either cannot find them again or crashes when trying to open the project. Anyone got any clues as to how I can fix this?

    alex peatfield
    What version of Premiere Elements are you using and on what computer operating system is it running?
    How long has this issue existed?
    Are you moving, deleting, renaming files and folders that go into a project after the project has been saved closed?
    If you have source media stored on an external hard drive, determine if the external hard drive is malfunctioning, including if its drive letter
    changing.
    Lots of drill questions...
    a. Running the program from a User Account with Administrative Privileges?
    b. Latest version of QuickTime installed on your computer?
    c. What are your computer resources and is your computer optimized?
    d. What are the properties of your source media that are involved in this issue?
    e. Where are the Scratch Disks directed and how much free hard drive space is at those locations?
    f. Do the problems exist with and without the antivirus and firewall(s) disabled?
    Let us start here and then we can decide what next.
    Thanks.
    ATR

  • Why does MainStage 2.2.1 crash when trying to open?

    Why does MainStage 2.2.1 crash when trying to open?
    It does not respond.

    Contact this address below and request a new download, and that the one you have does not open or it crash whe doing so.
    They open up my account and allowed me to reinstall.
    My redowndloaded Mainstage is now working on my MacB Pro, and four [4] externals, with out any problems.
    Hope this will help others, who are having a problem with Mainstage v 2.2.1
    See below;
    iTunes Store <[email protected]>

  • Finder crashes when trying to open a new window

    When trying to open a new Finder window, Finder will crash and relaunch but won't open an actual new window. Neither can I use the Go To Folder menu.
    I tried relaunching Finder, restarting my MacBook and repairing my disk. Unfortunately, nothing has helped so far..
    Any ideas?
    Small addition: I first noticed the problem while trying to open a DMG file. I don't have any reason to suspect this file is malicious though.

    I faced the exact same problem.
    Please check How to activate an event handler manually? Read the COMPLETE thread... especially the second last entry. Valery has given a perfect workaround for this problem.
    And it works absolutely fine too !
    regards,
    Navneet.

  • Wireshark crashes when trying to open file

    Hi all
    This is very inconvenient, as I use this app very often... yesterday, I was analyzing some tcpdumps, and all was working fine. Suddenly, when trying to open another file, wireshark crashed... and does so ever since when I want to open a file. Error message in X11 is
    "The program 'wireshark' received an X Window System error.
    This probably reflects a bug in the program.
    The error was 'BadMatch (invalid parameter attributes)'.
    (Details: serial 13533 error_code 8 request_code 67 minor_code 0)
    (Note to programmers: normally, X errors are reported asynchronously;
    that is, you will receive the error a while after causing it.
    To debug your program, run it with the --sync command line
    option to change this behavior. You can then get a meaningful
    backtrace from your debugger if you break on the gdkxerror() function.)"
    I've reinstalled X11 as well as wireshark, but to no avail. I'm not very familiar with the X Windows system, I've only ever used it for wireshark (and ethereal before that).
    Mac OS X 10.5.1, wireshark 0.99.6
    Can anyone help me?
    Thanks in advance,
    Tina

    This is a bug in the version of X that Apple shipped with Leopard. You can see here for some pre-release patches of Xquartz that fix this bug: http://www.x.org/wiki/XDarwin
    All you need to update to fix this bug is Xquartz, so you could follow the "Binary Installation" for Xquartz itself. Or, you can use the Quick Install that includes patches of some other components, that fixes various other bugs or contains programs that allow you to work around them.

  • Word Crashes when trying to open file from network

    This is a very similar issue like this thread
    http://social.technet.microsoft.com/Forums/sv-FI/officeitpro/thread/95bc7898-e92d-4e47-8f73-390dba53e851 I cannot open any document from any network share, mapped drive or network place- Word Immediately crashes saying "Microsoft Word has stopped working",
    tries to find a solution and then closes. This can be caused by any means of access the file- directly double clicking from explorer or using the Open command in word, it even crashes when using the Open command, and then just clicking once on a
    mapped drive or Network header.
    I can however copy any file from the network to the local machine and it opens fine. I have tried (With no change in symptoms):
    Safe mode (word), remove & recreate normal templates, repair office, uninstall-reinstall office, updated all updates, disabled offline files, removed protected view settings, trusted network documents, disabled auto-save, virus scans (SEP, Malwarebytes,
    TDSSKiller), system restore to 2 weeks ago- prior to when user said issued started, reinstalled & updated again after restore, and many other things I can't think of right now.
    I have tried to run procmon.exe from sysinternals but get a message saying that "c:\windows\system32\fltlib.dll is either not designed to run on windows or it contains an error. Try installing the program again......"
    I tried the instruction on the linked topic above to create a dump file, but no file was created.
    This is only happening on one workstation on the network. Win7Pro, x64, Office 2010 Standard.
    I am at my wits end, and need some help!

    I have replaced the fltlib.dll file and am now able to run procmon, I also have run sfc /scannow which says it found corrupt files but was not able to repair them. When trying to view the files that need to be fixed it says that sfcdetails.txt cannot be
    opened. If I run the same command with out the destination of desktop/sfcdetails.txt, then it displays the files in the cmd window, but there are what to appear to be hunderds of files.
    I have both logs (procmon & sfc) but they only make partial sense to me. And I still cannot open office files from a network location.
    Event Viewer
    Log Name:      Application
    Source:        Application Error
    Date:          6/13/2012 12:45:09 PM
    Event ID:      1000
    Task Category: (100)
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      Investigation1
    Description:
    Faulting application name: WINWORD.EXE, version: 14.0.6024.1000, time stamp: 0x4d83e2f6
    Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
    Exception code: 0xc0000005
    Fault offset: 0x0000000000000000
    Faulting process id: 0x11c0
    Faulting application start time: 0x01cd4994a74f8694
    Faulting application path: C:\Program Files\Microsoft Office\Office14\WINWORD.EXE
    Faulting module path: unknown
    Report Id: e614f3d5-b587-11e1-b4e1-cc52af403538
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Application Error" />
        <EventID Qualifiers="0">1000</EventID>
        <Level>2</Level>
        <Task>100</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2012-06-13T18:45:09.000000000Z" />
        <EventRecordID>10249</EventRecordID>
        <Channel>Application</Channel>
        <Computer>Investigation1</Computer>
        <Security />
      </System>
      <EventData>
        <Data>WINWORD.EXE</Data>
        <Data>14.0.6024.1000</Data>
        <Data>4d83e2f6</Data>
        <Data>unknown</Data>
        <Data>0.0.0.0</Data>
        <Data>00000000</Data>
        <Data>c0000005</Data>
        <Data>0000000000000000</Data>
        <Data>11c0</Data>
        <Data>01cd4994a74f8694</Data>
        <Data>C:\Program Files\Microsoft Office\Office14\WINWORD.EXE</Data>
        <Data>unknown</Data>
        <Data>e614f3d5-b587-11e1-b4e1-cc52af403538</Data>
      </EventData>
    </Event>

  • InCopy Crashes when trying to open InDesign file.

    InCopy just spins when trying to open an Indesign file and will eventualy cause InCopy to crash. When InCopy is then reopened the file will be recovered but the only tab available is layout view, both story view and gallery view are missing. The editor needs story view to make corrections.
    The designer sets up the file with InDesign CS6 v. 8.0.1 on a mac w/osx v.10.7.5 the editor was using InCopy CS6 v.8.0.1 but has received new hardware and is on v8.0.2 windows 7. One of our Editors does receive this message Adobe InDesign is missing required files, Please reinstall.
    We have upgraded editors hardware to allow more resorces.
    Please advise what may be the cause.

    Why would one of your editors receive a message about "Adobe InDesign is missing required files, please reinstall"? Aren't they using InCopy (not InDesign)?
    Re the InCopy crashes, it sounds like the INDD file might be damaged. You can test this by having the InDesign user create a new test document and export one story to the workflow. See if the InCopy user can open that INDD file over the network, check out the test story, make a change, save it, check it back in, and then the InDesign user update the story on their end.
    AM

  • Adobe reader 8.1.4 crashes when trying to open a pdf link

    Good morning,
    We have an issue with our users. When they try to open a URL pointing to a PDF, Reader 8 crashes after trying to open the link. If I log on as an admin to the machine, the same link opens up fine. There seems to be an issue with the group policy restrictions being applied to the teachers. I look thru our group policies and could not find anything that would stop the normal behavior of Adobe 8 and IE 8 from occurring. Any assistance is appreciated.
    So long,
    Martin Reyes

    Someone may give you and answer here, but you might have more luck in the Reader forum - this is not that forum. It really sounds like a Windows issue as you suggest, but I will let others address this.

Maybe you are looking for