xCode's "build and analyze" complains about "s" being possible garbage.
Which is the better solution? A, B, or C?
NSString *s; // A
NSString *s = nil; // B
NSString *s = @""; // C
if(x == 1) s = @"you picked 1";
if(x == 2) s = @"you picked 2";
if(x == 3) s = @"you picked 3";
...
hi
sorry for the wired title. couldnt find a better one
my app is live and it seems like the app crashes on some diffrent devices (3gs ios4 jailbreak - no jailbreak )
the app uses
- internet
- writes textfile to phone
- reads date from the phone
i dont know how i can solve this problem best.
maybe someone can help me or point me to a...
In Visual Studio 2008 while debugging an ASP.Net website I set a breakpoint in the codebehind page. I refresh the page or submit to call the method, the breakpoint is hit. Then I delete the breakpoint and continue execution. I make a change to the codebehind page and save it. I submit or refresh again and the deleted breakpoint is back! ...
I am looking for an automatic way to detect violations of the Swing's single threaded policy in my code. I'm looking for something along the lines of some AOP code you drop into the VM while the swing app is running and have it log any places where a swing component is modified outside of the EDT.
I'm not an AOP guy but I would imagine...
Possible Duplicate:
Common programming mistakes for JavaScript developers to avoid?
This is kind of a subjective question, but I am hoping the well-tenured programmers might know of solutions.
I have noticed now predominately in javascript, or any .js file that causes an error can halt further js from running. This could be a...
I've got JUnit tests that run just fine. Added Mockito to my build and I try to put a breakpoint in my JUnit test that uses Mockito to mock out some of the public methods. When I try to run the debugger on the class, I get the error "unable to install breakpoint in XXX due to missing line number attributes. Modify compiler options to g...
C++ Can I print the content of 1 or 2 dim array using Visual Studio's Command window? I guess it comes down to whether a "command window" support some kind of loop and print (?) syntax or not.
...
I am trying to upgrade an old solution to use VS2010 (VC100).
I have it setup so that stdafx.cpp will create a precompiled header stdafx.pch from stdafx.h. Then all the other .cpp files that include stdafx.h are instructed to use the precompiled header.
These posts helped me get this far:
Visual C++ Precompiled Headers errors
Precomp...
I'm debugging a Delphi code that use TJvProgramVersionCheck component from the excellent JVCL libs.
So I'd like to put a breakpoint somewhere in JvProgramVersionCheck unit but it doesn't work. The breakpoint icon show a cross - not active !
I tried to put a breakpoint when calling the TJvProgramVersionCheck method, do a debug "Step int...
Hi folks,
really. weird. shiz.
When I do a TFS Team Build (with Remote Deploy), some #if DEBUG preprocessor directives code I have on a web page does not get called. When i manually one-click deploy (remote deploy) the preprocessor directive code works. When I debug locally, the code also works.
So - problem looks to be related to my ...
Okay: I'm stuck!
I wrote a little command-line-tool which I successfully debugged using the "Wait for next launch/push notification"-option, the other day -- worked like a charm.
I updated Xcode.
Now, I wanted to investigate an edge-case of said tool and therefore wrote a very short test-tool. I...
set the exact same option,
added b...
When the Java application is hanging, you don't even know the use case that is leading to this and want to investigate, I understand that thread dumps can be useful.
But how can we easily derive useful data from the thread dumps to find where the problem is? The server application that I've been working with produces very long thread du...
Hi,
This is a really odd situation that I can't seem to work out where the problem lies.
I have a simple ASP textbox and button, on clicking the button I have a simple sqlconnection/command routine perform a simple update to a database based on the text value of the textbox.
Code:
Using myConnection As SqlConnection = New sqlConnect...
I'm trying to debug an issue using VC++ 6.0. I think the problem is something accessing a buffer after it was freed, and so I'm wondering if the VC++ debugger has a nifty feature to monitor a block of memory and break as soon as something tries to access it.
Any ideas appreciated, as are very simple instructions :-)
Thanks, Sam.
...
I've hit against what I think is a race condition. What options do I have to debug it?
More details:
I have a Silverlight application which uses Telerik grid. The columns can be customised by the user by using a column chooser attached to the grid. In a particular case where the list of possible columns are created via the code, when I ...
Hiya,
I am trying to find the best way to maintain a bug tracker and feature/upgrade requests for clients on web development projects. Ideally it would be an open source system we can have installed on a sub domain of our site.
This will then allow each client to login and add bugs/features/upgrade which we can hopefully keep track of...
In NetBeans when you insert Breakpoint and Debug project, it runs code until the Breakpoint and stop right in a line where we put Breakpoint. And afterwards we can execute our code step by step. If we Press F8 which is Step Over operation, NetBeans executes next line. Sometimes we want to go back to the previous executed line because we ...
I have a software application written for .Net Compact Framework 3.5 in VS2008. I can connect to my device via Activesync and deploy the application without problems. I can launch the app on the device after deployment without a problem. However, if I try to connect and debug the app, I get an unhelpful message that says "A serious erro...
I have debug versions of libstdc++ and libc, among others, and would like to link against them. They live in /usr/lib/debug as opposed to /usr/lib. Any ideas?
...
Hi,
We are debugging a 32bit application, which connects to oracle using 32bit libraries.
We are able to debug in IIS by setting our application pools to 32bit and using IIS debugging.
We would like to be able to use cassini.
At the moment we are getting TNS listener problems connecting to oracle on 64bit windows 7 using cassini as th...