I'm getting the slope of a line bounded by two points
float slopeXY(CGPoint p1, CGPoint p2)
{
return ((p2.y - p1.y) / (p2.x - p1.x));
}
If I give it a zero-sized line,
CGPoint p1 = CGPointMake(0, 10);
CGPoint p2 = CGPointMake(0, 10);
float sxy = slopeXY(p1, p2);
I don't get a divide by zero error.
...
Hi,
I have a bug somewhere that is causing my app to just vanish without an error message or something like that. The app just dissapears from the screen and it's no longer listed on the Task Manager.
The app is a C++Builder app (CBuilder2007), and I have tried everything I have think of to try to catch this error. It happens very very...
I have a method in a UIViewController of my iPhone application (inside a UINavigationController) that is called whenever a row is selected in the table in the ViewController's view. In this method, I access array of "Dream"'s stored in an instance field dreamsArray, which contains NSManagedObjects from my database. I can access objects f...
Hi guys - another weird problem with the iPhone SDK here.
I have a UITableView which contains a custom UITableViewCell. This table gets its data from a mutable array, which in turn pulls it from a Core Data storage.
The problem: If I enter editing mode and delete a cell, it works for the first time - the cell is successfully removed fr...
After a Xen guest domain hang, I took a dump using xm core-dump . Following the sparse documentation I found, I tried using the crash utility to analyze the dump.
Unfortunately, the kernel image (Debian lenny) is stripped, so I am forced to make use of the map file.
However,
crash
/boot/System.map-2.6.26-2-xen-amd64
vmlinux-2...
Hi !
I wrote an application in C++/CLR. It uses a native lib/dll. On rare occasions, it crashes insider this native dll. I then get a stacktrace, but only up to the managed part, the inside native part is left out. Is there a way to let it display the whole stacktrace?
I made the following test: I added a line of code inside the native...
All,
I currently have a phone from a customer who experienced various issue while running our windows mobile application. This issue is that the phone eventually resets completely while running the application. I have this in house to do some testing and I haven't experienced the reset, but I do notice that program memory is dropping si...
I have a few different views in my App, all of which are viewed by tapping different buttons. All the buttons work on the simulator, but when I run the app on the device only one button does not work. I went over and over my code and re coded that one button and re-connected it in IB to make sure that i did not mess something dumb up, ...
As part of segmenting my app into separate appdomains in order to catch and recover from an intermittent crash when calling a native dll, I need a way to reliably trigger this type of crash in order to determine if I am catching the appdomain going down correctly.
I'm looking for some simple native code (C++ ?) I can compile into a dll,...
I have submitted my app to the App Store, and Apple says:
At this time, XYZ APP cannot be posted to the App Store because it is crashing on iPhone 3G running iPhone OS 3.1 and iPod touch running iPhone OS 3.1.1 and Mac OS X 10.5.8 whenever a user attempts to add a reminder from their Contacts. There are two ways to reproduce this issue...
I've just finished off an app for the iPhone which, until today, ran fine on the iPhone simulator and actual devices.
I tried changing the xib which is loaded in the applicationDidFinishLaunching method in my application delegate class - all I did was change the string in initWithNibName.
When I launch the app on the simulator, the De...
I have implemented tool tips seemingly successfully in an app which is MFC based and uses CPropertyPage. However after adding a button to open a dialog box called IDC_USERMSG which contains a single CEdit control on one of the CPropety pages an Assert is thrown when the IDC_USERMSG dialog is dismissed.
_AFXWIN_INLINE CWnd* CWnd::GetP...
I've encountered this weird behavior with my iPhone app. It runs fine on the device when being debugged with Xcode, but when it's run on the device when the device is not connected to my computer it crashes almost immediately. Needless to say, I find this a bit disconcerting since I'm not sure how to debug it.
Anyone have ideas on what'...
Hi,
I am working on a Java product. An client claims that the application is getting crashed after an arbitrary time. SInce it is a crash we can't find any information on our logs.
Are there any tools, methods to find out the reasons for such Issues?
Can we do anything in code side to get more information on such program crashes?
Can ...
When dependencies on 3rd party assemblies are added to a typical .NET application it's very easy to forget to add them to the installer. This problem tends to reveal itself only after the application is installed, and in the form of a crash on startup with little helpful information readily available.
What are the best tools and techniq...
I am trying to build some automated crash dump analysis, but I cannot get cdb or windbg to load my crash dumps. They load just fine in VS 2008.
When I run dumpchk.exe on the file, I get:
Loading Dump File [c:\devx86\temp\ErrorDump.mdmp]
User Mini Dump File: Only registers, stack and portions of memory are available
ERROR: Memory rang...
My application runs fine on 3.0 devices and on 3.1 devices when launched via Xcode, but crashes on startup when run on a 3.1 device when installed via iTunes. It leaves no crash log behind, but puts this into the console:
Thu Oct 1 19:33:36 unknown mobile_installationd[329] <Error>: 00808e00 install_embedded_profile: Skipping the insta...
Hi folks
This is a part of Crash Log sent by the tester and I see the crash here but good thing is I have no idea what to fix in my code.
I have saved the app.dSYM files necessary for displaying symbolic information (as per Apple's guidance) but I still don't see any relevant information.
Any help?
Incident Identifier: 45E8DE25-A6A6-...
Hi
Was working my ... off on a handin project this evening, and suddenly the JVM started crashing on me. I've been able to create a simple program that can reproduce the crash, and have submitted it to Sun, but I wondered if anyone in here could take a look at the program, and tell me if I'm doing something stupid (ie there's an easy wa...
The app crashes on the tester's device (with OS 3.1) but does well on the simulator and my device with OS 3.0.
I have the crash log but I am finding it difficult to understand the reason of this crash as I cannot see the mentioned crashed thread (usually shown in a crash log).
What does this mean? "Unknown thread crashed with unknown f...