• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: RunApplicationEventLoop freezes when using my framework
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RunApplicationEventLoop freezes when using my framework


  • Subject: Re: RunApplicationEventLoop freezes when using my framework
  • From: Andy Wiese <email@hidden>
  • Date: Thu, 2 Dec 2004 01:03:26 -0600


On Dec 1, 2004, at 10:57 AM, Andy Wiese wrote:

I apologize if this is a repeat. I sent this last night but it never appeared in my inbox.
----------------------------------
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?


I have taken this a step further. I created a new Carbon application project. I added my framework to the target, then added my framework unit tests to the example code in main.c (and added my framework header to the .pch file). It builds and runs just fine, and doesn't freeze in RunApplicationEventLoop.


In the framework project, I threw out the old test app target and created a new Carbon Application target. To the best of my ability I duplicated the source code, frameworks, and build settings (build style and target) of the successful external project. The new target builds, runs the unit tests successfully, and then hangs in RunApplicationEventLoop, with the same stack trace above.

I don't know what to do next. I guess I could start a new project and see if I can get the simplest possible framework/test app combination to work, then build up from there. I could just continue with two projects, one for the framework and one for the test app, but that seems silly, considering that this is supposed to work.

_______________________________________________
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


  • Follow-Ups:
    • Re: RunApplicationEventLoop freezes when using my framework - FIXED?
      • From: Andy Wiese <email@hidden>
References: 
 >RunApplicationEventLoop freezes when using my framework (From: Andy Wiese <email@hidden>)

  • Prev by Date: external target, paths, and error reporting
  • Next by Date: Code Completion of a third-part library
  • Previous by thread: RunApplicationEventLoop freezes when using my framework
  • Next by thread: Re: RunApplicationEventLoop freezes when using my framework - FIXED?
  • Index(es):
    • Date
    • Thread