On Nov 3, 2009, at 10:33 PM, Paul Hoadley wrote:

Thanks for you help so far, Mike and Chuck. I've kind of hit a wall here. AFAICS, Mike's recent commit didn't fix this issue for me.

I've narrowed it down to touching EOF in LSApplication.didFinishLaunching(): if I remove the offending code in there, I can't reproduce the problem. Firstly I want to know if I'm doing something wrong—should I not be touching EOF in didFinishLaunching()? (And if so, where else can I do some post- launch loading of EOs?)

But secondly I'm interested in any workarounds.

I don't know this part of Wonder well enough to offer much insight. It feels like some part of the initialization is happening in a parallel thread that has not finished by the time that didFinishLaunching() runs. But... I don't recall Wonder creating any such thread starting up the app.

Does adding this make any difference?

        public void finishInitialization() {
                NSBundle.frameworkBundles();
        }


Chuck


On 04/11/2009, at 11:49 AM, Mike Schrag wrote:

So I never see this because I use migrations on every app, so the models are touched early all the time ... But if i turn off migrations, it does look like it's not triggered until the first EOF request.

I don't use migrations, but is there any way I can force the model loading to occur earlier? Is there any way to block the app from taking requests until the models have loaded? I guess I just need anything to make this deterministic—at the moment, success seems to depend on how fast the models are loaded after touching EOF in didFinishLaunching(). (Interestingly, I haven't reproduced this problem on my Mac Pro—presumably it's fast enough to get everything done in time every time.)


--
Paul.

w  http://logicsquad.net/
h  http://paul.hoadley.name/



--
Chuck Hill             Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects







_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to