<div dir="ltr">On Thu, Oct 12, 2017 at 3:24 PM, IOhannes m zmölnig <span dir="ltr"><<a href="mailto:zmoelnig@iem.at" target="_blank">zmoelnig@iem.at</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><span class="gmail-">On 10/12/2017 08:03 PM, Martin Peach wrote:<br>
> Since yesterday I've been trying to build midifile.c for Windows7 using<br>
> Visual Studio 2017. When I run the resulting dll using midifile-help.pd it<br>
> crashes Pd (0.48.0 installed from Miller's site) whenever sys_fopen() is<br>
> called. Doing the same thing using fopen() from stdio.h works fine.<br>
<br>
</span>you mean, that sys_fopen() is crashing and never returning (rather than<br>
using the FILE returned by it)?cd<br>
can you open other files with Pd?<br>
e.g. can you *save* a Pd file?<br>
<br></div></blockquote><div><br></div><div>Yes,
 when my midifile dll calls sys_fopen in the running instance of Pd, Pd 
disappears from the screen. I was getting a crash report dialog, but not
 any more. The Pd program runs fine, I can open and save patches. Also the version of [midifile] from deken works fine, but I don't know how that was built.<br></div><div><br></div><div><br></div><div><br></div></div></div></div>