Re: nsdocument application hang ...
Re: nsdocument application hang ...
- Subject: Re: nsdocument application hang ...
- From: Brasseur Valéry <email@hidden>
- Date: Wed, 10 Jun 2009 10:42:30 +0200
- Acceptlanguage: fr-FR, en-US
- Thread-topic: Re: nsdocument application hang ...
Hi,
thanks for your help.
How did you track the offending function ?
as of now, I roll back on some old code version (2 weeks ago) and did not get the probleme, so It seems that you got the good track... I am in the process of re-adding code line by line...
is there a better way ?
thanks
On 09/06/2009, at 5:05 PM, Brasseur Val�ry wrote:
> I am developing an NSDocument base app. When I run it without
> modifying my doc, all is working. If I made a modifcation, the
> application hang while display the "unsaved sheet" ...
>
> I don't know how to debug that ...
>
> any ideas would help.
I had this exact problem some time ago.
It turned out to be subtle corruption of my application's heap in a
completely unrelated part of the program. As such, it was extremely
difficult to track down, but the symptoms were exactly as you describe.
The cause, as I recall, was that I had two methods defined thus:
- (float) someMethod;
- (int) someMethod;
Despite the different returns types, these have the same signature.
However, the compiler will use the signature of whichever one it
happens to encounter first during compilation, and emit code
accordingly. In my case, it went for the int version as it was defined
by a system framework. The resulting code will tend to corrupt things
pretty badly, yet do so without causing an immediate fault.
This is only one way that heap/stack corruption can occur of course,
but when it does occur, it seems to commonly cause a problem for the
"save changes" sheet. So you might want to look for similar corruption
occurring.
--Graham
"La photo ça se fait avec le Nikon dans les mains et pas une souris."
Ce message et les pièces jointes sont confidentiels et réservés à l'usage exclusif de ses destinataires. Il peut également être protégé par le secret professionnel. Si vous recevez ce message par erreur, merci d'en avertir immédiatement l'expéditeur et de le détruire. L'intégrité du message ne pouvant être assurée sur Internet, la responsabilité du groupe Atos Origin ne pourra être recherchée quant au contenu de ce message. Bien que les meilleurs efforts soient faits pour maintenir cette transmission exempte de tout virus, l'expéditeur ne donne aucune garantie à cet égard et sa responsabilité ne saurait être recherchée pour tout dommage résultant d'un virus transmis.
This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden