Error

7 views
Skip to first unread message

everyon...@hotmail.com

unread,
Apr 3, 2011, 3:26:36 AM4/3/11
to TempAu
I have installed it like the the video entered the code found a music
path on my computer told it to go to that path I ran the app and it
came up with this error


An unhandled exception of type
'System.Runtime.InteropServices.SEHException' occurred in Sound
tests.exe

Additional information: External component has thrown an exception.


Is there any way to fix this

Roman Pasechnik

unread,
Apr 7, 2011, 4:30:28 AM4/7/11
to TempAu
TempAu is a C++ library. You tried it with .NET?

everyon...@hotmail.com

unread,
Apr 12, 2011, 12:57:12 PM4/12/11
to TempAu
I did use C++ but every time I try it comes up with the same error
message

Unhandled exception at 0x7c812afb in Sound test TempAu.exe: Microsoft C
++ exception: TempAu::SimpleException at memory location 0x0012fdd0..

heres my code if you want to see what I've done wrong
#include <iostream>
using namespace std;
#include "tempau.h";

int main () {
TempAu::Song song("C:\Documents and Settings
\gyoung.G-10F943871E964\My Documents\My Music\weird.wav"); // Create
sound object
song.play(); // Play it!
cout << "Hello world";


}
Message has been deleted

everyon...@hotmail.com

unread,
Apr 12, 2011, 1:00:40 PM4/12/11
to TempAu
heres the code again

Roman Pasechnik

unread,
Apr 12, 2011, 2:35:47 PM4/12/11
to tem...@googlegroups.com
OK, I will try to help you!

First, you are using wrong slashes in your path.
Please, replace forward slash "\" with backslash "/".

you have:
"C:\Documents and Settings\gyoung.G-10F943871E964\My Documents\My Music\weird.wav"

must be:
"C:/Documents and Settings/gyoung.G-10F943871E964/My Documents/My Music/weird.wav"

If it will not help, please modify your code to following (prints exception details):

int main ()
{
    try
    {
        TempAu::Song* song = new TempAu::Song("C:/Documents and Settings/gyoung.G-10F943871E964/My Documents/My Music/weird.wav"); // Create sound object
        song->play();                // Play it!
    }
    catch (TempAu::Exception& e)
    {
        cout << e.text() << endl;
    }

    cout << "Hello world";
    cin.get();
}


Tell me if it helps or not.
Good luck.

Pat8u

unread,
Apr 12, 2011, 3:38:34 PM4/12/11
to TempAu
Thanks I got a mp3 and A wav file to play this helps alot
> >        cout << "Hello world"; }- Hide quoted text -
>
> - Show quoted text -
Reply all
Reply to author
Forward
0 new messages