[BLACKBOX] Debugging dll accessing programs

From: [at]} <Frank>
Date: Mon, 14 Mar 2011 09:11:47 -0300

----boundary-LibPST-iamunique-560775615_-_-
Content-type: text/plain

Hi all,

I wrote a simple test program which uses gtk and calls an expose event
handler. I first wrote a C version, which works fine, and translated it
then line by line to Component Pascal. My interface modules were
strongly inspired from a link (which I don't remember (is there an
archive of this list?)) from romiras.

Execution results in the trap shown below. The call to Gdk.draw_arc is
marked.

My problems are:
1. The components of noaligned or untagged records and arrays cannot be
displayed in trap windows
2. I have no idea what to do with those <system> lines.

So how do I debug this?

---------------------------------------------------------------------
illegal memory read (ad = DADADCDCH)

  GtkDraw.Expose [00000074H]
        .data POINTER NIL
        .event POINTER [0022E320H]
        .widget POINTER [62EAC580H]
<system> (pc=63B6A099H, fp=0022DF90H)
<system> (pc=63A45AC9H, fp=0022E010H)
<system> (pc=63A5698FH, fp=0022E0F0H)
<system> (pc=63A5DE8DH, fp=0022E210H)
<system> (pc=63A5E1F5H, fp=0022E230H)
<system> (pc=63C8A2BEH, fp=0022E290H)
<system> (pc=63B68A06H, fp=0022E2F0H)
<system> (pc=6C363FF0H, fp=0022E390H)
<system> (pc=6C363FA4H, fp=0022E430H)
<system> (pc=6C35F4D1H, fp=0022E4A0H)
<system> (pc=6C3612AAH, fp=0022E4E0H)
<system> (pc=6C36131AH, fp=0022E4F0H)
<system> (pc=6C34137BH, fp=0022E520H)
<system> (pc=685F09EAH, fp=0022E5A0H)
<system> (pc=685F1204H, fp=0022E620H)
<system> (pc=685F1740H, fp=0022E660H)
<system> (pc=63B6780FH, fp=0022E6C0H)
  GtkDraw.Main [00000155H]
        .argc POINTER NIL
        .argv POINTER NIL
        .drawingArea POINTER [62EAC580H]
        .window POINTER [62EAE000H]
  Kernel.Call [00001A63H]
        .adr INTEGER 1652490770
  ...
---------------------------------------------------------

with GtkDraw.Expose being:

---------------------------------------------------------

PROCEDURE [ccall] Expose (
        widget: Gtk.WidgetP; event: Gdk.EventExposeP; data: G.pointer): G.boolean;
BEGIN
(**) Out.String("widget.state="); Out.Int(ORD(widget.state),0); Out.Ln;
   Gdk.draw_arc (
     widget.window, widget.style.fg_gc[ORD(widget.state)],
     G.TRUE, 0, 0, widget.allocation.width, widget.allocation.height,
     0, 64 * 360);
   Out.String ("expose_event"); Out.Ln;
   RETURN G.TRUE;
END Expose;

-------------------------------------------------------------
-- 
Frank Hrebabetzky		+55 / 48 / 3235 1106
Florianopolis, Brazil
----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-560775615_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwIEhpIGFsbCxccGFyDQpccGFyDQpJIHdyb3RlIGEg
c2ltcGxlIHRlc3QgcHJvZ3JhbSB3aGljaCB1c2VzIGd0ayBhbmQgY2FsbHMgYW4gZXhwb3NlIGV2
ZW50IFxwYXINCmhhbmRsZXIuIEkgZmlyc3Qgd3JvdGUgYSBDIHZlcnNpb24sIHdoaWNoIHdvcmtz
IGZpbmUsIGFuZCB0cmFuc2xhdGVkIGl0IFxwYXINCnRoZW4gbGluZSBieSBsaW5lIHRvIENvbXBv
bmVudCBQYXNjYWwuIE15IGludGVyZmFjZSBtb2R1bGVzIHdlcmUgXHBhcg0Kc3Ryb25n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AzNjApO1xwYXINCiAgIE91dC5TdHJpbmcgKCJleHBvc2VfZXZlbnQi
KTsgIE91dC5MbjtccGFyDQogICBSRVRVUk4gRy5UUlVFO1xwYXINCkVORCBFeHBvc2U7XHBhcg0K
XHBhcg0KLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t
LS0tLS0tLS0tLVxwYXINCi0tIFxwYXINCkZyYW5rIEhyZWJhYmV0emt5XHRhYiBcdGFiICs1NSAv
IDQ4IC8gMzIzNSAxMTA2XHBhcg0KRmxvcmlhbm9wb2xpcywgQnJhemlsXHBhcg0KXHBhcg0KXHBh
cg0KLS0tLVxwYXINClRvIHVuc3Vic2NyaWJlLCBzZW5kIGEgbWVzc2FnZSB3aXRoIGJvZHkgIlNJ
R05PRkYgQkxBQ0tCT1giIHRvIExJU1RTRVJWQExJU1RTLk9CRVJPTi5DSH19ACUQIPI=
----boundary-LibPST-iamunique-560775615_-_---
Received on Mon Mar 14 2011 - 13:11:47 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:30:17 UTC