On Oct 10, 2006, at 11:01 PM, Karen wrote:

I am passing a bunch of parameters into a shared method from a regular method in the same class... some of them are structures, but the last one is an integer.

According to the debugger in the instance method I'm passing in a 0, but in the shared method the variable holds -1073746408!!!!

BTW the debugger will not step into that shared method, I have to set a breakpoint in it

The parameter List had some parameters then a structure then 3 more integers, but for those last integers I was passing instance properties by name (not me.name) to the shared method...

The wrong negative value was in the last parameter. I tried assigning that property to a local parameter first and then passed that, and the negative value moved to the second to last... Did the same for it and error moved down one more...

Did it again so all 3 parameters were passed through locals .. which would mean the problem should show in the the structure parameter... but this time i got a crash:


Exception:  EXC_BAD_ACCESS (0x0001)
Codes:      KERN_INVALID_ADDRESS (0x0001) at 0xffffffff

Thread 0 Crashed:
0   RBFramework                         0x006dad40 0x4c4c20 + 2187552
1   main                                0x00474fcc 0x405000 + 458700
2 main 0x004193ec TB_BevelButton.DrawIconInContent%t<Coordinate>% o<Picture>o<Graphics>t<RectDefinition>i4i4i4 + 2736 3 main 0x00417648 TB_BevelButton.DrawTB_Button%%o<TB_BevelButton>o<Graphics>i4i4 + 1452 4 main 0x0041502c TB_BevelButton.PaintButtons%%A1o<TB_BevelButton>o<Graphics>i4i4 + 648 5 main 0x00413ab8 BBHolderWindow.#Paint%% o<BBHolderWindow>o<Graphics> + 168
6   RBFramework                         0x005f2f50 0x4c4c20 + 1237808
7   RBFramework                         0x005037d8 0x4c4c20 + 256952
8   RBFramework                         0x005af620 0x4c4c20 + 961024
9   RBFramework                         0x005aa4b4 0x4c4c20 + 940180
10  RBFramework                         0x005006f0 0x4c4c20 + 244432
11 com.apple.HIToolbox 0x93207554 DispatchEventToHandlers (EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 692 12 com.apple.HIToolbox 0x93206cac SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 372 13 com.apple.HIToolbox 0x9320da60 SendEventToEventTarget + 40 14 com.apple.HIToolbox 0x932ac9dc SendEvent(unsigned long, WindowData*, OpaqueRgnHandle*) + 180 15 com.apple.HIToolbox 0x932ac88c PaintWindow (WindowData*, OpaqueRgnHandle*, PaintReason, bool) + 416 16 com.apple.HIToolbox 0x93221d14 UpdateWindowVisibility (VisChangeState*) + 428
17  com.apple.HIToolbox                 0x93221ad0 _ShowHideWindows + 160
18  com.apple.HIToolbox                 0x93221a20 ShowHide + 36
19  com.apple.HIToolbox                 0x9324a64c ShowWindow + 56
20  RBFramework                         0x00507128 0x4c4c20 + 271624
21  RBFramework                         0x005025f0 0x4c4c20 + 252368
22  RBFramework                         0x005705fc 0x4c4c20 + 702940
23  RBFramework                         0x00570974 0x4c4c20 + 703828
24  RBFramework                         0x0056d470 0x4c4c20 + 690256
25  main                                0x0042e76c 0x405000 + 169836
26  main                                0x00420a94 Main + 172
27  main                                0x004050a0 % main + 32
28 ...ple.CoreServices.CarbonCore 0x90be737c CCFM_LaunchApplication + 488
29  LaunchCFMApp                        0x0000249c main + 388 (crt.c:355)
30  LaunchCFMApp                        0x00001b78 _start + 344 (crt.c:272)
31  LaunchCFMApp                        0x00001a1c start + 60




_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to