Re: oops, MoreNetworkSetup / helpers
Re: oops, MoreNetworkSetup / helpers
- Subject: Re: oops, MoreNetworkSetup / helpers
- From: Eric Gundrum <email@hidden>
- Date: Tue, 19 Feb 2002 09:36:42 -0800
Morgan,
Unfortunately I cannot help you with MoreNetworkSetup, but hopefully
someone else will tackle that part.
If you want to verify that the network configurations are not part of your
problems, you can do this by moving the Preferences folder out of your
System Folder and restart your computer. This will cause all Apple software
to recreate preferences from scratch. (You actually could remove the prefs
files for each network control panel, but figuring out which they are might
take some work.)
Removing the Prefs folder could cause a problem for badly behaved
third-party software. If this stops your Mac from restarting, you can
restart again and press the Shift key to deactivate all unnecessary boot
software (Extensions). Then you can put the old Preferences folder back to
restore your system to a bootable state. To restart when things are really
hosed, try pressing the Command, Control and Delete keys at the same time.
You also could use the Extension Manager control panel to deactivate all
non-Apple extensions.
Command-Power activates the debugger trap. This will display MacsBug with
the phrase "NMI" to indicate that you activated MacsBug manually. You can
even try this now. Press Command-G to exit the debugger and return to
normal operation. If you are debugging under CodeWarrior, CW will try to
catch the debugger trap and drop you into the CW debugger, but it does not
always succeed.
CodeWarrior is not able to debug interrupt code on the same machine running
the debugger. However, if you run your code on one Mac and the debugger on
another, you might be able to debug interrupt code with CW. (Maybe others
have some experience trying this. I don't know two-machine debugging well
enough to know if we can attach to non-application code.)
I hope my comments help at least a little bit.
Regards...eric
--- At 3:58 PM -0800 2/18/02, Morgan Redman 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 =)
>
>
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.
>
>
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*
>
>
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.
>
>
b) I get dropped into macsbug and it says NMI. what does that mean?
>
>
>
*help* !!!
>
if I have infact somehow corrupted my network settings, how do I fix them?
>
reinstall ?
>
>
-morgan
>
>
This has made me soo frusterated!! What I just discovered
>
_______________________________________________
>
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.
_______________________________________________
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.