Re: RunApplicationEventLoop freezes... SOLVED
Re: RunApplicationEventLoop freezes... SOLVED
- Subject: Re: RunApplicationEventLoop freezes... SOLVED
- From: Andy Wiese <email@hidden>
- Date: Thu, 23 Dec 2004 01:55:13 -0600
On Dec 1, 2004, at 3:31 AM, Andy Wiese wrote:
Hi All,
Still having trouble getting an embedded framework to work.
1. I have a framework which is built to be an embedded framework. I
believe I set that up correctly.
2. I have a test application that embeds and links that framework. It
builds and runs, opens a window and executes a bunch of unit tests
from the framework, but it freezes in RunApplicationEventLoop.
3. I have another test application that is nearly identical, but
builds the framework code directly into the application. At first I
had the same problem, but then I looked at the Xcode application
stationary and saw that the sample app links libstdc++.a. I included
that in the Frameworks and Libraries phase, and now the monolithic
sample app runs fine (in RunApplicationEventLoop()).
I'm thinking that maybe I'm missing some library in either the
framework or app, since that fixed app 3. My framework links
Carbon.framework and libstdc++.a, test app 2 links Carbon.framework,
libstdc++.a, and m_core. Is there some other necessary library that I
am missing?
There are no error messages in the console. If I pause the app in the
debugger after it freezes, the stack trace always says:
#0 0x900074c8 in mach_msg_trap ()
#1 0x90007018 in mach_msg ()
#2 0x90191708 in __CFRunLoopRun ()
#3 0x90195e94 in CFRunLoopRunSpecific ()
#4 0x927d5f88 in GetWindowList ()
#5 0x927dc6f0 in GetMainEventQueue ()
#6 0x927fe1c8 in GetApplicationTextEncoding ()
#7 0x927fb698 in RunApplicationEventLoop ()
#8 0x0000a264 in main (argc=2141449080, argv=0x38810040) at
/Users/andy/Projects/m_sandbox/mx/m_core/source/main/M_main_dev.cpp:92
It seems stuck in GetApplicationTextEncoding, but I'm not sure what to
think of that.
Any suggestions what I should try next?
For the benefit of the archives:
RunApplicationEventLoop _appears_ to freeze (doesn't handle events)
when the CFBundleExecutable value in Info.plist file doesn't match the
application name (set by PRODUCT_NAME in the build prefs).
Now that I know where to look, this is incredibly simple and I could
say "Doh! I should looked there first!". But it was an easy mistake to
make...and there are an AWFUL lot of things that I tried before I found
this. Sensible things I thought at the time.
When this happened to me the second time (after I had completely
rebuilt a project to fix it the first time), I came SOOO close to
abandoning Xcode.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden