Re: Very strange Cocoa application issue.
Re: Very strange Cocoa application issue.
- Subject: Re: Very strange Cocoa application issue.
- From: Cláudio Rodrigues <email@hidden>
- Date: Mon, 12 Feb 2007 00:04:36 -0500
- Thread-topic: Very strange Cocoa application issue.
Greg/all,
Thanks for the pointers. I was able to track down the issue based on your
comments and now all works great! I still do not understand why it would
behave properly when in debug and not when in release. Let me explain what
was happening and how I fixed.
I was doing a XOR like this:
ChrCharacter = ChrCharacter ^ key1 ^ key2 ^ key3;
Where ChrCharacter was the chr of that character (ascii code).
I was assigning key1 = (int) "A" for example. This worked in debug but not
in release. As soon as I replaced with key1 = 65; then it worked.
So if I assign the number directly to the variable instead of (int) letter
then it works. So I changed and now everything is ok.
And yes, the release build works now on PPC for any user. The issue was
indeed the debug build not working for any other account other than the one
that built it.
Many thanks again guys and my apologies for the stupid, newbie question.
CR
> From: Gregory Weston <email@hidden>
> Date: Sun, 11 Feb 2007 20:26:10 -0500
> To: <email@hidden>
> Subject: Re: Very strange Cocoa application issue.
>
> CR wrote:
>
>> 1. When I build the app, I can see the active build configuration
>> is set to
>> 'Debug' and when the app is built that way, it works as expected. If I
>> change that to 'Release' and build and run, the application does
>> NOT work
>> properly (it is simply a text box that gets the text and does a XOR
>> with
>> another char). Any ideas why?
>
> As others have said, not without more information from you.
>
>> 2. That is the hardest one. The app works fine on my MacBook (I am
>> logged in
>> using a LOCAL account). But on another Mac I have that is connected
>> to a
>> Windows network, people logon using the windows domain account (so
>> there are
>> no local accounts on the Mac itself). These users are NOT able to
>> launch the
>> application. It launches, shows up in the dock and then it dies
>> (closes
>> silently). If I logon using a LOCAL account on that Mac then the app
>> works!!! What could be the issue here??? I have no clue whatsoever
>> and as I
>> am no OS X guru I do not even know how to start troubleshooting
>> such issue.
>
>
> This is almost certainly because what they're trying to run is your
> debug build, which is almost certainly built with ZeroLink, which
> will never run from any machine other than the one on which it was
> built because certain portions of the runtime haven't actually been
> linked into the built app in that mode.
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> 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
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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