Re: pointer address changes for no reason
Re: pointer address changes for no reason
- Subject: Re: pointer address changes for no reason
- From: Michael Babin <email@hidden>
- Date: Thu, 12 Apr 2007 15:45:09 -0500
On Apr 11, 2007, at 2:47 AM, Ewan Delanoy wrote:
Notice also below how
"numPagesField" is the only
address that has changed.
Ewan
// Before
(gdb) p self
$3 = (class PrintedPagesController *) 0x4b8d000
(gdb) p *self
$2 = {
isa = 0x16c60,
_nextResponder = 0x0,
_window = 0x4baf790,
_windowNibName = 0x163e0,
_document = 0x0,
_topLevelObjects = 0x3eac430,
_owner = 0x4b8d000,
_wcFlags = {
shouldCloseDocument = 0,
shouldCascade = 1,
nibIsLoaded = 1,
nibNameIsPath = 0,
RESERVED = 0
},
_autounbinder = 0x0,
_reserved = 0x0,
tableView = 0x4afec60,
numPagesField = 0x1739480,
printedPages = {21, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13,
14, 15,
16, 17, 18, 19, 20, 21, 0 <repeats 4979 times>},
oldPrintedPages = {21, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13,
14,
15, 16, 17, 18, 19, 20, 21, 0 <repeats 4979 times>}
}
(gdb) continue
// After
(gdb) p self
$3 = (class PrintedPagesController *) 0x4b8d000
(gdb) p *self
$4 = {
isa = 0x16c60,
_nextResponder = 0x0,
_window = 0x4baf790,
_windowNibName = 0x163e0,
_document = 0x0,
_topLevelObjects = 0x3eac430,
_owner = 0x4b8d000,
_wcFlags = {
shouldCloseDocument = 0,
shouldCascade = 1,
nibIsLoaded = 1,
nibNameIsPath = 0,
RESERVED = 0
},
_autounbinder = 0x0,
_reserved = 0x0,
tableView = 0x4afec60,
numPagesField = 0x15,
printedPages = {12, 4, 1, 8, 5, 12, 9, 16, 13, 20, 17, 11, 12,
13, 14,
15, 16, 17, 18, 19, 20, 21, 0 <repeats 4979 times>},
oldPrintedPages = {21, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13,
14,
15, 16, 17, 18, 19, 20, 21, 0 <repeats 4979 times>}
}
Given that numPagesField changed value is 0x15, which translates to
decimal 21; given that printedPages first element was 21; and given
that the contents of printedPages has changed in the "After"
snapshot, I would suspect that you may have some code that
manipulates/changes printedPages and it is overwriting the
numPagesField. I'd closely scrutinize any code that updates
printedPages, using the debugger to step through any such code and
checking the numPagesField value at each step.
Just a guess based on the data provided. Hope it helps.
--
Michael Babin email@hidden
Order N Development, LLC http://www.orderndev.com/
Goldfish Aquarium for Mac: http://www.lifeglobe.com/product/index.php?
pltid=2&ref=OrderNDev
_______________________________________________
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