21 May '13 - 13:34
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Help
Search
Login
Register
Un4seen Developments Forum
>
Developments
>
BASS
> Topic:
VB 2010 AccessViolationException on Bass_Tag_GetFromFile
Pages: [
1
]
« previous
|
next »
Reply
|
Print
Author
Topic: VB 2010 AccessViolationException on Bass_Tag_GetFromFile (Read 991 times)
JoE_Seeve
Posts: 5
VB 2010 AccessViolationException on Bass_Tag_GetFromFile
«
on:
27 Nov '10 - 17:16 »
Quote
Hello
I'm writing a program which read the MP3 tags for a database. During scanning of my music library the application crashed at different MP3 files with an access violation exception or stack overflow exception. These crashes appear only if I call Bass_Tag_GetFromFile. The call is located within a second thread (BackGroundWorker object).
My own MP3 player (with BASS) shows the same behavior on the same call of Bass_Tag_GetFromFile. After a test with "MP3 Diags" I found out there are some failures in all files which crashed my program. However the MS MediaPlayer could play corrupted files and was able to show some standard tags (cover, title, album etc.) without a problem. "MP3 Diags" could repair these MP3 files and after this I read all tags without a crash.
The main problem is I wasn't able to catch these exceptions with Try/Catch in Visual Basic. How can I write an apllication which accept corrupted MP3 files without an exception? How can I catch such exceptions?
PS: I use Windows 7 64 Bit, VB.Net 2010 Express, BASS 2.4.55 and BASS.NET 2.4.6.8.
Any ideas?
JoE
VB 2010 test with corrupted file 1b.png
(79.06 KB - downloaded 52 times.)
VB 2010 test with corrupted file 2b.png
(75.86 KB - downloaded 51 times.)
MP3 Diag with coruppted file 2b.png
(73.72 KB - downloaded 53 times.)
Logged
radio42
Posts: 4012
Re: VB 2010 AccessViolationException on Bass_Tag_GetFromFile
«
Reply #1 on:
27 Nov '10 - 19:29 »
Quote
If the file is corrupted/invalid I am not sure what to do, as I can not code handlers for all kind of invalid things which might happen.
However, pls provide some of the troublesome files to take a look at...maybe there is some easy way around it...
Logged
JoE_Seeve
Posts: 5
Re: VB 2010 AccessViolationException on Bass_Tag_GetFromFile
«
Reply #2 on:
28 Nov '10 - 12:08 »
Quote
Hello radio42
Here are two files. The first file showed an exception (AccessViolation). But the second is a little bit dangerous
. If my application read the tags from the file "03 - Into The Fire.mp3" than my memory load went up (and used all of my 6 GByte). I wasn't able to get more information because in this case my computer was very slowly and I had to use the power button sometimes.
http://www.materialordner.de/zRxT9j1drS7jbYsEr0iQ6Wm2fmqVLMT.html
JoE
Einen schönen ersten Advent von Seevetal nach Hamburg
Logged
radio42
Posts: 4012
Re: VB 2010 AccessViolationException on Bass_Tag_GetFromFile
«
Reply #3 on:
1 Dec '10 - 17:00 »
Quote
Hmm, very strange.
I just tested your two files here and I don't get any crash or access violation or stack overflow.
Can you try to reproduce the problem with the new 2.4.7.0 versions of bass.dll and Bass.Net.dll?!
Logged
JoE_Seeve
Posts: 5
Re: VB 2010 AccessViolationException on Bass_Tag_GetFromFile
«
Reply #4 on:
2 Dec '10 - 03:59 »
Quote
OK, I will check it!
JoE
Logged
JoE_Seeve
Posts: 5
Re: VB 2010 AccessViolationException on Bass_Tag_GetFromFile
«
Reply #5 on:
5 Dec '10 - 11:09 »
Quote
I think I got it.
If I compile my application with "AnyCPU" (Bass.dll = 2.4.6.10) I got all the problems I discribed before
. But the program works with "X86" (Bass.dll 2.4.7.1)
!
JoE
Logged
Chris
Posts: 1506
Re: VB 2010 AccessViolationException on Bass_Tag_GetFromFile
«
Reply #6 on:
5 Dec '10 - 21:55 »
Quote
Hi
A 32 Bit Application will working on Any Plattform a 64 Bit Application only on a 64 Bit Plattform.
Chris
Logged
radio42
Posts: 4012
Re: VB 2010 AccessViolationException on Bass_Tag_GetFromFile
«
Reply #7 on:
6 Dec '10 - 07:23 »
Quote
When you compile your .Net app as for "Any CPU" it will run as a 64-bit app on a 64-bit OS - but that also means, that you need the native 64-bit bass libs in such case!
Logged
JoE_Seeve
Posts: 5
Re: VB 2010 AccessViolationException on Bass_Tag_GetFromFile
«
Reply #8 on:
6 Dec '10 - 13:16 »
Quote
I can compile my program to 32-bit and 64-bit targets. For 32-bit platform I use Bass.Net 2.4.7.0 and Bass24.dll 2.4.7.1 (this combination works). I think the combination of Bass.Net 2.4.7.0 and Bass24.dll 2.4.6.10 (64-bit dll from Sep 2010) makes trouble I described in my first post here.
JoE
Logged
Pages: [
1
]
Reply
|
Print
Un4seen Developments Forum
>
Developments
>
BASS
> Topic:
VB 2010 AccessViolationException on Bass_Tag_GetFromFile
« previous
|
next »
Jump to:
Please select a destination:
-----------------------------
Developments
-----------------------------
=> BASS
=> XMPlay
=> MO3
-----------------------------
Off Topic
-----------------------------
=> General Discussion
Loading...