IPhone apples stable when using xib files

okay I have am app that I wrote using views with controls added on the initWithframe and it will run no problem for 100+ games. Created a new project and used the xib files to load setup the interface and now it will crash at about 20 games or sooner if I flip to the backside view. The memory usage seems to go upto just over 20 megs
Anyone else notice the difference between using xib files and not using them?

Okay - I think I found it! This little code causes memory leak.
[[NSURLCache sharedURLCache] removeAllCachedResponses];
Adding this little piece of code in (delegate.m) to avoid caching solves the leak problem.
[[NSURLCache sharedURLCache] setMemoryCapacity: 0];
I'm guessing the UIWebView is calling the removeAllCachedResponses, which is probably trying to do something that's causing the leak. Not digging any further as this solves my problem.
After 2 days, 1 line of code solved the problem. Not worth it
References:
http://lists.apple.com/archives/cocoa-dev/2005/Dec/msg00373.html
http://www.cocoabuilder.com/archive/message/cocoa/2002/3/15/62361

Similar Messages

  • TS1398 my iphone turned off when using wifi

    my iphone turned off when using wifi

    That sounds like you have internal damage in the SIM card slot. Try taking the phone to an Apple store for evaluation. Make a genius bar appointment first at http://apple.com/retail.

  • Error when using %@ include file="/test.jsp"%&

    UsingNitrox version 2.1 M3 (build 419 06022005):
    with jdk version: 1.5.0_03 and Tomcat 5.5.9
    This is the error :cry: when using <%@ include file="/test.jsp"%> in jsp:
    Severity     2
    The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files (test.jsp)
    It used to work in previuos version of Nitrox. I can't use struts tiles because the tiles content is dynamic (run time) and I need it to be static (at compile time).
    Have you encountered this problem? What is the fix? Nitrox bug?
    I need your help please,
    Alberto

    M7,
    I found the problem :wink: . In the java Build path having the default (ALL) is not picking up the content of the package. I had to use add multiple and include all the folders and subfolders (many L) in my packages. After that I added *.java and *.properties to select all the java files. Now it is working. I assume this is a bug in Nitrox. The default ALL should include the all the files in the path.
    Thanks,
    Alberto

  • 3?'s: Message today warning lack of memory when using Word (files in Documents) something about "idisc not working" 2. Message week ago "Files not being backed up to Time Capsule"; 3. When using Mac Mail I'm prompted for password but none work TKS - J

    3 ?'s:
    1  Message today warning lack of memory when using Word (files in Documents) something about "idisc not working"
    2. Message week ago "Files not being backed up to Time Capsule";                                                                                                                                             
    3. When using Mac Mail I'm prompted for password but none work
    Thanks - J

    Thanks Allan for your quick response to my amateur questions.
    Allan:     I'm running version Mac OS X Version 10.6.8     PS Processor is 2.4 GHz Intel core 15 
    Memory  4 gb  1067   MHz  DDr3  TN And @ 1983-2011 Apple Inc.
    I just "Updated Software" as prompted.
    Thanks for helping me!    - John Garrett
    PS.
    Hardware Overview:
      Model Name:          MacBook Pro
      Model Identifier:          MacBookPro6,2
      Processor Name:          Intel Core i5
      Processor Speed:          2.4 GHz
      Number Of Processors:          1
      Total Number Of Cores:          2
      L2 Cache (per core):          256 KB
      L3 Cache:          3 MB
      Memory:          4 GB
      Processor Interconnect Speed:          4.8 GT/s
      Boot ROM Version:          MBP61.0057.B0C
      SMC Version (system):          1.58f17
      Serial Number (system):          W8*****AGU
      Hardware UUID:          *****
      Sudden Motion Sensor:
      State:          Enabled
    <Edited By Host>

  • Transferring MUsic from Iphone to Library when using another computer

    Hi
    Is there a way to transfer the existing music on the iphone to itunes library when using a second computer?
    Cheers

    Not really.
    You can transfer itunes purchases:
    File>Transfer Purchases
    You can only sync with ONE computer at a time

  • Security issues when using the file adapter

    I want to use the file adapter, and in the documentation it states that you can use "directories" and "ftp".
    I want to transfer a file secure and both of these options are not really secure.
    Directory reading is not really secure when you read files from a windows share (SMB protocol).
    Is it possible to make a share more secure in a windows environment?
    In an ftp session everybody can steal the password. Is there a possibility to use "sftp"? Or will this be available?

    Currently we dont have, but we will have it soon.

  • Newest version Flash Player doesn't work online, but does work when using Dreamweaver files locally?

    Newest version Flash Player v 11.2.202.235 doesn't work when trying to view Flash video online, but does work when using the same Dreamweaver files locally?
    Win7/64, Firefox 12, 16 gb ram, core i3 @3.07GHz

    Define "doesn't work" - what do you see instead of the expected Flash content?
    Does that happen for any Flash object on the Internet, or only your Dreamweaver files?

  • Warning: NetGear ReadyNAS major bug when using AppleShare File Protocol

    I own a large number of NetGear (formerly Infrant) NAS devices. After NetGear bought the company, they came out with a new version of the embedded OS of those devices that looks like it is mostly just a cosmetic update that changes the name Infrant to NetGear.
    Unfortunately, it also introduces a very serious and reproducible bug. When you mount one of the NAS boxes running the new version of the OS under AppleShare, a file copied to the NAS box always gets today's date as its creation date. Strangely, if you copy a folder, the folder date is set correctly to the original creation date of the source folder, but the files contained inside of it lose their original creation dates.
    This bug occurs ONLY under the new version of the OS (4.00), not under the previous version (3.01). It occurs both under OS X 10.4 and 10.5.
    I have spent considerable time on hold and on the phone with NetGear technical support, and they claim this is a problem with the AFS file protocol. I don't know how they can make this claim when quite evidently everything works just fine under the previous version of their own software, but the gentleman on the phone basically told me something to the effect of "nobody uses AFS anyway, so why should we care".
    If you are considering a NAS box, you may want to hold off on purchasing a NetGear device for the time being. And using Samba file sharing is not really an option either, because that severely limits your file naming possibilities.
    If Apple is reading this, I hope someone can contact people "higher up" within NetGear to fix the problem.
    Michael

    appreciate if someone can assist with my errors as mentioned in my first post.'
    Thanks.

  • Multiple weight font selection when using STL file importing...

    I am aware how powerful the manual editor is for DSP4.2, but unfortunately a lot of the editing for my subtitles needs to be done outside of DSP. So I came across a little bit of a problem...
    When using a multiple weight font, like Kozuka Mincho Pro (and many others), there are several weights, and some don't even have a "Bold." As an example Light, Thin, Roman, Heavy, Black, etc.
    So, using the STL method of importing, how does one specify a font AND weight that does not correspond to a "Bold" version? i.e., setting "Helvetica Neue Bold" does not bring that weight up when specifying "Bold = False," and you can't possibly get "Helvetica Neue Black," under any circumstances. I've attempted to get around this, but all I get is a message saying that the font is not found, and that the default font will be used. Is it even possible to do this?
    Hand entering and altering kanji in DSP's manual editor will be a nightmare, if I can't figure a way around this (the STL file is re-loaded dozens of times for placement issues during the project, meaning manual edits would have to be re-done every time).
    Hopefully the next version will allow the user to edit the .rtf document with styles and fonts and import them as styled text the way it appears. Multiple fonts per line, so easy integration of various symbol fonts can be dealt with, etc.

    Nope, using "$FontName = Helvetica Neue Black" does not work. And you can't even do anything close to that with fonts whose weights are specified as W3, W5, W7, etc.
    I found another snippet buried in the new manual that states something to the effect that the name must be spelled exactly as it appears in the "Font Panel." If this is so, then you can only access two weights from any font, just like working with good old-fashioned windows...
    So, unless there is a DSP specific trick for the STL format, I'm going to guess it's not possible.
    And I cannot re-compile fonts with new names and data, since most of the fonts I will be working with, with this issue, are full Kanji Unicode fonts, and we would have to purchase a font-editor that, IIRC costs about a grand. I think the SysAdmin would frown over both aspects of that... ^_^

  • Purpose of creating a vault when using referenced files

    I have a laptop with a limited size SSD and recenlty installed Aperture to manage my collection of images and video clips (from camera so short). My assets are currently on DVD's and so have referenced these DVD's within Aperature. My long range plan is to copy these DVD's to external drives so that one drive can be at home and the other at work for backup purposes.
    My question pertains to the purpose of the vault when media is being referenced. Does the vault back up thumbnails, previews (1280/1280 at 6/med) and metadata...etc? Although most of my media (all but my current Project) is referenced my library file is currently 12GB. I have 13,426 photos/video being referenced on DVD with the current project being referenced with a folder on my laptop's drive. The idea was to monitor the size of the folder of the curren project so as to move to DVD when the size approches 4GB.
    I noticed with off-line referenced files that you can not do much with the previews. I figured that with the preview being 1280x1280 one could use the Email function, share...etc. Other than of course previewing and slideshows is there a reason that previews can not be smaller the 1280x ?
    Thanks for your time, someone....

    I would recommend at least making your previews the resolution of your main display so that you can see the images full-screen when your referenced files are not connected (btw, the resolution of your display will have an asterisk beside it in the preview size drop-down box).
    I have my preview size set to 1920 (or maybe even the size up from that -- I can't remember for sure) so that I can easily create slideshows for my HDTV if I want. But here's the catch, I also chose to disable previews for new projects in the Aperture preferences, and also turned off "maintain previews" for all projects in the library. I only create previews for my "better" images. The reason for this is that I'm still very much an amateur photographer who relies on taking multiple shots, stacking them, and then rating and selecting favourites for sharing and personal use. I didn't want my hard drive filling up with thousands of previews that will never be used for anything.
    Food for thought!
    Doug

  • Debugging mode stopped automatically when using xml file load

    Dear Sir,
    I am trying to develop a new add-on using xml files for creating new forms. In fact I was using the sample code delivered with the SDK ( WorkingWithXml - under VB.NET). The Problem is that when I am in the debuging mode and after the form load. the application goes out of the debugging mode and stop action.
    In fact what i was trying to do first is to create a new menu and then when i click on this menu a new form appear but once the menu is loaded the application stop the debugging mode automatically.
    Can somebody clarify to me what I am doing wrong and why the debugging mode is stopped automatically, noting that i am still in the add-on developpement phase.
    As i mentioned above i used the WorkingWithXml sample code (VB.NET) and i have adjusted in a way to load menu and then on the menu click i load my form.
    Please advice
    Best Regards

    Hi Mary,
    Put your code between in a Try Catch block. In the Catch part use the following:
    oApplication.MessageBox("CompError: " & oCompany.GetLastErrorCode.ToString & ", " & oCompany.GetLastErrorDescription & vbCrLf & "Message: " & ex.Message)
    This should give you a clearer idea of what the error is all about.
    The most likely reason is that there is something wrong with your XML file.
    Regards,
    Vítor Vieira

  • How to set "Files of type" when using a "File Browse" item.

    Apex 4.0.2
    Internet Explorer 7 +
    I have a "File Browse" item on a page and need to limit the types of files display to just "text (.txt)" files. How can this be done? Currently, the "Files of type" list shows "All File (*.*)", "Pictures (*.gif,*.png)", and HTML (*.htm,*.html)". In the best case, I would like to not have the "Files of type" list and have the user just limited to text files. However, adding Text files (*.txt)" to the "Files of type" list is ok.
    thanks,
    William

    Thought i'd do a bit of research after seeing Scotts wonderful ideas.
    So it turns out, IE made the file item read only from version 8, for security reasons. Read more: http://blogs.msdn.com/b/ie/archive/2008/07/02/ie8-security-part-v-comprehensive-protection.aspx
    File Upload Control
    Historically, the HTML File Upload Control (<input type=file>) has been the source of a significant number of information disclosure vulnerabilities. To resolve these issues, two changes were made to the behavior of the control.
    To block attacks that rely on “stealing” keystrokes to surreptitiously trick the user into typing a local file path into the control, the File Path edit box is now read-only. The user must explicitly select a file for upload using the File Browse dialog.
    Additionally, the “Include local directory path when uploading files” URLAction has been set to "Disable" for the Internet Zone. This change prevents leakage of potentially sensitive local file-system information to the Internet. For instance, rather than submitting the full path C:\users\ericlaw\documents\secret\image.png, Internet Explorer 8 will now submit only the filename image.png.To resetting the actual items, suggestions I found were to replace the actual item. So instead of using $s, I just replace the element, with the existing element, causing it to re-initialise.
    var htmldb_delete_message='"DELETE_CONFIRM_MSG"';
    function fileCheck(el){
        if(el.value){
            var validFile = false;
            var validExtensions = ["csv"];
            var filename = el.value;
            var fileExtIndex = filename.lastIndexOf(".");
            var fileExt = filename.substring(fileExtIndex+1, filename.length);
            for(i = 0; i < validExtensions.length; i++){
                if(validExtensions[i] == fileExt){
                    validFile = true;
                    break;
            if ( !validFile || fileExtIndex == -1) {
                alert("Invalid Extension. Permitted files must end with: " + validExtensions.toString());
                var htmlContents = el.outerHTML || new XMLSerializer().serializeToString(el);
                $('#P16_BINARY').replaceWith(htmlContents);
    }(obviously, replacing what you need to, to suit your page - i prefer scotts idea of passing in supported file types in the function, so would just pass in an array instead; but this is just for demonstration)
    with an onchange="checkFile(this)" on the element attributes.
    On a slightly un-related note, I found out IE doesn't support the wonderful indexOf function on arrays, that checks for the existence of the value in an array. Sucks.
    Edited by: trent
    Ah well, jQuery is there, maybe i should use that for searching arrays in the future.
    http://api.jquery.com/jQuery.inArray/
    Edited by: trent
    Forgot a demo link, for csv files: http://apex.oracle.com/pls/apex/f?p=45448:16
    Edited by: trent
    Modify function. Didn't work in Firefox

  • Settings when using mp4 files from Samsung GS3

    Hi,
    Does anyone know the settings I should select when creating a New PE10 Project and using mp4 files from a Samsung Galaxy S3 mobile phone?
    Thanks

    Ms Spielberg
    If you are using video files from the Samsung Galaxy S3, from what I have read, it offers 1080p up to 30, that being 1920 x 1080 @ 30 progressive frames per second. Is that correct? If so, please consider.
    The project preset should match the properties of your source media. In setting the Premiere Elements 10 Windows project preset (new project dialog), the choice of one of the FIip project presets range from frames sizes 640 x 480 to 1280 x 720. So, they would not be a match.
    Consequently, I would ask you to consider the project preset if your source media from this Samsung Galaxy S3 are as I have read 1080p30.
    NTSC (or PAL as the case may be)
    DSLR
    1080p
    DSLR 1080p30 or DSLR 1080p30 @ 29.97
    In Premiere Elements 10 after you set the project preset, then you import your media with Get Media.
    a. If you can connect your phone to the computer, you could explore Get Media/Flip/AVCHD/Cameras, Phones or Removable Drive as I think SG is suggesting.
    or
    b. If your phone files are saved to a hard drive location, then Get Media/Files and Folders.
    Are you also asking for export suggestions?
    Thanks.
    ATR

  • CS5 Photomerge hanging when using many files

    Hello,
    I have managed to work around the issue, but it's annoying nonetheless.
    The basic problem is that I've started creating very wide and tall Bokeh Panoramas or 'The Brenzier Method' http://www.ryanbrenizer.com/category/brenizer-method/
    From Lightroom I select the images I want and 'merge to panorama in PS'.  When I use say 2 - 30 images it's fine.  However when I use say 160 (ridiculous I know) it will hang when merging the files, processor usage stays on 13%, but the progress dialogue bar doesn't animate.  I tried it through photomerge and 'align all layers' from the edit menu.  I reduced this ridiculous amount to 60 and if I chose the 'vignette removal' option on the photomerge dialogue it will hang on this process after starting to create the panorama.  If I don't do the vignette, it will create the panorama.
    I know that it will depend upon the complexity of the merge, it's just annoying that it would fail whereas Microsoft ICE will complete the panorama without fail, it just may be of a lesser accuracy due to parallax.
    Other than using less images and attempting to overlap correctly, is there much else that can be done?
    I'm using an up to date version of CS5 64bit windows.  running on a 16gb Core i7 2600k.  The merged final image occupies 13gig of ram.  I have the scratch disc on a spare 2tb drive with about 1.5 tb free.
    Paul

    Mr_Fujisawa, I just wanted to come back on here and thank you for opening my mind to the "Brenizer Method", which I had not heard of before.  I've been experimenting with it today and enjoying the results!  Up to now I put effort into getting everything in focus all across my panos, which are generally landscapes.  It didn't dawn on me to use stitching on subjects up close.
    -Noel

  • WHY THE IPHONE GETTING HOT WHEN USING 3G PLUS WITH DATa?, WHY THE IPHONE GETTING HOT WHEN USING 3G PLUS WITH DATA?

    why my iphone 4s getting hot when using 3g plus with data?
    then my phone left side speaker didnt work when i list songs?

    It is normal for the phone to get hot when your using data such as YouTube videos, streaming music etc.. And as for the left speaker not working, the left speaker is a microphone, the right one is for sound. Don't worry, everything your iPhone is doing is normal.

Maybe you are looking for