aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/vst/src/vsthost.cpp
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2005-12-06 21:54:51 +0000
committerThomas Grill <xovo@users.sourceforge.net>2005-12-06 21:54:51 +0000
commit3595d550f21f9fae4647c40f6150a691bf1fee8d (patch)
tree13610ec7c065e74ccf3e72336e6d499baa3e4a19 /externals/grill/vst/src/vsthost.cpp
parent3118cea037b63661e5f7ebff0c1a810da7f6159b (diff)
experimenting a bit....
rename help file fixes for pthreads V2 svn path=/trunk/; revision=4157
Diffstat (limited to 'externals/grill/vst/src/vsthost.cpp')
-rw-r--r--externals/grill/vst/src/vsthost.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/externals/grill/vst/src/vsthost.cpp b/externals/grill/vst/src/vsthost.cpp
index 9553f38d..3fd1a935 100644
--- a/externals/grill/vst/src/vsthost.cpp
+++ b/externals/grill/vst/src/vsthost.cpp
@@ -122,6 +122,7 @@ void VSTPlugin::worker(thr_params *)
// see if editing has stopped
if(p && p->plug->hwnd == NULL) {
// yes, it is now safe to delete the plug
+ post("DELETE %s",p->plug->dllname.c_str());
delete p->plug;
delete p;
}
@@ -170,6 +171,17 @@ bool VSTPlugin::NewPlugin(const char *plugname)
#if FLEXT_OS == FLEXT_OS_WIN
hdll = LoadLibraryEx(dllname.c_str(),NULL,0 /*DONT_RESOLVE_DLL_REFERENCES*/);
+/*
+ char buf[255],*c;
+ strcpy(buf,dllname.c_str());
+ for(c = buf; *c; ++c)
+ if(*c == '/')
+ *c = '\\';
+ char *sl = strrchr(buf,'\\');
+ if(sl) *sl = 0;
+ SetCurrentDirectory(buf);
+ hdll = LoadLibrary(dllname.c_str());
+*/
if(hdll) pluginmain = (PVSTMAIN)GetProcAddress(hdll,"main");
audiomaster = Master;