473,779 Members | 2,041 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

1 New Member
The error code is as follows: "An error occurred creating the form. See Exception.Inner Exception for details. The error is: Corrupt .resources file. Got an unexpected EndOfStreamExce ption 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.aud io.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 1379

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

Similar topics

7
6926
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
7868
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 to find the report in the manifest resources'. csc.exe /target:exe /resource:source\abc.rpt,abcsystem.abc.rpt /lib:"C:\Program Files\Common Files\Crystal Decisions\1.1\Managed"...
0
1195
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 file: //////////////////////////////////////////////////////////////////////////// / // // Generated from the TEXTINCLUDE 2 resource. // #include "buildoptions.h"
3
2837
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 experiencing the "Viewstate corrupted" error message on a particular page, when that page is left for a period of time and I return to it again, and submit it again. The page in question has a drop-down list of various RSS news feeds I am...
6
4141
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 had to manually install all of the ODBC drivers and the rest of the DLL's, and now I am getting "Access is Denied" errors on any page that uses ADODB. How do I fix it? I already gave the ODBC drivers in the folders in "c:\program files\common...
0
3537
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 original question, the subject line is: ADODB.NET and "Access Denied" I have an ASP.NET page writtein in VB that uses ADODB. I just had to
2
15486
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 can go right to the default.aspx right in the ISS Manager and right-click browse and the error still comes up. I re-copied the folder over from a working server and checked IIS and NTFS permissions and it all matches. I recreated the virtual...
0
1774
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 there are different application which can access one dll avoid duplications. Resource File Name : Resources/MyAppResource.de.resx
6
8026
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 database backup, corrupt blocks can remain undetected in an UDB system for a long time. The potential solution is: 1) Restore from a GOOD backup and rollforward (Recommended). The problem is backup normally is kept for 30 days so we must find the...
0
9474
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10306
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10138
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10074
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9930
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7485
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6724
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5373
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
2869
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.