Bug 7025 – strange static lib error

Status
RESOLVED
Resolution
WONTFIX
Severity
critical
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2011-11-28T07:07:00Z
Last change time
2015-06-09T05:10:41Z
Assigned to
nobody
Creator
changlon

Comments

Comment #0 by changlon — 2011-11-28T07:07:51Z
I try build a mp3 player use D, run into a lot of strange error. Fisrt I try use www.un4seen.com/bass.html with dfl & tango, got a invalid memory address runtime exception, then I try with dmd2 & phobos & dfl, still thorw error . I try dwt with dmd1.056/dmd1.071 & last tango_trunk, still throw memory error . bass.dll will start 6 thread , and I try libzplay also has same problem . When I remove static lib, throw all dwt soucre file with my project file to dmd 1.070, It start working with libzplay . but bass.dll is not change at all . The static lib is made by "dmd @allfilelist.txt -lib" , tango.lib and phobos2.lib is fresh too. optlink is 8.0.0.12 . one libmad api return mp3 file duration, when I build with static gui lib, the number allways wrong , when I remove static gui lib, the number is correct . I also try mpg123.dll , just keep failure on channel set. build bass.dll with static gui lib can start play music , but with a memory error. build bass.dll with gui source can't play music . The project is huge and I can't reduce the test case, If any one try www.un4seen.com/bass.html or libzplay should be easy to find the problem .
Comment #1 by andrej.mitrovich — 2012-10-21T15:53:16Z
Without a test case we can't help. This page might be useful: http://dlang.org/interfaceToC.html