crash

Android database - Cursor cause crash.

Hi! Im trying to program with database in Android. So far i have made the database and written to it. The problem: When i try to read the data back from the database the program "stoped unexpectedly". I have tested to find what cause the crash and has found that it's this line: Cursor c = db.getAllTitles(); But i dont understand why ...

c# debugging windows crash

Hi, I have an app, and after about 20 minutes of idle time the program just crashes. ("Windows has encountered an error and needs to close...") I have no idea why this is happening. What is the best way to go about debugging something like this? ...

Problem using image files in Android

I am writing an Android app, which is basically a quiz. A it contains pictures of animals and the user must click on the correct picture. The pictures are all png files used as background pictures for button views. The problem I have/had is with the onCLick method. THis is the code. public void onClick(View view) { if(view == r1)...

C++: Libcurl curl_easy_init() gives an access violation error and crashes the program

Hello, I'm trying to use libcurl with a program I'm making, but I'm having some problems with it. So far I've only tried the examples from libcurl's website, but they crash as soon as the program gets to the curl initialization. My current code: #include <iostream> #include <curl/curl.h> int main(int argc, char *argv[]) { CURL *c...

How to prevent copying a wild pointer string

My program is crash intermittently when it tries to copy a character array which is not ended by a NULL terminator('\0'). class CMenuButton { TCHAR m_szNode[32]; CMenuButton() { memset(m_szNode, '\0', sizeof(m_szNode)); } }; int main() { .... CString szTemp = ((CMenuButton*)pButton)->m_szNode; // sometime it crashes he...

c++ - what to do if debug runs fine, but release crashes

Hey there! I have an application that runs just fine in the debug build, but when I start it in the release build, i get a unhandled Exception at 0x0043b134 in myapp.exe: 0xC0000005: Access violation while reading at position 0x004bd96c if i click on 'break' it tells me that there are no symboles loaded and the sourcecode can't be di...

App Crash: Low Memory

My app crashed because of Low Memory. I'm not sure if its entirely my fault because it lists about 7 or 8 other applications that crashed alongside? How should I handle this? Incident Identifier: 2CC74C33-179F-4CD2-8FAA-00CF0A344749 CrashReporter Key: 1657e021ecba3a19c5ed9f0cff62947a426a2bc2 Hardware Model: iPhone3,1 OS Version: ...

iPhone Apps exit straight away with status 45

For some reason today every iOS app that I try to debug on my device crashes straight away(the loading screen will show for a second) with exit code 45 when I build and run from xCode. This was working fine when I went to bed last night. Now it happens with every single apps even something like a hello world one. The run fine on the simu...

Why doesn't the 'toast' message work, in Android? Cannot fix bug, please help!

Hi, Imagine I have the following code that runs as a background processor for an android application: public class Background extends Service { public void popup (String message, int duration) { Toast.makeText(this, message, duration).show(); } class BackgroundChecker extends TimerTask { public vo...

Android program crashes when I call a class from another java file

Hey there, I am new at android development and java programming, but I have decided to program a drinking game app in android. This app basically simulates a deck a cards, a player clicks a button to draw a card then based on the card thats drawn the player plays a drinking game (ie takes 1 drink, takes 2 drinks...ect). I have the ma...

How to clear a notification if activity crashes?

In my app, I'm creating a notification with the FLAG_ONGOING_EVENT flag set as such.. Notification notification = new Notification(iconId, text, System.currentTimeMillis()); notification.flags |= Notification.FLAG_ONGOING_EVENT; I'm cancelling the notification in onDestroy, but if my app crashes before calling onDestroy, is there an...

ScrollBars of DataGridview will be Crash when the height of all rows exceed the vision height of DataGridview

As the title say, DataGridview.ScrollBars = Vertical; Assume the vision of DataGridview can contain 4 rows, if the row comes to 6, it has a Vertical ScrollBar. But if click the ScrollBar, the program will crash. If we set the DataGridview.ScrollBars = None, no problem will happen. public partial class visitorLeave : Form { publi...

Why is this not allowing any more method calls Ruby

When game.load is called and then game.addHit is called the ruby page stops loading at all yet if I don't call add Hit it doesn't and if I rename game.load to game.loadGame that doesn't load either. #!/usr/bin/ruby require 'rubygems' require 'mysql' class Game attr_accessor :id, :name, :urlName, :description, :hits, :categorys, :wid...

DevEnv Vs2008 crashing on exit when output window is undocked?

VS2008 SP1 I have a bunch of windows (output, call browser, error list, Find Results 1) docked in the lower pane of VS. If I simply undock those windows, then go to File->Exit, VS crashes with "microsoft visual studio has encountered a problem and needs to close" I attach a debugger, it takes me to line 75 of atlcomcli.h "if (*pp)" ...