release

Understanding Cocoa Memory

What is the advantage of doing this: NSArray *array = [[NSArray alloc] initWithObjects:@"Year", "@Capital", ..., nil]; self.hintArray = array; [array release]; Instead of assigning directly to my class variable like this: self.hintArray = [[NSArray alloc] initWithObjects:@"Year", "@Capital", ..., nil]; Why do we create a temporary ...

How to release an NSMutableDictionary Instance Variable properly, with nested dictionaries, in Objective-C?

I have an Objective-C class that looks something like: @interface myClass : NSObject { NSMutableDictionary *aDict; } Its setter method looks like: - (void) setADict: (NSMutableDictionary *) newDict { [aDict release]; [newDict retain]; aDict = newDict; } I've created an instance of the object, put data into aDict, an...

Console application questions (build release/ not loading solution file)

I've got a couple questions about .net console applications. I created the console app, and included a solution file during the create, but when I open the solution file, it only shows the project, not the solution. Why doesn't the solution load in the solution explorer? Also, I don't seem to be able to build the project in 'Release' m...

Different code / config in Release & Debug build (Obj-C)

Hi, I'm writing a Cocoa app in Objective C that's communicating with a webservice and I want it to connect to a sandbox in debug mode and to the real webservice in release mode. All I need is to change on line of code where an object that holds the configuration gets instantiated (with a different init-message and different parameters). ...

MVC deployment setup

Does the Visual Studio 2008 Web Deployment Projects handle deployment of ASP.NET MVC applications? If not, what's the best practice for deploying an ASP.NET MVC application? Also what's the best way to handle different versions of configuration files (such as web.config) that will contain different settings depending on what type of bui...

How to manage files common to release and build in VS C# Express?

I have a C# Console app in VS C# Express 2008. The program needs to read a few files at runtime, which I would like to place in the same directory as the .EXE for convenience. But of course there are two .EXEs, one debug and one release, and I don't want to copies of everything. What's the best way to manage this? ...

When was Tcl v8.5 first released for production?

I can't seem to locate this on the web anywhere. What was the date of the first stable release of Tcl v8.5? Thanks. ...

Strange malloc error with autoreleased UIImages of specified size

I am tracking down a strange bug. The bug manifests itself with the display of this message in the console log: BlurApp(5018,0xa00d6500) malloc: *** error for object 0x103b000: pointer being freed was not allocated This message pops in after execution has left my event loop. It seems to be happening when the autorelease pool is bein...

Release a retain UIImage property loaded via imageNamed?

In my class object i've defined a (nonatomic, retain) property for UIImage. I assigned this property with an image loaded via [UIImage imageNamed:@"file.png"]; If at some point I want to reassign this property to another image, should I have to release the prior reference? I am confused because by the retain property I know i should ...

Is there anything exciting in perl 5.11 (to become perl 5.12)?

Perl 5.11 is now released! Is there anything really exciting in this release, or is it mostly maintenance patches? (From what I've read so far, it appears to be a rollup of improvements we have already seen in prior releases.) the CHANGES file Jesse Vincent's announcement chromatic's blog post 5.11 is the development release of what...

NSMutabledata. Why is the retain count 1 higher that I would have expected?

I am trying to floss daily, get my exercise, and make sure I maintain a balance between my retains and releases. Here is what has me puzzled. I have a ivar: NSMutabledata *_alignmentData and a synthesized property associated with it: // .h file @property (nonatomic, retain) NSMutableData *alignmentData; // .m file @synthesize align...

ASP.Net ScriptManager globally setting ScriptMode in Machine.Config

All of our applications have Debug="False" in the web.config and Release DLL's. We have a number of Applications that use ScriptManagers now for .net Ajax implementations. The ScriptManager has a ScriptMode that is set for Release and Debug modes. The default for this is Auto and when it is set to Auto it's value is set based on the Dep...

Msvcr90d.dll not found when building in RELEASE

It's strange, if I build my program in debug mode, I have no errors, but if I build my program in released mode, I get an error saying that Msvcr90d.dll is not found. Msvcr90d.dll is a debug library, I'm not sure why it's coming up when I load it for release =/ ...

Dependencies between overnight builds and releases - testing issue

Hi Guys this is a release-build process question which I would need to solve for our SW Team. We are developing embedded system applications that are based on several common libraries. We also introduced overnight builds and automatic SW testings in oder to be able to track down errors as soon as possible. The applications and librarie...

Where can you release eensy weensy helpful little .NET classes?

I find myself writing a lot of reusable code because I couldn't find reusable code that other people wrote. Tiny stuff, like little winforms components, among other things. I am looking for a website where I could release this sort of stuff to the public with licensing on it. I don't need something like Google Code/Sourceforge/Codeplex,...

debug vs. release dll size

Why in cpp a dll in debug mode is X10 bigger than release while in .Net they are almost the same size? ...

How to comment lines automatically in release mode?

I need to have some lines of code "active" in debug mode only, and ignored in release mode. Is there a way to do something like this: #include <iostream> using namespace std; #ifdef _TEST_ #define _cerr cerr #else #define _cerr // cerr #endif int main() { _cerr << "TEST message" << endl; } So that when _TEST_ is not defined, some...

web.config - auto generate a release version

Simple task, but for some reason no simple solution just yet. We've all got web.config files - and I haven't worked anywhere yet that doesn't have the problem where someone yells across the room "Sh*t, I've just uploaded the wrong web.config file". Is there a simple way of being able to auto generate a web.config file that will contain...

Objective C iPhone when to set object references to nil

Hello, I have been developing with objective C and the Cocoa framework for quite some time now. However it is still not absolutely clear to me, when am I supposed to set object references to nil. I know it is recommended to do so right before releasing an object that has a delegate and you should also do so in the viewDidUnload method f...

maven snapshot repositories

My project depends on a 3rd party library that only has snapshots in its maven repository (no releases, which seems strange, but that's how it is). Every time I do a full build (and clean my local .m2 repository) maven will obviously go and grab the latest build. My repository proxies the one with the snapshots in it, is there anyway to...