Author Topic: Unable to find an entry point named 'BASS_Init' in DLL 'bass.dll'.  (Read 10660 times)

cpramhofer

  • Guest
hi!
   
i've just installed the latest version of bass for .NET (version 2.2.0.10)
i'm using visual studio.net 2005
when i try to execute the examples i get the followin warning message
       
Unable to find an entry point named 'BASS_Init' in DLL 'bass.dll'.

the bass.NET.dll is in the output (Debug) directory and in the System32 dir of windows.
i also added the reference in the project.

this error occures everytime i try to use a Bass funktion in an own project or in the sample project!

cpramhofer

  • Guest
actually i tried it on an other machine and i had still the same problem!
please help me! i have no idea how to fix this problem!

cablehead

  • Posts: 315
If your using C# put the dll in the bin directory.
What sample are you trying to load?

ultramax

  • Posts: 55
Also don't forget to put the file BASS.DLL inside Windows\System32 directory.

Chris

  • Posts: 1810
Also don't forget to put the file BASS.DLL inside Windows\System32 directory.

No no and again no.....Not in the Windows\System Directory...
I will hunt every Developer who will make that (because whats happend if the user has other Allications installed
(who will need a older Bass.dll (and if then the Seconsd Application will also search in the win\system dir) and the  Bumm Crash........)
A good Developer will always copy the needed dlls in the Appliaction Directory !!!!! and never in the win\system dir !!!!
Greets Chris

teknology

  • Posts: 44
Also don't forget to put the file BASS.DLL inside Windows\System32 directory.

No no and again no.....Not in the Windows\System Directory...
I will hunt every Developer who will make that (because whats happend if the user has other Allications installed
(who will need a older Bass.dll (and if then the Seconsd Application will also search in the win\system dir) and the  Bumm Crash........)
A good Developer will always copy the needed dlls in the Appliaction Directory !!!!! and never in the win\system dir !!!!
Greets Chris

Absolutely right chris. on top of that, after you compile a release, it makes it easier. won't have to be hunting for controls .

cpramhofer

  • Guest
ok...

i deleted the dll from the system32 dir
but the problem is still here.
he finds the dll thats not the problem!
but he doesnt find the entry point! and i have DEFINITLY NO IDEA WHY!!

radio42

  • Posts: 4576
What system are you using?
Are you may be trying to build a 64-bit application?
->If this is the case - you need to change to x86 code in your compiler settings, since BASS.dll and BASS.NET are both only available for x86 - meaning 32-bit!

3delite

  • Posts: 907
Also don't forget to put the file BASS.DLL inside Windows\System32 directory.

No no and again no.....Not in the Windows\System Directory...
I agree!!!
 

ultramax

  • Posts: 55
Since i'm only a shop assistant not a developer, maybe it's better to close my mouth a let the experts respond, programming it's an hobbie for me that a like a lot, it's like a paison, so like a said before, i'm not good enough, i'm trying to learn by myself.

And radio42, thanks man, you're really a nice guy.

UltraMAX

cpramhofer

  • Guest
here is the complete error description!
thanks for your help!

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.EntryPointNotFoundException: Unable to find an entry point named 'BASS_Init' in DLL 'bass.dll'.
   at Un4seen.Bass.Bass.BASS_Init(Int32 device, Int32 freq, Int32 flags, Int32 win, Object clsid)
   at Un4seen.Bass.Bass.BASS_Init(Int32 device, Int32 freq, BASSInit flags, Int32 win, Object clsid)
   at Sample.Simple.Simple_Load(Object sender, EventArgs e) in C:\Programme\BASS\.NET20\Samples\CS\Simple\Simple.cs:line 428
   at System.Windows.Forms.Form.OnLoad(EventArgs e)
   at System.Windows.Forms.Form.OnCreateControl()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.WmShowWindow(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ContainerControl.WndProc(Message& m)
   at System.Windows.Forms.Form.WmShowWindow(Message& m)
   at System.Windows.Forms.Form.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.26 (RTM.050727-2600)
    CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Simple
    Assembly Version: 1.0.2222.36865
    Win32 Version: 1.0.2222.36865
    CodeBase: file:///C:/Programme/BASS/.NET20/Samples/CS/Simple/bin/Debug/Simple.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.26 (RTM.050727-2600)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.26 (RTM.050727-2600)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.26 (RTM.050727-2600)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Bass.Net
    Assembly Version: 2.2.0.10
    Win32 Version: 2.2.0.10
    CodeBase: file:///C:/Programme/BASS/.NET20/Samples/CS/Simple/bin/Debug/Bass.Net.DLL
----------------------------------------
System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.26 (RTM.050727-2600)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.26 (RTM.050727-2600)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.



radio42

  • Posts: 4576
Okay, that looks okay so far...
However, it doesn't answer the question, wheather you are trying to compile your project under 64-bit mode?
Take a look to your Project Preferences...there you will find a tab called "Build"...and here you locate "Platform target"...make sure it is set to "Any CPU".

Second question...where have you copied your "bass.dll" ?
It should reside in either "...bin\Debug\" or "...bin\Release\" !

Are you using "bass.dll" version 2.2.0.3 ?

cpramhofer

  • Guest
actually i downloaded an old version of the bass.dll (2.1.xx) and tried it again.
the comand Bass_Init was success-full and the simple sample started already to play.
but a lot of other functions brought the same failure (unable to find an entry point for ... Bass_xxx)
so i think there ist something wrong with the dll....
has anyone already successful tried the 2.2.0.10 version of bass with Visualstudio 2005 and .NET 2????

i want to use this nice library and it is impossible for me   :'(

cpramhofer

  • Guest
the bass.dll is located in bin\Debug and the build is definitely set to "Any CPU"
it is version 2.2.0.10

radio42

  • Posts: 4576
Problem resolved - after some chatting!

Seems that it was a general and simple misunderstanding....

So for other folks  how might encounter the same issue:
Every .Net application needs two things:

1. the BASS .NET API (Bass.Net.dll)
2. the native BASS (bass.dll)

Bass.Net.dll is ONLY an API wrapper for .Net and NOT a full replacement.
So Bass.Net.dll invokes bass.dll !!

So make sure BOTH of the dlls are present in your application directory !

egonKaschuba

  • Guest
Also don't forget to put the file BASS.DLL inside Windows\System32 directory.

No no and again no.....Not in the Windows\System Directory...
I will hunt every Developer who will make that (because whats happend if the user has other Allications installed
(who will need a older Bass.dll (and if then the Seconsd Application will also search in the win\system dir) and the  Bumm Crash........)
A good Developer will always copy the needed dlls in the Appliaction Directory !!!!! and never in the win\system dir !!!!
Greets Chris

Absolutely right chris. on top of that, after you compile a release, it makes it easier. won't have to be hunting for controls .