Bugs item #1747984, was opened at 2007-07-04 14:45
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=478070&aid=1747984&group_id=55736

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: externals
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Stephen Sinclair (radarsat1)
Assigned to: Nobody/Anonymous (nobody)
Summary: getdir crashes on windows (mingw)

Initial Comment:
I'm using a personally built version of Pd downloaded from CVS.  I needed the 
patch folder, so I compiled the [getdir] object, which works fine on Linux, but 
on Windows it crashes on [bang].

I looked at it a bit, but I'm at a loss to figure it out: It calls 
canvas_getdir(), which in turn calls canvas_getenv().  However, any attempt to 
dereference the pointer returned by canvas_getenv() causes a crash.

I inserted the following code into getdir_bang():

    s = (t_symbol**)canvas_getenv(last);
    printf("[getdir] getenv: %#x\n", s);
    printf("[getdir] getenv->: %#x\n", (*s));
    printf("[getdir] getenv->s: %#x\n", (*s)->s_name);

It crashes on the second printf() statement, so the output is:

[getdir] getenv: 0x700a570
12 audio buffers
socket receive error: Unknown error (10054)


There may be something wrong with this pointer, but I cannot see what might be 
wrong.  It is in the g_canvas struct returned originally in getdir_new() by 
canvas_getcurrent().


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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=478070&aid=1747984&group_id=55736

_______________________________________________
PD-dev mailing list
[email protected]
http://lists.puredata.info/listinfo/pd-dev

Reply via email to