I will be releasing my Air/Flex application soon, but I am pretty sure there are a couple of bugs that may pop up on the various platforms that Air is available for. So I was wondering if there is a way to implement a mechanism, that would send an error report, logging where the error happened, to a remote server each time an app crashes...
The following code works fine:
for(int i=0; i<500; i++) {
for(int j=0; j<100; j++) {
m_title.SetWindowText(_T("lol"));
}
}
But when I set a background color for the dialog:
HBRUSH CTaggingDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor) {
return CreateSolidBrush(RGB(0,0,0));//BLACK
}
The loop above cause...
The program I've written is set to only accept positive integers as input. If the user inputs a letter instead, then it crashes. Negative integers don't cause any problems, though it's not 'valid' in regards to how my program functions.
What I want to do is:
Prevent the program from crashing from invalid input.
Display an error messag...
I recently released an application about a month ago, it was thoroughly tested by myself, my partner, and beta testers. Recently a user contacted me about the app not even being able to open (crashes after start up screen), they have the correct OS and they tried reinstalling.
I asked for the crash log and they sent me it...
Exception...
Beginner programmer. Working on a timer app.
The following applicationWillTerminate saves the state of started, stopped, startTime and stopTime and invalidates the timer. The intent is to be able to terminate application then restore state and restart timer on app restart.
//Save status to file on applicationWillTerminate.
- (void)ap...
When I run STLport on Darwin I get a strange crash. (Haven't seen it anywhere else than on Mac, but exactly same thing crash on both i686 and PowerPC.) This is what it looks like in gdb:
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: 13 at address: 0x0000000000000000
[Switching to process 21097]
0x000000010120f...
Can someone throw some light on why cvWarpPerspective might be crashing runtime ?
I am using opencv2.0
and code is posted below ( taken from learning opencv book )
Any help is greatly appreciated.
int main(int argc, char* argv[])
{
CvPoint2D32f srcQuad[4], dstQuad[4];
CvMat* warp_matrix = cvCreateMat(3,3,CV_32FC1);
IplImage *src, *dst...
Our client's web app restarts suddenly at random intervals. For each restart, we've found an entry like this in the Windows Event Log:
Event Type: Warning
Event Source: W3SVC-WP
Event Category: None
Event ID: 2262
Date: 2/21/2010
Time: 1:33:52 PM
User: N/A
Computer: LIQUID-NXCFZ9DJ
Description:
ISAPI 'c:\WINDOWS\Microsoft.NET\Framework...
Okay, so I have a UITableView that I want to apply themes to. I think I've figured out how to do it. What I do is when my view loads, I call a function called "[self getValues]". Here is how it looks:
- (void)getValues {
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
NSString *theme = [defaults valueForKey:@"...
If i implement it in application delegate class then it works fine.
But in Viewcontroller class crash every time.
i implemented try-catch then it will not crash. but not working.
Thanks
Manoj
...
I have a Windows C++ console program, and if I don't call ReleaseDriver() at the end of my program, some pieces of hardware enter a bad state and can't be used again without rebooting.
I'd like to make sure ReleaseDriver() gets runs even if the program exits abnormally, for example if I hit Ctrl+C or close the console window.
I can use ...
I like the LWN article "Crash-only software" and I would like to learn more about crash-safe and fault-tolerant programming.
It is surprisingly hard to assure that the persistent state is consistent in fault situations. Here I do not even talk about distributed operations: That is hard on a single node, too: Even the normal Berkeley DB ...
I'm trying for a week to make my XSP server work with simple static content: html-pages, js-files, gifs, jpegs etc... No ASP.NET. And this server always randomly crashes while navigating this pages with browser.
My Environment is: Mono 2.6.1, Windows Vista. I also tried to build XSP on linux (with Novell's make-files) but same result.
...
Hi all,
I am working on a school project with OpenCV. A major part of the program will be a comparison of histograms. There will be a database of histograms and new histograms will be created from a live video feed then compared to the histograms in the database. Right now I am just trying to get the histograms created correctly from...
http://www.ddrewdesign.com/portfolio/
I've run that on three different VMs and my brother's regular (and very adequate) beige box, and it crashes every one of them.
Anyone know what I might be doing wrong? I suspect it's a client-side issue, because the page loads fine in every other browser I've tested it in. I've already tried disabl...
In a panic since I'm trying to meet a deadline so appreciate any feedback on this.
For some reason, Flexbuilder 3 on my mac won't launch, crashes on startup.
I've never experienced this before.
Checked the .log file and what seems to be the problem is the following
/Users/foo/Library/Preferences/Macromedia/Flash Player/#Security/Flash...
I just installed XCode 3.2.1. When I open the Developer Documentation and click any link on the startup screen, XCode crashes. Has anyone run into this problem? Also hints as to how to debug would be excellent -- I've only been using XCode for a week.
I can still get into the documentation if I open some code and then right-click a s...
I've just logged this with Microsoft Connect, but I'm wondering whether anyone else has come across it and found a fix. Google's not showing much...
Simple repro:
Application has a WPF textbox with MaxLength set
Use the TabletPC input panel to write more text than is allowed
Press "insert" on the TabletPC panel and the application cr...
why does this code crash?
is using strcat illegal on character pointers?
#include <stdio.h>
#include <string.h>
int main()
{
char *s1 = "Hello, ";
char *s2 = "world!";
char *s3 = strcat(s1, s2);
printf("%s",s3);
return 0;
}
please give a proper way with referring to both array and pointers.
...
i have heard from a friend of mine that the best algorithm for swapping is
" (a^=b^=a^=b)"
where a and b are two integers to be swapped.
but when i applied this using c language it resulted in crashing.
can anyone of you fine people explain the possible reason for that?
please suggest the best algorithm for swapping.
thank you!!!!
guys ...