title: iPad app, will run in debug but adhoc crashes
body: <p>Here is the crash log</p>
  
  <pre><code>Date/Time:       2011-02-10 21:12:00.478 +0900
  OS Version:      iPhone OS 4.2.1 (8C148)
  Report Version:  104
  
  Exception Type:  EXC_CRASH (SIGABRT)
  Exception Codes: 0x00000000, 0x00000000
  Crashed Thread:  0
  
  Thread 0 Crashed:
  0   libSystem.B.dylib               0x30d7c2d4 __kill + 8
  1   libSystem.B.dylib               0x30d7c2c4 kill + 4
  2   libSystem.B.dylib               0x30d7c2b6 raise + 10
  3   libSystem.B.dylib               0x30d90d72 abort + 50
  4   libstdc++.6.dylib               0x34981a20 __gnu_cxx::__verbose_terminate_handler() + 376
  5   libobjc.A.dylib                 0x34a83594 _objc_terminate + 104
  6   libstdc++.6.dylib               0x3497fdf2 __cxxabiv1::__terminate(void (*)()) + 46
  7   libstdc++.6.dylib               0x3497fe46 std::terminate() + 10
  8   libstdc++.6.dylib               0x3497ff16 __cxa_throw + 78
  9   libobjc.A.dylib                 0x34a824c4 objc_exception_throw + 64
  10  CoreFoundation                  0x3587c1a8 +[NSObject(NSObject) doesNotRecognizeSelector:] + 96
  11  CoreFoundation                  0x35823aa2 ___forwarding___ + 502
  12  CoreFoundation                  0x35823858 _CF_forwarding_prep_0 + 40
  13  PictureDictionary               0x00005fe4 sgLoadFileImage(char const*, long*) (PictureDictionary.mm:41)
  14  PictureDictionary               0x000061b0 CPictureDictionary::LoadPageData() (PictureDictionary.mm:814)
  15  PictureDictionary               0x00006d02 CPictureDictionary::Update() (PictureDictionary.mm:505)
  16  PictureDictionary               0x00003216 -[ES1Renderer render] (ES1Renderer.mm:63)
  </code></pre>
  
  <p>The line in my code where it starts to crash (with in stack trash #13 above) is</p>
  
  <blockquote>
    <p>NSString* pStr = [[NSString alloc]
    initWithUTF8String: pFileName];</p>
  </blockquote>
  
  <p>For some reason it crashes here.
  What is odd is that it runs fine in debug mode. But when I make a adhoc build and put it in the iPad through iTunes the above crash occurs.</p>
  
  <p>I have cleaned and rebuilt many times, made sure my profiles and identifiers are correct.
  I have no idea why this may be happening. Any insight or suggestions will help.</p>
  
  <p>Thanks.</p>