Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"system.argumentexception" Directsound .dll

Status
Not open for further replies.

redapples

Technical User
May 1, 2003
215
GB
An unhandled exception of type 'System.ArgumentException' occurred in microsoft.directx.directsound.dll

Additional information: Value does not fall within the expected range.


occurs with the following code

Code:
If ofd.ShowDialog Then
     _buffer = New SecondaryBuffer(ofd.FileName, _dev)
     txtFileSelected.Text = ofd.FileName
End If

where ofd is an openfiledialog and _dev is a device object with the following set

Code:
        _dev = New Device()
        _dev.SetCooperativeLevel(Me.Handle, CooperativeLevel.Priority)

The file I'm selecting is the "C:\WINNT\dx9\extras\Extras\DirectShow\Samples\C++\DirectShow\Editing\timelinetest\track2.mp3"

any thoughts?

Want the best answers? See FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top