Re: oops, MoreNetworkSetup / helpers
Re: oops, MoreNetworkSetup / helpers
- Subject: Re: oops, MoreNetworkSetup / helpers
- From: Morgan Redman <email@hidden>
- Date: Tue, 19 Feb 2002 17:30:33 -0800
I replaced the pref files you mentioned, using the uncorrupted ones from my
second computer. I was playing with the morenetworksetup commandline tool
that came with it that you told me to look at. It appeared to work nicely.
However, I turned away from my screen for a minute to jot some notes down,
turned back, just in time to see the screen switch to macsbug. MSN had
caused a Bus Error, I tried to exit to shell, and it sent me back to macsbug
a second later, this time, highlighted in red, saying that macsbug had
caused the exception.
Sooo... I restarted, and then, alas, right when it started to load the
extensions in, it hit macsbugs again, repeating a bus error!! This
situation was unrecoverable, and continued to repeat in the same manner upon
restarting.
After starting up with extensions off and removing all the pref files again
( I didn9t have backups set aside to use, I will next time =), and
restarting, Airport caused an exception after starting up ( not terminal ).
I cant think that this is a good thing! lol !
-Morgan
on 2/18/02 11:09 PM, Jens Bauer at email@hidden wrote:
>
Hi Morgan,
>
>
I assume you do not have much money "available". If you do, you may want
>
to buy a technical incident at connect.apple.com. -So if you're working
>
for a bigger company, ask them to buy you at least one, they can save you
>
many hours of work.
>
>
I've never been configuring the serial port directly myself, but I've
>
been setting up these for internet-use:
>
* TCP/IP
>
* RemoteAccess
>
* Internet Config
>
* Modem
>
>
They all work very nice with MoreNetworkSetup.
>
>
First you should make yourself comfortable...
>
If you messed up the MoreNetworkSetup code itself, try getting a fresh copy.
>
Reinstall your Mac OS, Preferrably have a second Mac running Mac OS where
>
you can test your application.
>
Even better: Use CVS for storing the sources on a third machine, so you
>
can go back in history.
>
Back up these preferences from the preferences folder:
>
Internet Config
>
Modem
>
RemoteAccess
>
TCP/IP
>
If you have only 2 computers, you can use file sharing. File sharing
>
slows down the computer to 50%, however, you may want to turn on file
>
sharing on your compile-computer, then copy the file to the test-computer
>
and run it there. If it messes up your settings, move the old settings to
>
the trashcan before you copy your backups into the preferences folder.
>
>
Here's some other advice that may get you going in no time:
>
>
1: Set up the control panels so that you can communicate with the device.
>
If this is possible, you can do the exact same thing with MoreNetworkSetup.
>
2: Completing step 1, restore your configuration to the defaults. Start
>
the MoreNetworkSetup sample, there is a test-program (console based)
>
where you can make different changes. If you can configure the control
>
panels using these "command-line" options, you're in luck, otherwise
>
report to me what you need to do, but can't do, and I will give you a
>
piece of code that would do just that.
>
3: Look in the console-sample. Copy the API calls that are called when
>
you press different keys on your keyboard in the sample. Do the exact
>
same thing as what you did manually in step 2.
>
>
>
On Mon, 18 Feb, 2002, Morgan Redman <email@hidden> wrote:
>
>
> Hi, Im working on a cellphone dialer. I have to, among other things, open a
>
> serial endpoint out the infrared port to configure the phone, configure the
>
> modem / TCP/IP / Remote access control panels, and open a ppp endpoint.
>
>
>
> I tried using the MoreNetworkSetup / helpers code to configure my control
>
> panels. However, I was getting an error from the line
>
> MoreAssertQ(clientEntity->fLoc == ref->originalArea);
>
> in the FixClientEntityForWriting() fucntion.
>
>
>
> I didn't know why, and being as frusterated as I was, I carelessly commented
>
> it out =)
>
>
Don't. -It's in there for a reason. This code was written by one of the
>
best coders at Apple. :)
>
>
> Anyways.. to make a long story short, I ran my program, and ( I assume ) in
>
> somewhere in the section that modifies the control panels, it crashed. =)
>
>
>
> oops!
>
>
>
>
>
> Since then I have removed that code from my project, but my program now
>
> crashes from places that it never normally crashed! ( somewhere in the
>
> section that configures the phone thru the infrared port ). I don9t know if
>
> these crashes are because of my carelessness of not, but I cant think of any
>
> other reason for those sections that used to work to now be crashing.
>
>
Try restoring the MoreNetworkSetup code to its original state.
>
>
> Another thing... from within my MP Task, I call MPRemoteCall to call my rpc
>
> that opens the PPP endpoint. My debugger will never stop inside the rpc!
>
> *arrrrgg*
>
>
Uhm.. Are you using a dualProc computer ?
>
>
> The last thing... I recently discovered, then when my program now crashes (
>
> system becomes totally unresponsive *including* the mouse no longer moving
>
> ), if I hit command-power, one of two things has happed.
>
>
>
> a) I get dropped back into codewarrior, and a dialog box pops up saying
>
> "Trap instruction exception". According to the list of procedure calls,
>
> this happens after WaitNextEvent has been called from the main task, after
>
> switching back and forth from 68k code and PPC code several times.
>
>
If you want to continue from here, open up the "General Registers"
>
window, doubleclick the LR register's value, copy it using Cmd-C,
>
doubleclick the PC register's value, paste the value of LR into this
>
register. Close the register window. continue running the program...
>
>
> b) I get dropped into macsbug and it says NMI. what does that mean?
>
>
NMI means Non Maskable Interrupt. A "Break" (Cmd-Power) is one of those.
>
>
> *help* !!!
>
> if I have infact somehow corrupted my network settings, how do I fix them?
>
> reinstall ?
>
>
Yep. But you can prevent reinstalling next time by making backup copies
>
of the preferences mentioned above.
>
>
Hope that helps. :)
>
>
>
Love,
>
Jens
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.