Program crashes in Vista

Hello again,
I have been testing our projector program on a Vista Home
Premium machine and it crashes for no reason. The message I am
getting is Macromedia Director had to close. The program works fine
on Windows XP. Does anyone know what could be causing the program
to just shut down on Vista and yet run fine on XP?
Thanks,
Jared

Ja-rod wrote:
> I have been testing our projector program on a Vista
Home Premium machine and
> it crashes for no reason. The message I am getting is
Macromedia Director had
> to close. The program works fine on Windows XP. Does
anyone know what could
> be causing the program to just shut down on Vista and
yet run fine on XP?
Hi Jarod,
Hard to say why it's crashing without more info. What exactly
is happening at the
time (or just before) the application crashes?
Do other applications made with Director crash on your Vista?
The key is ti
pinpoint the part of the application that is causing Vista to
be unhappy.
regards
Dean
Director Lecturer / Consultant / Director Enthusiast
http://www.fbe.unsw.edu.au/learning/director
http://www.multimediacreative.com.au
email: [email protected]

Similar Messages

  • PSE6 crashing after Vista update

    I had PSE6 open and last night I got a Microsoft update for Vista that automatically restarted my computer.  Now I can't open a psd without PSE6 crashing.   I can open a psd by right clicking on it and picking to open with PSE6, but I can't open it from the program itself.

    Tried everything but the TWAIN (don't have anything like that attached and I'm not getting that error).  No change in the program crashing - with the PSE6 has stopped working error message.  I haven't changed anything on this computer for ages so I didn't try the plug-in troubleshooting either.  The only thing that changed was the Vista update.  I really don't want to call customer service and go through that.  I can open .jpgs and make psds so I'll wait for awhile and see if anyone else has this problem too...  I guess I could go back and remove whatever update Microsoft gave me last night as well...  And has anyone had any luck running Windows 7 with PSE6?  I've been thinking about upgrading to that...

  • Photo Mail crashing under Vista

    Has anyone else run into a problem with Element 6's Photo Mail crashing using Vista? I select the recipient and open the Choose Stationary page and the Windoes error screen "Adobe Photoshop Elements 6.0 (Organizer) has stopped working" pops up and closes the program. Any suggestions?

    I have . No fixes I see.

  • Programs Crashing with Snow Leopard

    Since I've updated to Snow Leopard, I'm having massive problems with iTunes and iWork '08. All of my programs (iTunes, Keynote, Pages, and Numbers) are crashing on launch with the error "Program quit unexpectedly." I'm not getting an error code.
    I've tried the following:
    iTunes: uninstalling/reinstalling/updating, deleting library, launching with another user profile on same computer, deleting preferences.
    iWork '08 programs: updating, launching with another user profile, deleting preferences, disabling duplicate fonts.
    With all programs I have tried going into the activity monitor to get more information, but the programs crash so quickly that I can't get any more information.
    Any one got any ideas?

    Oh, realy? When last time you used Windows? In the middle of 90's? Get a PC with Windows Vista or 7, you will understand that IT IS NOT POSSIBLE TO MAKE a 64-bit Mac with Blue-Ray, HDMI ports etc. 2009 is the year of Macs TOTAL END. I don't know for what I bought Snow Leopard… (The fact is: lower price, lower quality).

  • Program crashes upon Opening

    Hi, My OS is Windows 7 and I am using the DW CS5 program. For two days now whenever I try to open DW it crashes immediately. I have gone to the forum and tried the remedy the problem trying the three options listed for DW CS4 program crashes, but none helped. I wasn't able to locate a current FAQ regarding this problem in DWCS5. Can someone help me please.

    Here's the remedies that I tried. The first one doesn't apply that I know of...the link to this forum is:  http://forums.adobe.com/thread/417116. There are no error messages. Just the standard "Dreamweaver has experienced a problem and will shut down. Microsoft will look for a solution...blah-blah." Then the program closes out. In conjunction with these recommended remedies I have re-booted several times too. I am also running Microsoft Expression Web 4 on the same computer. Of course I haven’t tried to run both at the same time but separately. I have not had any issues up until now.
    Robert
    Apr 9, 2009 11:45 AM
    Dreamweaver crashes on start up
    There are three common causes of Dreamweaver crashing on start up:
    Conflict with security program on Acer computers
    A corrupt Dreamweaver file cache
    The 8KB bug
    The following information describes how to handle each one.
    Acer incomaptibility
    There’s a known conflict between Dreamweaver and Acer eDataSecurity Management v3.0. If you’re on an Acer, and Dreamweaver won’t start, download the patch from http://www.egistec.com/oem-acer001/program-update.html. This should fix the problem.
    Corrupted file cache
    Dreamweaver creates a cache file called WinFileCache-*******.dat or MacFileCache-*******.dat inside your personal Dreamweaver configuration folder (the asterisks represent a series of letters and numbers that might differ from computer to computer). This occasionally gets corrupted causing instability, unpredictable error messages, and even crashes.
    To solve the problem, close Dreamweaver and delete WinFileCache-*******.dat or MacFileCache-*******.dat. Sometimes, deleting this file is not sufficient, and you need to delete your personal configuration folder in its entirety.
    WARNING: Do not confuse your personal configuration folder with the main configuration folder in Program Files in Windows or Applications on a Mac. You should never touch the main configuration folder unless you really know what you're doing.
    Locating your personal configuration folder
    The location of the personal configuration folder depends on your operating system and version of Dreamweaver. For Dreamweaver CS4, it’s as follows:
    Vista: C:\Users\ View. In Advanced settings, choose Show hidden files and folders.
    Once you turn on this option, hidden folders are displayed as dimmed icons to remind you to treat them with care.
    The 8KB bug
    This is a very rare bug that causes Dreamweaver to crash during operation, and then crash repeatedly each time you try to restart the program. It normally affects only Dreamweaver CS3 on Windows, and is caused by the presence of a file that's exactly 8,192 bytes (8KB) or a multiple thereof.
    The solution is to open the file in a text editor and add a few extra characters (new lines or a comment will do). Save the file, and restart Dreamweaver.
    If the file causing the problem is an image or other type of media file, edit it so that it's no longer an exact multiple of 8KB.

  • Have a  problem with Lightroom 5.4.  Since the program crashed yesterday it won't launch, it comes up with the message "Lightroom encountered an error when reading its preview cache and needs to quit".  "  Lightroom will attempt to fix this problem net ti

    Have a  problem with Lightroom 5.4.  Since the program crashed yesterday it won't launch, it comes up with the message "Lightroom encountered an error when reading its preview cache and needs to quit".  "  Lightroom will attempt to fix this problem next time it launches".  Except that it doesn't, I keep getting the same message and the program closes.  Does anyone know what I  can do to repair it?  Can't back up, can't do anything.

    There are dozens of threads in this forum that describe the fix

  • Program crashes when I try to load EPUB/ASCM ebook file or transfer the file to Nook ereader.

    I recently checked out an ebook from my library's OverDrive and downloaded the EPub file to my Mac OS 10.10.1 computer. File downloaded to computer without incident, showing up as a acsm file in my Downloads folder. But when I attempt to open the file in Adobe Digital Editions 4.0.2 in order to transfer it to my Nook ereader, a message comes up saying it is fulfilling (similar to normal) but then the program crashes.
    I get this error message:
    (Adobe Digital Editions quit unexpectedly.
    Click Reopen to open the application again. Click Report to see more
    detailed information and send a report to Apple.
    With buttons that say: Ignore    Report     Reopen)
    Then when I reopen Adobe Digital Editions, it appears as thought the file is in the Adobe Digital Editions browser, but if I click on it to open it or try and transfer it to my Nook ereader device the program crashes again. (Same error message)
    I've tried erasing the file and redownloading the ebook from Google Chrome, Safari and Firefox and the same thing happens. I've also tried restarting my computer and looking for updates to resolve the issue (there were none). I've used this program before with no issues, so this problem is new. I've also tried opening other files since, they most of those seem to open as well.I've used this program before with no issues, so this problem is new.
    Running out of ideas. Please help!

    Mike, that worked -- I think! I couldn't change the printer without a document open, but while I was in the File menu, I noticed the "Browse in Bridge" command, and it occurred to me that I hadn't tried opening a file from Bridge. It opened first to the templates, and I realized I had not tried opening a template. So I did, that worked, and I changed the printer from where it was set (Adobe pdf) to my regular printer. Now I can create new files, and all files seem to open without a problem. Thanks!

  • Does anyone know how to display (in LabVIEW) the memory use during execution of an image and data acquisition VI to predict when it is time to cease the acquisition to prevent the program crashing?

    Does anyone know how to display (in LabVIEW) the memory use during execution of an image and data acquisition VI to predict when it is time to cease the acquisition to prevent the program crashing?
    I am acquiring images and data to a buffer on the edge of the while loop, and am finding that the crashing of the program is unpredictable, but almost always due to a memory saturation when the buffers gets too big.
    I have attached the VI.
    Thanks for the help
    Attachments:
    new_control_and_acquisition_program.vi ‏946 KB

    Take a look at this document that discusses how to monitor IMAQ memory usage:
    http://digital.ni.com/public.nsf/websearch/8C6E405861C60DE786256DB400755957
    Hope this helps -
    Julie

  • When I open Pages, it opens all previous documents. But I cannot close them:if I try, the program crashes

    Hello everyone.
    Since middle february, Pages has not been working properly.
    When I start the program, it opens by default a blank page. That was fine until recently. I would simply close it and open my desired document. But now I cannot close the blank document: if I do it, the program crashes.
    I have bypassed the problem by simply minimizing the blank one and going along with my own documents... Unfortunately now the problem has increased, as it will not close any document.
    Therefore when I start the program, it will re-open all the documents and it will crash all the time I try to close them.
    Also, It will not let me save them or turn themm to PDF.
    What can I do ?
    I have also removed the previous software and I bought (again) Pages on the App Store last week... results: NONE!! it still won't work.
    HEEEELLLPPPPP
    thank you
    jack

    Hello
    I was warned of your problem by Jerrold.
    As I'm really besy this evening, I didn't read carefully the available message.
    What you get is a Lion's feature named "Resume".
    If you dislike me (as I do but I don't feel useful to rant against it) there are several ways to get rid of it.
    (1) In theory, it's sufficient to uncheck a box in the General System PrefPane.
    I wrote « in theory » because, at least in the French version this feature is broken.
    (2) Some third party tools are delivered to rule the feature's behavior for each application.
    Here are two free ones :
    Lion Tweaks ( http://ifredrik.com/applications/ )
    TinkerTool ( http://www.bresink.com/osx/TinkerTool.html )
    (3) As none of them apply on my French System, I designed a home made brute force tool.
    --{code}
    --[SCRIPT don't resume]
    if my parle_Anglais() then
              display dialog "What to do ?" buttons {"Cancel", "Restart", "Shutdown"} default button 3 cancel button 1
              set |éteindre| to (button returned of result) is "Shutdown"
    else
              display dialog "Que faire ?" buttons {"Annuler", "Redémarrer", "Éteindre"} default button 3 cancel button 1
              set |éteindre| to (button returned of result) is "Éteindre"
    end if
    (path to library folder from user domain as text)
    tell application "System Events"
              delete every folder of folder (result & "Saved Application State")
              if |éteindre| then
      shut down
              else
      restart
              end if
    end tell
    --=====
    on parle_Anglais()
              return (do shell script "defaults read 'Apple Global Domain' AppleLocale") does not start with "fr_"
    end parle_Anglais
    --=====
    --[/SCRIPT]
    --{code}
    Save this script as as Script and store it in the folder :
    <startupVolume>:Users:<yourAccount>:Library:Scripts:
    On my machine, thanks to FastScripts, I attached a shortcut to this script.
    So, when I press cmd +option + ctrl + Q I get this dialog :
    On an English System, the buttons are :
    Cancel, Restart, Shutdown.
    When we trigger the last two, the folder storing the dats required by the system to apply « Resume » is emptied so when we restart the machine no extraneous window is opened.
    I didn't described the way to reach the folder named Scripts.
    I'm sur that Jerrold will do that with a better English.
    Yvan KOENIG (VALLAURIS, France) mardi 17 avril 2012
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.3
    My Box account  is : http://www.box.com/s/00qnssoyeq2xvc22ra4k

  • Programs Crashing when Closing without Saving

    Everytime I cose a document (no matter what Program I am using), when the Save/Don't Save/Cancel dialog box pops up the Program crashes. It also happens when I try to Log Out and the countdown timer pops up.
    I mostly use Photoshop, but ths happens with other apps like Textedit.
    Dual 1.8 GHz PowerPC G5   Mac OS X (10.3.9)  

    Aouto recovery is not really the same as an auto-save, either. You don't necessarily get the last state before the program closed (a force quit would do an auto-recovery, too, on restart) because the the recovery data is not updated in real time.

  • Everytime i try to add a text box the program crashes.  Why and how do I fix it?

    Since I purchased and installed Adobe Photoshop Elements every time I try to add a text box the program crashes.  Why and how do I fix it?

    TeeKnows wrote:
    Debit cards are accepted in the iTunes store.
    No longer accepted for NEW accounts, however if a debit card were associated with the account BEFORE this change, they can still be used.

  • Program Crashing at sqlite3_Prepare help!!!!

    Hi guys,
    I am trying to make a program which inserts values into a sqlite database. For some reason my program crashes every time I press the button to insert the value. I have been trying to fix this for a long time but have not been able to fix it. Can you please have a look at my code and tell me what's wrong. Im going to put the code of my .m files on here.
    BpValue.m
    #import "BpValue.h"
    static sqlite3 *database = nil;
    static sqlite3_stmt *addStmt = nil;
    @implementation BpValue
    @synthesize valueID, value, isDirty, isDetailViewHydrated;
    + (void) finalizeStatements {
    if(database) sqlite3_close(database);
    if (addStmt) sqlite3_finalize(addStmt);
    - (id) initWithPrimaryKey:(NSInteger) pk {
    [super init];
    valueID = pk;
    isDetailViewHydrated = NO;
    return self;
    - (void) addValue {
    if(addStmt == nil) {
    const char *sql = "insert into BPressure(Value) Values(?)";
    if(sqlite3preparev2(database, sql, -1, &addStmt, NULL) != SQLITE_OK)
    NSAssert1(0, @"Error while creating add statement. '%s'", sqlite3_errmsg(database));
    sqlite3binddouble(addStmt, 1, [value doubleValue]);
    if(SQLITE_DONE != sqlite3_step(addStmt))
    NSAssert1(0, @"Error while inserting data. '%s'", sqlite3_errmsg(database));
    else
    //SQLite provides a method to get the last primary key inserted by using sqlite3last_insertrowid
    valueID = sqlite3last_insertrowid(database);
    //Reset the add statement.
    sqlite3_reset(addStmt);
    - (void) dealloc {
    [value release];
    [super dealloc];
    @end
    MyViewController.m
    #import "MyViewController.h"
    #import "HelloWorldAppDelegate.h"
    #import "sqlite3.h"
    #import "BpValue.h"
    @implementation MyViewController
    @synthesize textField;
    @synthesize label;
    @synthesize string;
    - (IBAction)changeGreeting:(id)sender {
    HelloWorldAppDelegate *appDelegate = (HelloWorldAppDelegate *)[[UIApplication sharedApplication] delegate];
    BpValue *bpObj = [[BpValue alloc] initWithPrimaryKey:0];
    NSDecimalNumber *temp = [[NSDecimalNumber alloc] initWithString:textField.text];
    bpObj.value = temp;
    [temp release];
    self.string = textField.text;
    NSString *nameString = string;
    if ([nameString length] == 0) {
    nameString = @"World";
    NSString *greeting = [[NSString alloc] initWithFormat:@"Hello, %@!", nameString];
    label.text = greeting;
    //Add the object
    [appDelegate addValue:bpObj];
    [greeting release];
    - (BOOL)textFieldShouldReturn:(UITextField *)theTextField {
    if (theTextField == textField) {
    [textField resignFirstResponder];
    return YES;
    - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
    if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) {
    // Initialization code
    return self;
    Implement loadView if you want to create a view hierarchy programmatically
    - (void)loadView {
    If you need to do additional setup after loading the view, override viewDidLoad.
    - (void)viewDidLoad {
    - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    // Return YES for supported orientations
    return (interfaceOrientation == UIInterfaceOrientationPortrait);
    - (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning]; // Releases the view if it doesn't have a superview
    // Release anything that's not essential, such as cached data
    - (void)dealloc {
    [super dealloc];
    [label release];
    [string release];
    [super dealloc];
    @end
    HelloWorldAppDelegate.m
    #import "MyViewController.h"
    #import "HelloWorldAppDelegate.h"
    #import "BpValue.h"
    @implementation HelloWorldAppDelegate
    @synthesize window;
    @synthesize myViewController;
    @synthesize valuesArray;
    - (void)applicationDidFinishLaunching:(UIApplication *)application {
    //Copy database to the user's phone if needed.
    [self copyDatabaseIfNeeded];
    NSMutableArray *tempArray = [[NSMutableArray alloc] init];
    self.valuesArray = tempArray;
    [tempArray release];
    MyViewController *aViewController = [[MyViewController alloc]
    initWithNibName:@"ControllerView" bundle:[NSBundle mainBundle]];
    self.myViewController = aViewController;
    [aViewController release];
    UIView *controllersView = [myViewController view];
    [window addSubview:controllersView];
    [window makeKeyAndVisible];
    - (void)applicationWillTerminate:(UIApplication *)application {
    // Save data if appropriate
    //Save all the dirty coffee objects and free memory.
    [self.valuesArray makeObjectsPerformSelector:@selector(saveAllData)];
    [BpValue finalizeStatements];
    - (void)dealloc {
    [valuesArray release];
    [myViewController release];
    [window release];
    [super dealloc];
    - (void) copyDatabaseIfNeeded {
    //Using NSFileManager we can perform many file system operations.
    NSFileManager *fileManager = [NSFileManager defaultManager];
    NSError *error;
    NSString *dbPath = [self getDBPath];
    BOOL success = [fileManager fileExistsAtPath:dbPath];
    if(!success) {
    NSString *defaultDBPath = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"Database.sqlite"];
    success = [fileManager copyItemAtPath:defaultDBPath toPath:dbPath error:&error];
    if (!success)
    NSAssert1(0, @"Failed to create writable database file with message '%@'.", [error localizedDescription]);
    - (NSString *) getDBPath {
    //Search for standard documents using NSSearchPathForDirectoriesInDomains
    //First Param = Searching the documents directory
    //Second Param = Searching the Users directory and not the System
    //Expand any tildes and identify home directories.
    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory , NSUserDomainMask, YES);
    NSString *documentsDir = [paths objectAtIndex:0];
    return [documentsDir stringByAppendingPathComponent:@"Database.sqlite"];
    - (void) addValue:(BpValue *)bpObj {
    //Add it to the database.
    [bpObj addValue];
    //Add it to the coffee array.
    [valuesArray addObject:bpObj];
    @end
    Please if someone knows whats wrong, please tell me. It crashes at sqlite_prepare3. Following is part of the crash report
    Exception Type: EXCBADACCESS (SIGBUS)
    Exception Codes: KERNPROTECTIONFAILURE at 0x0000000000000030
    Crashed Thread: 0
    Application Specific Information:
    iPhone Simulator 1.0 (70), iPhone OS 2.0 (5A345)
    Thread 0 Crashed:
    0 libsqlite3.0.dylib 0x93d211f0 sqlite3Prepare + 48
    1 HelloWorld 0x000031c8 -BpValue addValue + 89 (BpValue.m:38)
    2 HelloWorld 0x00002b70 -HelloWorldAppDelegate addValue: + 36 (HelloWorldAppDelegate.m:84)
    3 HelloWorld 0x00002e6b -MyViewController changeGreeting: + 509 (MyViewController.m:41)
    4 UIKit 0x30a5e25e -UIApplication sendAction:to:from:forEvent: + 116
    5 UIKit 0x30abb022 -UIControl sendAction:to:forEvent: + 67
    6 UIKit 0x30abb4ea -UIControl(Internal) _sendActionsForEvents:withEvent: + 478
    7 UIKit 0x30aba830 -UIControl touchesEnded:withEvent: + 483
    8 UIKit 0x30a75c0b -UIWindow sendEvent: + 454
    9 UIKit 0x30a65e07 -UIApplication sendEvent: + 269
    10 UIKit 0x30a6522a _UIApplicationHandleEvent + 4407
    11 GraphicsServices 0x31699522 SendEvent + 35
    12 GraphicsServices 0x3169b88c PurpleEventTimerCallBack + 276
    13 com.apple.CoreFoundation 0x971be615 CFRunLoopRunSpecific + 3141
    14 com.apple.CoreFoundation 0x971becf8 CFRunLoopRunInMode + 88
    15 GraphicsServices 0x31699d38 GSEventRunModal + 217
    16 GraphicsServices 0x31699dfd GSEventRun + 115
    17 UIKit 0x30a5dadb -UIApplication _run + 440
    18 UIKit 0x30a68ce4 UIApplicationMain + 1258
    19 HelloWorld 0x00002650 main + 102 (main.m:14)
    20 HelloWorld 0x000025be start + 54
    Thread 1:
    0 libSystem.B.dylib 0x93b624a6 machmsgtrap + 10
    1 libSystem.B.dylib 0x93b69c9c mach_msg + 72
    2 com.apple.CoreFoundation 0x971be0ce CFRunLoopRunSpecific + 1790
    3 com.apple.CoreFoundation 0x971becf8 CFRunLoopRunInMode + 88
    4 WebCore 0x32a8a450 RunWebThread + 384
    5 libSystem.B.dylib 0x93b936f5 pthreadstart + 321
    6 libSystem.B.dylib 0x93b935b2 thread_start + 34
    Thread 2:
    0 libSystem.B.dylib 0x93b624a6 machmsgtrap + 10
    1 libSystem.B.dylib 0x93b69c9c mach_msg + 72
    2 GraphicsServices 0x3169ce0a EventReceiveThread + 467
    3 libSystem.B.dylib 0x93b936f5 pthreadstart + 321
    4 libSystem.B.dylib 0x93b935b2 thread_start + 34
    Thread 3:
    0 libSystem.B.dylib 0x93b624a6 machmsgtrap + 10
    1 libSystem.B.dylib 0x93b69c9c mach_msg + 72
    2 com.apple.CoreFoundation 0x971be0ce CFRunLoopRunSpecific + 1790
    3 com.apple.CoreFoundation 0x971becf8 CFRunLoopRunInMode + 88
    4 com.apple.CFNetwork 0x95a59a32 CFURLCacheWorkerThread(void*) + 396
    5 libSystem.B.dylib 0x93b936f5 pthreadstart + 321
    6 libSystem.B.dylib 0x93b935b2 thread_start + 34
    Thread 0 crashed with X86 Thread State (32-bit):
    eax: 0x000040b0 ebx: 0x0000317d ecx: 0xffffffff edx: 0x00003e18
    edi: 0x00000000 esi: 0x004123a0 ebp: 0xbfffe5c8 esp: 0xbfffe470
    ss: 0x0000001f efl: 0x00010282 eip: 0x93d211f0 cs: 0x00000017
    ds: 0x0000001f es: 0x0000001f fs: 0x00000000 gs: 0x00000037
    cr2: 0x00000030

    thanks realized that soon after posting...everything works now yay!!

  • Program Crashing at sqlite_prepare3 help!!!!

    Hi guys,
    I am trying to make a program which inserts values into a sqlite database. For some reason my program crashes every time I press the button to insert the value. I have been trying to fix this for a long time but have not been able to fix it. Can you please have a look at my code and tell me what's wrong. Im going to put the code of my .m files on here.
    BpValue.m
    #import "BpValue.h"
    static sqlite3 *database = nil;
    static sqlite3_stmt *addStmt = nil;
    @implementation BpValue
    @synthesize valueID, value, isDirty, isDetailViewHydrated;
    + (void) finalizeStatements {
    if(database) sqlite3_close(database);
    if (addStmt) sqlite3_finalize(addStmt);
    - (id) initWithPrimaryKey:(NSInteger) pk {
    [super init];
    valueID = pk;
    isDetailViewHydrated = NO;
    return self;
    - (void) addValue {
    if(addStmt == nil) {
    const char *sql = "insert into BPressure(Value) Values(?)";
    if(sqlite3preparev2(database, sql, -1, &addStmt, NULL) != SQLITE_OK)
    NSAssert1(0, @"Error while creating add statement. '%s'", sqlite3_errmsg(database));
    sqlite3binddouble(addStmt, 1, [value doubleValue]);
    if(SQLITE_DONE != sqlite3_step(addStmt))
    NSAssert1(0, @"Error while inserting data. '%s'", sqlite3_errmsg(database));
    else
    //SQLite provides a method to get the last primary key inserted by using sqlite3last_insertrowid
    valueID = sqlite3last_insertrowid(database);
    //Reset the add statement.
    sqlite3_reset(addStmt);
    - (void) dealloc {
    [value release];
    [super dealloc];
    @end
    MyViewController.m
    #import "MyViewController.h"
    #import "HelloWorldAppDelegate.h"
    #import "sqlite3.h"
    #import "BpValue.h"
    @implementation MyViewController
    @synthesize textField;
    @synthesize label;
    @synthesize string;
    - (IBAction)changeGreeting:(id)sender {
    HelloWorldAppDelegate *appDelegate = (HelloWorldAppDelegate *)[[UIApplication sharedApplication] delegate];
    BpValue *bpObj = [[BpValue alloc] initWithPrimaryKey:0];
    NSDecimalNumber *temp = [[NSDecimalNumber alloc] initWithString:textField.text];
    bpObj.value = temp;
    [temp release];
    self.string = textField.text;
    NSString *nameString = string;
    if ([nameString length] == 0) {
    nameString = @"World";
    NSString *greeting = [[NSString alloc] initWithFormat:@"Hello, %@!", nameString];
    label.text = greeting;
    //Add the object
    [appDelegate addValue:bpObj];
    [greeting release];
    - (BOOL)textFieldShouldReturn:(UITextField *)theTextField {
    if (theTextField == textField) {
    [textField resignFirstResponder];
    return YES;
    - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
    if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) {
    // Initialization code
    return self;
    Implement loadView if you want to create a view hierarchy programmatically
    - (void)loadView {
    If you need to do additional setup after loading the view, override viewDidLoad.
    - (void)viewDidLoad {
    - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    // Return YES for supported orientations
    return (interfaceOrientation == UIInterfaceOrientationPortrait);
    - (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning]; // Releases the view if it doesn't have a superview
    // Release anything that's not essential, such as cached data
    - (void)dealloc {
    [super dealloc];
    [label release];
    [string release];
    [super dealloc];
    @end
    HelloWorldAppDelegate.m
    #import "MyViewController.h"
    #import "HelloWorldAppDelegate.h"
    #import "BpValue.h"
    @implementation HelloWorldAppDelegate
    @synthesize window;
    @synthesize myViewController;
    @synthesize valuesArray;
    - (void)applicationDidFinishLaunching:(UIApplication *)application {
    //Copy database to the user's phone if needed.
    [self copyDatabaseIfNeeded];
    NSMutableArray *tempArray = [[NSMutableArray alloc] init];
    self.valuesArray = tempArray;
    [tempArray release];
    MyViewController *aViewController = [[MyViewController alloc]
    initWithNibName:@"ControllerView" bundle:[NSBundle mainBundle]];
    self.myViewController = aViewController;
    [aViewController release];
    UIView *controllersView = [myViewController view];
    [window addSubview:controllersView];
    [window makeKeyAndVisible];
    - (void)applicationWillTerminate:(UIApplication *)application {
    // Save data if appropriate
    //Save all the dirty coffee objects and free memory.
    [self.valuesArray makeObjectsPerformSelector:@selector(saveAllData)];
    [BpValue finalizeStatements];
    - (void)dealloc {
    [valuesArray release];
    [myViewController release];
    [window release];
    [super dealloc];
    - (void) copyDatabaseIfNeeded {
    //Using NSFileManager we can perform many file system operations.
    NSFileManager *fileManager = [NSFileManager defaultManager];
    NSError *error;
    NSString *dbPath = [self getDBPath];
    BOOL success = [fileManager fileExistsAtPath:dbPath];
    if(!success) {
    NSString *defaultDBPath = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"Database.sqlite"];
    success = [fileManager copyItemAtPath:defaultDBPath toPath:dbPath error:&error];
    if (!success)
    NSAssert1(0, @"Failed to create writable database file with message '%@'.", [error localizedDescription]);
    - (NSString *) getDBPath {
    //Search for standard documents using NSSearchPathForDirectoriesInDomains
    //First Param = Searching the documents directory
    //Second Param = Searching the Users directory and not the System
    //Expand any tildes and identify home directories.
    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory , NSUserDomainMask, YES);
    NSString *documentsDir = [paths objectAtIndex:0];
    return [documentsDir stringByAppendingPathComponent:@"Database.sqlite"];
    - (void) addValue:(BpValue *)bpObj {
    //Add it to the database.
    [bpObj addValue];
    //Add it to the coffee array.
    [valuesArray addObject:bpObj];
    @end
    Please if someone knows whats wrong, please tell me. It crashes at sqlite_prepare3. Following is part of the crash report
    Exception Type: EXCBADACCESS (SIGBUS)
    Exception Codes: KERNPROTECTIONFAILURE at 0x0000000000000030
    Crashed Thread: 0
    Application Specific Information:
    iPhone Simulator 1.0 (70), iPhone OS 2.0 (5A345)
    Thread 0 Crashed:
    0 libsqlite3.0.dylib 0x93d211f0 sqlite3Prepare + 48
    1 HelloWorld 0x000031c8 -[BpValue addValue] + 89 (BpValue.m:38)
    2 HelloWorld 0x00002b70 -[HelloWorldAppDelegate addValue:] + 36 (HelloWorldAppDelegate.m:84)
    3 HelloWorld 0x00002e6b -[MyViewController changeGreeting:] + 509 (MyViewController.m:41)
    4 UIKit 0x30a5e25e -[UIApplication sendAction:to:from:forEvent:] + 116
    5 UIKit 0x30abb022 -[UIControl sendAction:to:forEvent:] + 67
    6 UIKit 0x30abb4ea -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 478
    7 UIKit 0x30aba830 -[UIControl touchesEnded:withEvent:] + 483
    8 UIKit 0x30a75c0b -[UIWindow sendEvent:] + 454
    9 UIKit 0x30a65e07 -[UIApplication sendEvent:] + 269
    10 UIKit 0x30a6522a _UIApplicationHandleEvent + 4407
    11 GraphicsServices 0x31699522 SendEvent + 35
    12 GraphicsServices 0x3169b88c PurpleEventTimerCallBack + 276
    13 com.apple.CoreFoundation 0x971be615 CFRunLoopRunSpecific + 3141
    14 com.apple.CoreFoundation 0x971becf8 CFRunLoopRunInMode + 88
    15 GraphicsServices 0x31699d38 GSEventRunModal + 217
    16 GraphicsServices 0x31699dfd GSEventRun + 115
    17 UIKit 0x30a5dadb -[UIApplication _run] + 440
    18 UIKit 0x30a68ce4 UIApplicationMain + 1258
    19 HelloWorld 0x00002650 main + 102 (main.m:14)
    20 HelloWorld 0x000025be start + 54
    Thread 1:
    0 libSystem.B.dylib 0x93b624a6 machmsgtrap + 10
    1 libSystem.B.dylib 0x93b69c9c mach_msg + 72
    2 com.apple.CoreFoundation 0x971be0ce CFRunLoopRunSpecific + 1790
    3 com.apple.CoreFoundation 0x971becf8 CFRunLoopRunInMode + 88
    4 WebCore 0x32a8a450 RunWebThread + 384
    5 libSystem.B.dylib 0x93b936f5 pthreadstart + 321
    6 libSystem.B.dylib 0x93b935b2 thread_start + 34
    Thread 2:
    0 libSystem.B.dylib 0x93b624a6 machmsgtrap + 10
    1 libSystem.B.dylib 0x93b69c9c mach_msg + 72
    2 GraphicsServices 0x3169ce0a EventReceiveThread + 467
    3 libSystem.B.dylib 0x93b936f5 pthreadstart + 321
    4 libSystem.B.dylib 0x93b935b2 thread_start + 34
    Thread 3:
    0 libSystem.B.dylib 0x93b624a6 machmsgtrap + 10
    1 libSystem.B.dylib 0x93b69c9c mach_msg + 72
    2 com.apple.CoreFoundation 0x971be0ce CFRunLoopRunSpecific + 1790
    3 com.apple.CoreFoundation 0x971becf8 CFRunLoopRunInMode + 88
    4 com.apple.CFNetwork 0x95a59a32 CFURLCacheWorkerThread(void*) + 396
    5 libSystem.B.dylib 0x93b936f5 pthreadstart + 321
    6 libSystem.B.dylib 0x93b935b2 thread_start + 34
    Thread 0 crashed with X86 Thread State (32-bit):
    eax: 0x000040b0 ebx: 0x0000317d ecx: 0xffffffff edx: 0x00003e18
    edi: 0x00000000 esi: 0x004123a0 ebp: 0xbfffe5c8 esp: 0xbfffe470
    ss: 0x0000001f efl: 0x00010282 eip: 0x93d211f0 cs: 0x00000017
    ds: 0x0000001f es: 0x0000001f fs: 0x00000000 gs: 0x00000037
    cr2: 0x00000030

    works now...hadn't initialized the database

  • Multiple programs crashing wSegmentation fault in __lll_unlock_elision

    Hi,
    Recently I've noticed different programs crashing with Segmentation fault in __lll_unlock_elision from /usr/lib/libpthread.so.0
    It has happened in chromium, vlc, gtk-query-immodules-2.0 and others.
    Has anyone else had this issue?
    I'm on xfce, compositor enabled, nvidia proprietary drivers.
    Relevant packages:
    nvidia 349.16-2
    xfwm4 4.12.2-1
    glibc 2.21-3
    Sample backtrace:
    (gdb) bt
    #0 0x00007ffff6e30150 in __lll_unlock_elision () from /usr/lib/libpthread.so.0
    #1 0x00007ffff28c312c in ?? () from /usr/lib/libEGL.so.1
    #2 0x00007ffff28558c2 in ?? () from /usr/lib/libEGL.so.1
    #3 0x00007fffffffea80 in ?? ()
    #4 0x00007ffff28d4831 in ?? () from /usr/lib/libEGL.so.1
    #5 0x00007fffffffea80 in ?? ()
    #6 0x00007ffff7dea815 in _dl_fini () from /lib64/ld-linux-x86-64.so.2
    Backtrace stopped: previous frame inner to this frame (corrupt stack?)
    dmesg
    [ 1037.049770] traps: exo-open[4639] general protection ip:7fcf8cde1150 sp:7ffdb47b3f68 error:0 in libpthread-2.21.so[7fcf8cdcf000+18000]
    [ 1037.338044] traps: chromium[4643] general protection ip:7f6e9248f150 sp:7ffc2b329c48 error:0 in libpthread-2.21.so[7f6e9247d000+18000]
    [ 1038.637627] traps: exo-helper-1[4641] general protection ip:7fc9bc586150 sp:7ffc590b11b8 error:0 in libpthread-2.21.so[7fc9bc574000+18000]
    [ 1563.263410] traps: exo-open[5860] general protection ip:7fbcafcb1150 sp:7fffaf2b1b88 error:0 in libpthread-2.21.so[7fbcafc9f000+18000]
    [ 1563.541248] traps: chromium[5865] general protection ip:7f6571529150 sp:7fff0e0d9898 error:0 in libpthread-2.21.so[7f6571517000+18000]
    [ 1565.023467] traps: exo-helper-1[5863] general protection ip:7f7008a5b150 sp:7ffe8751b268 error:0 in libpthread-2.21.so[7f7008a49000+18000]
    [ 1565.806110] traps: exo-open[5912] general protection ip:7f378156e150 sp:7ffff5e809a8 error:0 in libpthread-2.21.so[7f378155c000+18000]
    [ 1566.082173] traps: chromium[5917] general protection ip:7f5178539150 sp:7ffc84f4f198 error:0 in libpthread-2.21.so[7f5178527000+18000]
    [ 1572.868808] traps: exo-helper-1[5915] general protection ip:7f42957c9150 sp:7ffddf89f388 error:0 in libpthread-2.21.so[7f42957b7000+18000]
    [ 1669.886865] traps: chromium[5969] general protection ip:7f5a4a39e150 sp:7ffc84639608 error:0 in libpthread-2.21.so[7f5a4a38c000+18000]
    [ 2465.870363] traps: chromium[7316] general protection ip:7f5a4a39e150 sp:7ffc84639608 error:0 in libpthread-2.21.so[7f5a4a38c000+18000]
    [ 2858.156512] traps: chromium[8279] general protection ip:7f5a4a39e150 sp:7ffc84639608 error:0 in libpthread-2.21.so[7f5a4a38c000+18000]
    [ 3546.898166] traps: chromium[9480] general protection ip:7f5a4a39e150 sp:7ffc84639608 error:0 in libpthread-2.21.so[7f5a4a38c000+18000]
    [ 3554.046413] traps: chromium[9553] general protection ip:7f5a4a39e150 sp:7ffc84639608 error:0 in libpthread-2.21.so[7f5a4a38c000+18000]
    [ 3642.230049] traps: exo-open[10018] general protection ip:7f77ee5b9150 sp:7ffd33e39638 error:0 in libpthread-2.21.so[7f77ee5a7000+18000]
    [ 3642.523830] traps: chromium[10022] general protection ip:7f58b485a150 sp:7ffc760c0758 error:0 in libpthread-2.21.so[7f58b4848000+18000]
    [ 3643.896904] traps: exo-helper-1[10020] general protection ip:7fa3a1acd150 sp:7ffcc63571f8 error:0 in libpthread-2.21.so[7fa3a1abb000+18000]
    [ 3733.354116] traps: chromium[10119] general protection ip:7f8399457150 sp:7ffc4c08cd88 error:0 in libpthread-2.21.so[7f8399445000+18000]
    [ 3799.896620] traps: exo-open[10230] general protection ip:7f3d85ad0150 sp:7ffcb3a82548 error:0 in libpthread-2.21.so[7f3d85abe000+18000]
    [ 3800.185212] traps: chromium[10235] general protection ip:7f2c089d1150 sp:7ffd5a5464b8 error:0 in libpthread-2.21.so[7f2c089bf000+18000]
    [ 3935.735541] traps: exo-helper-1[10233] general protection ip:7fa760400150 sp:7ffe0b4254e8 error:0 in libpthread-2.21.so[7fa7603ee000+18000]
    [ 3957.291621] traps: chromium[10778] general protection ip:7f4b88304150 sp:7ffee14f9e18 error:0 in libpthread-2.21.so[7f4b882f2000+18000]
    [ 3977.318568] traps: gdk-pixbuf-quer[11058] general protection ip:7f00c88a7150 sp:7ffc3b04d858 error:0 in libpthread-2.21.so[7f00c8895000+18000]
    [ 3982.911193] traps: gtk-query-immod[11069] general protection ip:7fae4d428150 sp:7ffd2a514258 error:0 in libpthread-2.21.so[7fae4d416000+18000]
    [ 4018.309394] traps: gtk-query-immod[11146] general protection ip:7fce99a59150 sp:7ffce1f6d848 error:0 in libpthread-2.21.so[7fce99a47000+18000]
    [ 4042.815698] traps: gdk-pixbuf-quer[11159] general protection ip:7f847b535150 sp:7fff9b265548 error:0 in libpthread-2.21.so[7f847b523000+18000]
    [ 4133.933755] traps: gdk-pixbuf-quer[11293] general protection ip:7f9df0e1a150 sp:7fffa149ee88 error:0 in libpthread-2.21.so[7f9df0e08000+18000]
    [ 4790.014695] traps: gtk-query-immod[12378] general protection ip:7f3c51a72150 sp:7fff1222de48 error:0 in libpthread-2.21.so[7f3c51a60000+18000]

    https://www.archlinux.org/news/changes- … deupdates/

  • Several programs crash with Glib-GIO error

    in my notebook several programs crash with an error ouput:
    (here for firefox)
    (firefox:6303): GLib-GIO-CRITICAL **: g_simple_async_result_set_from_error: assertion `error != NULL' failed
    (firefox:6303): GLib-CRITICAL **: g_error_free: assertion `error != NULL' failed
    (firefox:6303): GLib-GIO-CRITICAL **: g_simple_async_result_set_from_error: assertion `error != NULL' failed
    (firefox:6303): GLib-GIO-WARNING **: (gfile.c:5244):IA__g_file_load_partial_contents_finish: runtime check failed: (g_simple_async_result_get_source_tag (simple) == g_file_load_contents_async)
    Speicherzugriffsfehler
    - firefox crashes every time i try to browse for a file (fileupload form).
    - nautilus --no-desktop crashes also before the gui is loaded with the same error output.
    - same to brasero
    - same to gnomebaker
    - evince crashes on open/file (again when browser should be opened)
    thunar works, seems there is a problem with nautilus or any gnome's lib
    on my another pc also running arch, there are no such problems.. would be great if anyone would help.
    every hint is welcome, since i'm pretty frustrated.. google and irc didn't help.
    thank you in advance

    Hi
    I experience a very similar problem.
    Whenever I insert a blank CDrom or a blank dvd some applications crash that somehow access the dvd drive. these are brasero or listen, that I'm aware of, for the moment.
    others like gnome-baker do fine. nautilus as well is doing fine.
    brasero:
    (brasero:25610): GLib-GIO-CRITICAL **: g_simple_async_result_set_from_error: assertion `error != NULL' failed
    (brasero:25610): GLib-CRITICAL **: g_error_free: assertion `error != NULL' failed
    (brasero:25610): GLib-GIO-CRITICAL **: g_simple_async_result_set_from_error: assertion `error != NULL' failed
    (brasero:25610): GLib-GIO-WARNING **: (gfile.c:5244):IA__g_file_load_partial_contents_finish: runtime check failed: (g_simple_async_result_get_source_tag (simple) == g_file_load_contents_async)
    Segmentation fault
    listen does:
    (listen.py:25694): GLib-GIO-CRITICAL **: g_simple_async_result_set_from_error: assertion `error != NULL' failed
    sys:1: Warning: g_error_free: assertion `error != NULL' failed
    (listen.py:25694): GLib-GIO-CRITICAL **: g_simple_async_result_set_from_error: assertion `error != NULL' failed
    (listen.py:25694): GLib-GIO-WARNING **: (gfile.c:5244):IA__g_file_load_partial_contents_finish: runtime check failed: (g_simple_async_result_get_source_tag (simple) == g_file_load_contents_async)
    /usr/bin/listen: line 1: 25694 Segmentation fault LD_LIBRARY_PATH=/usr/lib/firefox python -OO /usr/lib/listen/listen.py $@
    So it's bothering as all the time i want to burn something listen will crash.
    Otherwise I'm using gnome-baker for burning, so it's ok.
    but bothering.
    This might help you.
    If I can give u more information, just tell me (but I have to tell u: I'm not a big pro!)

Maybe you are looking for

  • Animating Pictures or Text Captions

    Hi Guys Is there any way of getting more animation of Text Captions or pictures, other than simply fading them in?  I know there is the option of setting up and using the 'Text Animations' but I find the text formatting options very limited.  Notwith

  • Setting defaults for reminders in iCal

    Is it possible to set a default for reminder in iCal? I would like to set it at e-mail the day before. However, iCal seems to have a reminder default as an alert (which is simply a pop-up), not  e-mail. For every event I creat in iCal, I am having to

  • BIP fails to render a pdf report with Read timed out

    Hi, If a run a report with large query/data, BIP after 2 minutes fails with this error: java.sql.SQLException: java.net.SocketTimeoutException: Read timed out. The BIP report run a OBIEE Query, and BI Server log return this: [2012-07-03T14:47:39.000+

  • Cannot print from photoshop CC 2014

    Cannot print from Photoshop CC 2014

  • OCI calls using select *

    Hi, I have been able to write OCI programs that select a know select-list following the examples in cdemo81.c and cdemo6.cc, but I've been unable to get an OCI program working that does a select * and then get the data out of the select. More to the