Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > irrKlang
.NET program doesn't run on other computers

ThePawnBreak
Guest
Quote
2011-09-24 15:11:28

Hello!

I've been making an MP3 player in C, but it doesn't seem to work on other computers.

Here is a minimal program that doesn't work on other computers, with .NET 4 installed. I have included the .dll files ( including the MP3 one), but it still doesn't work. It doesn't work in the sense that sometimes, nothing happens ( program doesn't open, doesn't show up in processes) and other times they just crash ( Program has stopped responding) when opened.

The platform is set to x86.




using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

using IrrKlang;

namespace Mp3_test
{
public partial class Form1 : Form
{
IrrKlang.ISoundEngine engine;
IrrKlang.ISound currentlyPlayingSound;

public Form1()
{
InitializeComponent();

engine = new IrrKlang.ISoundEngine();
}

private void btnPause_Click(object sender, EventArgs e)
{
OpenFileDialog dialog = new OpenFileDialog();
string currentPathname;

if (dialog.ShowDialog() == DialogResult.OK)
{
currentPathname = dialog.FileName;
System.Diagnostics.Debug.WriteLine(currentPathname);

if (currentlyPlayingSound != null)
currentlyPlayingSound.Stop();

currentlyPlayingSound = engine.Play2D(currentPathname, true);
}
}
}
}


http://dl.dropbox.com/u/30344000...


niko
Moderator
Quote
2011-09-25 06:52:23

Did you take a look at this?

My C program using irrKlang doesn't work on another computer, how can I make it work?

If your program is written in C, VisualBasic.NET or any other .NET language and uses irrKlang to play back sounds, but doesn't work on another computer, this is usually because on that computer, the .NET Framework hasn't been installed.
It could also be the possibility that your application target is 'Any CPU'. Simply set the target to 'x86'. (If you use the Express edition, you need to set the Visual Studio mode to 'Expert' to see that option, use Extras -> Settings -> check Expert Options)
You also need to install the Visual Studio redistributable runtime on that system, which you can download freely from microsoft and can include in the installer of your application. Depending on the irrKlang version you are using, you need:
irrKlang.NET in bin\dotnet-1.1:
depends on the module MSVCR71.DLL. Works with all .NET versions.
irrKlang.NET2.0 in bin\dotnet-2.0:
depends on the modules MSVCR80.DLL and MSVCM80.DLL. Use the Visual Studio 2005 redistributeable (vcredist_x86)
irrKlang.NET4.0 in bin\dotnet-4:
depends on the module MSVCR100.DLL. Use the Visual Studio 2010 redistributeable (vcredist_x86)



ThePawnBreak
Guest
Quote
2011-09-25 21:31:06

I had to copy the .NET dll's, it works now. Thanks!


Freefall
Guest
Quote
2012-08-30 17:01:56

Hey guys I have the a the same problem with VS 2008 Professional Edition. My vb app is running perfectly on my Win 7 x64 OS, plays the static memory array and so on. But even though I compiled as x86 configuration it doesn´t work on any other Win XP 32 bit computer, all .dll´s are provided, that´s not the point. At startup there is only shown it won´t work anymore, but the problem is the irrKlang.NET2.0.dll I think. I´ve Upped my Project here: http://ftp://ftp1852418:88888888.... Any advice would be great. I really like that little lib, and you can embed it with SmartAssembly so you can get a standalone .NET Audio app. :)


Freefall
Guest
Quote
2012-08-30 17:04:44

And yes, I took a look into the FAQ.
My C program using irrKlang doesn't work on another computer, how can I make it work?

If your program is written in C, VisualBasic.NET or any other .NET language and uses irrKlang to play back sounds, but doesn't work on another computer, this is usually because on that computer, the .NET Framework hasn't been installed.
It could also be the possibility that your application target is 'Any CPU'. Simply set the target to 'x86'. (If you use the Express edition, you need to set the Visual Studio mode to 'Expert' to see that option, use Extras -> Settings -> check Expert Options)
You also need to install the Visual Studio redistributable runtime on that system, which you can download freely from microsoft and can include in the installer of your application. Depending on the irrKlang version you are using, you need:
irrKlang.NET in bin\dotnet-1.1:
depends on the module MSVCR71.DLL. Works with all .NET versions.
irrKlang.NET2.0 in bin\dotnet-2.0:
depends on the modules MSVCR80.DLL and MSVCM80.DLL. Use the Visual Studio 2005 redistributeable (vcredist_x86)
irrKlang.NET4.0 in bin\dotnet-4:
depends on the module MSVCR100.DLL. Use the Visual Studio 2010 redistributeable (vcredist_x86)


Does it work at your system?


Freefall
Guest
Quote
2012-08-30 17:06:50

Sorry, above link doesn´t work. this is the right one:

ftp://ftp1852418:88888888@ftp-web.ohost.de/Irrklang%20Template.rar


Freefall
Guest
Quote
2012-09-03 03:55:49

Ok, got the clue. It seems that the NET 2.0 dll doesn´t work properly. Took the 1.0 and all went fine. Anyway, thx for this cool lib, although it is quite bugy with the chiptunes...


andrey_wcf
Registered User
Quote
2012-09-12 09:34:08

Hi, i make WPF Prism application (compiled for x86 platform), and one of modules depends from "irrKlang.net4". On my machine (win 2008r2 x64) its run good, also on win7 x64. But on win7 x86 and win8 x64 its get the error "Could not load file or assembly 'irrKlang.NET4.dll' or one of its dependencies. is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)"
I had tried to copy 'msvcr100.dll' in result folder with other dlls but it hasn't helped me.

(!!!)UPDATE: i solved my problem. It's need copy 'msvcr100.dll' from system32 folder of x86 OS(!!! it's important, and the file 753KB), not from system32 folder of x64 OS


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "In?ernational" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact