473,387 Members | 1,295 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

I'm having a problem with "corrupt .resource" files.

The error code is as follows: "An error occurred creating the form. See Exception.InnerException for details. The error is: Corrupt .resources file. Got an unexpected EndOfStreamException while trying to read the ResourceReader header." I've tried removing them and re-adding them and re-converting the files to Wav (I'm making a game that involves music, and I'm using the my.computer.audio.play function to play them), and that doesn't work. It stops working only after I've added 8+ songs. Here is the code I use to preview the song on a different form after the user clicks a label with the song's name on it:

Expand|Select|Wrap|Line Numbers
  1.   Private Sub LabelX11_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LabelX11.Click
  2.         Aboutsong.AlbumImage.Image = My.Resources.NightmareRevisited
  3.         Aboutsong.TextBox1.Text = "Etc."        Aboutsong.TextBox2.Text = "Etc."
  4.         Aboutsong.Show()
  5.         My.Computer.Audio.Play(My.Resources.Kidnap_The_Sandy_Claws_1_, AudioPlayMode.BackgroundLoop)
  6.         Aboutsong.TextBox1.Name = "Inferno"
  7.         Me.Close()
  8.     End Sub
  9.  
The About song's Textbox1 is renamed to the name of the form that the label that was clicked was on, so when you close it, it goes back to that level instead of the level-select menu:
Expand|Select|Wrap|Line Numbers
  1.   Private Sub Close1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Close1.Click
  2.         Close1.Image = My.Resources.Close_Clicked
  3.         My.Computer.Audio.Stop()
  4.         If TextBox1.Name = "Azucar" Then
  5.             TheAzucar.Show()
  6.         ElseIf TextBox1.Name = "Inferno" Then
  7.             The_Inferno.Show()
  8.         End If
  9.         Me.Close()
  10.     End Sub
  11.  
I would greatly appreciate help with this problem. Thank you.
Nov 29 '10 #1
0 1340

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Dan H. | last post by:
Hello, What is the equivalent "string resource file" in c#? And, is there a way to create a beep in C#? Thanks, Dan
2
by: Happy Li | last post by:
Need help! I have a project with one crystal report. How can I compile it with csc.exe. I have tried the following command line .it compile successfully..but when I run, it display error 'Unable...
0
by: Bartosz Milewski | last post by:
My resource file compiles correctly, but when I try to open it in VS, I get the error, "cannot find include file". The file in question is a "constant include". This is what it looks like in the rc...
3
by: Trevor Andrew | last post by:
Hi There, I have a small ASP.NET application under development. I am using VS.NET 2002 (2003 upgrade is on the way) with .NET Framework 1.1. It is hosted on a web hosting service in the US. I am...
6
by: ASP.Confused | last post by:
I have an ASP.NET page writtein in VB that uses ADODB. I just had to force-install MDAC 2.8 after I tried to rollback to 2.6 (my web host uses this, and I wanted to be compatible with them.) I...
0
by: ASP.Confused | last post by:
The old message looked a little stale, so I am re-posting it here. Anybody have any ideas of what I could do?!? The previous responses to this question are below. If you want to look at the...
2
by: Steve M | last post by:
I am having a really strange problem. I have a site setup in a virtual directory that fails with the error below. It works on other web servers that are network load balanced with this server. I...
0
by: ramesh.nrk | last post by:
Hi, I am developing a windows application which should support different language for this I am using "Resource Manager" default in .net framework. Here I am developing dll for Resource because...
6
by: James Yang | last post by:
"bad page", especially in table, is a risk for database maintenance. The particular access attempt for corrupt blocks may not occur often, and corrupt DB2 blocks are not recognized during a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.