22 May '13 - 23:43 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: 1 [2]  All
  Reply  |  Print  
Author Topic: Bass.Net BASS_PluginLoadDirectory issue  (Read 3858 times)
Latch
Posts: 89


« Reply #20 on: 13 Jul '09 - 14:46 »
Reply with quoteQuote

Hi Latch,

to move further with your issue, I think it might be usefull, if you provide me with a simple sample application (incl. source code in VB.Net).
The sample should be very simple - just performing the loading and initialization.
The sample should include all the 32-bit and 64-bit bass dlls you are using.
With your sample I can see what is going wrong on my machines.

Regarding the double-slashes: I'm not a VB expert, so it might be that under VB single-slashes are okay - with C# you must provide double-slashes.

Btw: Do you get your errors only on a 64-OS or on both 32- and 64-bit OSs?

I only have a 32 bit machine available, but I wanted to make sure the 32 bit side of the code worked before I even tried it on a 64 bit machine.  I can't send you my source code, and considering you're the one who is the developer, I find it odd that I need to make a project for you to test.  Isn't that your job? Look, I know your code is broken.  I've been a developer since 1977 and have been using .Net and third party controls since they've existed.  Why can't you simply look over your code with a fine tooth comb and find where the problem is?  This should not be a major undertaking considering the simplicity of loading DLLs.

I really don't think any one else is attempting this yet or I think we would have heard at least one person chime in with an answer on this thread.  There is a workaround in which I could simply copy the appropriate DLLs from thier respective subfolder into the main folder upon launch, but, I'm assuming you'd rather have the opportunity to fix the problem at its source.  If I'm wrong, let me know.  I'll simply use the workaround and never bug you again.
Logged
radio42
Posts: 4012


« Reply #21 on: 13 Jul '09 - 15:47 »
Reply with quoteQuote

a) I am the developer of BASS.NET
b) I am not observing any issues here within my tests - that's why I assume it must be somewhere within your code/dlls
c) It is absolutly NOT uncommon to provide a test app to demo the issue
d) I know a few other developers who where trying to the same and they doesn't seem to have any issues - since they didn't report one
e) but without any demo I seem to be unable to reproduce the error and can only say: here it is working fine on both 32-bit and 64-bit!
f) I am not asking for your entire code - just a stripped down and very simple sample
g) Again, I have already made a test app - but that is simply working fine
h) So how should I fix something, which doesn't generate an error here?
i) How can you be so sure, that my code is broken?

But since the statement in e) will not be of much help for you - I simply ask for a simple demo project.
I guess that is the only way to see:
- if you are calling all statements the right way
- if only some or even only one of the add-ons dlls you are loading is the cause of the error
- if there is mix in add-ons and/or plugins your are loading

I'm just willing to help...
Logged
Latch
Posts: 89


« Reply #22 on: 14 Jul '09 - 03:54 »
Reply with quoteQuote

a) I am the developer of BASS.NET
b) I am not observing any issues here within my tests - that's why I assume it must be somewhere within your code/dlls
c) It is absolutly NOT uncommon to provide a test app to demo the issue
d) I know a few other developers who where trying to the same and they doesn't seem to have any issues - since they didn't report one
e) but without any demo I seem to be unable to reproduce the error and can only say: here it is working fine on both 32-bit and 64-bit!
f) I am not asking for your entire code - just a stripped down and very simple sample
g) Again, I have already made a test app - but that is simply working fine
h) So how should I fix something, which doesn't generate an error here?
i) How can you be so sure, that my code is broken?

But since the statement in e) will not be of much help for you - I simply ask for a simple demo project.
I guess that is the only way to see:
- if you are calling all statements the right way
- if only some or even only one of the add-ons dlls you are loading is the cause of the error
- if there is mix in add-ons and/or plugins your are loading

I'm just willing to help...

Nevermind.  I'll use my own workaround.  I'm sorry it took me two months to realize this.
Logged
radio42
Posts: 4012


« Reply #23 on: 14 Jul '09 - 17:53 »
Reply with quoteQuote

Oki,

just to proove that it is working fine (and that something else might be wrong on your side), here is my compete test app source code for you:
It is in C#, but as you are a developer since 1977 it shouldn't be hard to convert - as said, I'm not a VB guy.

using System;
using System.IO;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Un4seen.Bass;
using Un4seen.Bass.AddOn.Fx;
using Un4seen.Bass.AddOn.Tags;
using Un4seen.Bass.Misc;

namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private Dictionary<int, string> _loadedPlugIns;
private void Form1_Load(object sender, EventArgs e)
{
if (Utils.Is64Bit)
{
if (Bass.LoadMe(Path.Combine(Application.StartupPath, "bass64")))
textBox1.AppendText("Bass.LoadMe successfull!\r\n");
if (BassFx.LoadMe(Path.Combine(Application.StartupPath, "bass64")))
textBox1.AppendText("BassFx.LoadMe successfull!\r\n");
_loadedPlugIns = Bass.BASS_PluginLoadDirectory(Path.Combine(Application.StartupPath, "bass64\\addons"));
if (_loadedPlugIns.Count > 0)
textBox1.AppendText("Bass.BASS_PluginLoadDirectory successfull!\r\n");
}
else
{
if (Bass.LoadMe(Path.Combine(Application.StartupPath, "bass32")))
textBox1.AppendText("Bass.LoadMe successfull!\r\n");
if (BassFx.LoadMe(Path.Combine(Application.StartupPath, "bass32")))
textBox1.AppendText("BassFx.LoadMe successfull!\r\n");
_loadedPlugIns = Bass.BASS_PluginLoadDirectory(Path.Combine(Application.StartupPath, "bass32\\addons"));
if (_loadedPlugIns.Count > 0)
textBox1.AppendText("Bass.BASS_PluginLoadDirectory successfull!\r\n");
}

if (Bass.BASS_Init(-1, 44100, BASSInit.BASS_DEVICE_DEFAULT, this.Handle))
textBox1.AppendText("Bass.BASS_Init successfull!\r\n");
}

private void Form1_FormClosing(object sender, FormClosingEventArgs e)
{
if (_loadedPlugIns != null)
{
foreach (int plugin in _loadedPlugIns.Keys)
Bass.BASS_PluginFree(plugin);
}

Bass.BASS_Free();

BassFx.FreeMe();
Bass.FreeMe();
}

}
}
The code assumes a simple TextBox to be present on the form.
Logged
Pages: 1 [2]  All
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines