VS 2008 : ImageList/Memory Errors Suddenly Occur In App?
Apr 16, 2012
The user has been running the app in question for over a year with no issues like this (this is a VB2008 business/database application with an executable 4.6 MB in size). Starting last week, "all of a sudden", the user started getting INTERMITTENT error messages like the following:
Exception has been thrown by the target of an invocation.
Creation of the ImageList handle did not succeed.
Out of memory.
Parameter is not valid.
The last two have been accompanied by the big "red cross" on the form (in the screen shots the user sent me).The fact that the one message mentions "ImageList" and poking around on the Internet for answer on "Parameter not valid" points in the direction of a graphic problem, but nothing has changed in this area for a long time, and the app only uses graphics in a very straightforward way, using images on buttons and menu items, but not doing any in-line graphics methods.
View 1 Replies
ADVERTISEMENT
Mar 18, 2010
ive been building a app, and have a beta tester who is on xp, im on vista x64, the app works great t my end, an dive also tested it on another pc with vista x64, and on a laptop wit win7 32, Now my beta teste has been testing fine on hes xp rig, up untill today when the WIP build i sent him started kicking up errors all over the place, try as i might i cant narrow it down to were the error is, heres how the app looks on vista and win7:[code]So i thought it might of been something i changed in between the working xp version and the wip but, all i changed was the page title, nothing else, no code etc.
View 4 Replies
Feb 22, 2012
I've built a windows form application that steps through a wafer map and sends a command to ink specific dies if the bin number is between certain values. While debugging I have run into an issue with the program crashing with no error message anywhere. While stepping through my code, the place the program stops has occured in two different places but both in the same subroutine in the code I use for the network communications. Below is the subroutine I've seen it break on with the two places it has broke indicated.
Private Sub EventHandler(ByVal Args As EventArgs)
Select Case Args.EventP
Case EventPointer.Connected
RaiseEvent Connected()
[code]....
View 2 Replies
Oct 20, 2010
I ran my console app succesfully 30 minutes ago. Added a single line to write a message out to the console, recompiled and now, when it runs, it eats up all the available memory before bombing out with an OutOfMemory exception! I can see the Memory Usage in Task Manager just rocketing up!
What on earth could be wrong? I can reboot the machines I am running this on as they are live servers.
View 10 Replies
Apr 11, 2011
When I publish the program. Is there any way to get VB to publish the text files with the program so that no errors can occur. When I install and run the published program I get a series of errors relating to text files that are not found.
View 4 Replies
Oct 21, 2009
today I finished my VB project which is a program that generates costs of pizza's by what the customer order. The code is all complete just looking for some idea's on to stop bugs and clean up the code. So below is all my code and picture of the form. Errors occur when someone doesn't pick a value, so what i want is there to be default values as 0.
[Code]...
View 1 Replies
Jul 6, 2010
Private Sub cmbEmployee_Validating(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles cmbEmployee.Validating
[code]...
View 2 Replies
Mar 2, 2009
i dont know y i am getting such errors.. i am getting memory currupt errors. my application was fine but i am suddenly getting errors after adding few lines of code..
View 12 Replies
Sep 16, 2011
I have written a small program to aide my business and the program works fine. But while compiling the code it shows a lot of warnings like the following."late bound resolution; run time errors may occur""implicit conversion from 'Object' to 'String'." Where am i going wrong. Even though the options strict off removes the warning I want to correct the warnings.
Private Function ledgerMasterFullName(ByVal i As Integer) As String
Dim fullName As String
Dim vObj As Object
[code]....
View 4 Replies
Jul 17, 2010
So, I made an app on visual basic 2008, all cool and stuff, but now I'm experiencing a major problem. When I run my program it just works fine, but after some time (when I don't use the app) it suddenly changes from 42,5 KB to around 100 - 130 KB, and when I try to run it I get this error;The application failed to initialize properly 0xc000007B Click on ok to terminate the application.
So if I extract it again (zipped it), it works again and after some time I get the error again, so the file in the ''zip'' doesn't change.I can ensure I got no virus whatsoever on my computer, nor in my application.I just reinstalled my pc to see if it fixed the problem, it didn't
View 17 Replies
Dec 28, 2009
After successfully running an executable file several days ago, I am suddenly encountering a number of inexplicable errors. One concerns the lack of recognition of two libraries:
microsoft.office.core
microsoft.office.interop.excel
How could they previously be found but not now?I am using another workstation but loaded (so I thought) the same application and references.
View 5 Replies
Jun 25, 2009
I�m using the my.computer.network.downloadfile (something like that) to download the html source to a text file. It has been working for about a year now.
Today it stopped working and the downloaded files are empty. I�ve talked to the people at the website, and they say they haven�t done anything. But they always say that.
Is there a way to "block" an automated download process of this kind, and how do I get around it?
View 10 Replies
Aug 16, 2010
I'm having trouble getting my archive service working. The service counts files in a directory and sends a email. Pretty simple. However, it randomly stops working. I debugged the service and found nothing wrong. I also have it writing to the eventlog so that I can use it to determine where it fails It progresses through each function normally. I thought my program was failing at on point, because it was only posting "Email Notification Service is Running". However, I realized it wasn't posting to the eventlog source so I've been playing around with different ways to post the message to the eventlog. Am I missing something from my code below? I'm really scratching my head with this one.
[Code]...
View 5 Replies
May 27, 2009
I cannot use Visual Basic 2008 at all. When I go to "new project" and choose "Windows Form Application" I get this error.I have tried multiple uninstall/reinstall with no result.A microsoft reply to this suggested that I needed: " .NET Framework 2.0 Service Pack 1 " I checked, and I did not have the .netframework 2.0 service Pack 1.
When I tried to download and install the above from Microsoft.com, the istaller said that "it was not allowsed" and I was not able to install the service pack 1.
I tried Uninstalling net framework 3.5, 3.0, 2.0 and then reinstalling .netframework 2.0 sevice pack 1; then reinstalling Visual basic 2008 express edition. At the reinstall of Visual basic 2008, .netframework 2.0 sevice pack 1 is unistalled by .net framework service pack 2.When I check the foruims for simiar problems, the formus are mostly for Visual basic 5.0, or other programs that I do not have.
Here is the programs I have installed:
Operating system: Windows XP
Microsoft .net framework 1.1
Microsoft .NET framwork 1.1 Hotfix(KB928366)
Microsoft .Net Framework 2.0 Service Pack 2
[code]....
All the security updates and hotfixes for Widows XP.
View 4 Replies
Aug 25, 2009
Why these two different ways of assigning a background image work differently?
When I load the image into an ImageList, and then reference the ImagaList.Images collection to set the background Image for a control, it looks llike crap. The smooth blend I had set up is stratified.
When I load the image directly from the Resource, it looks great.
I assume this has something to do with the bit depth of the image once it is stored in the Image list collection? Or some other conversion issue. However, I can't find a way to adjust these properties on the image list (They are read only).
Here is the way that looks like crap:
code;
View 7 Replies
Jun 26, 2009
I have a Class that has an Image as property. A (possibly very high) number of instances of this class are added to a List(Of thisClass).
In a For Each loop, a new ListViewItem is created for every instance of the class in that List. The Image property of the class should now be the Image of that ListViewItem.
Now, a ListViewItem does not take an Image directly. Instead, I need to assign an ImageList to the SmallImageList property of the ListView, with a specified Key, and assign an ImageKey property to the ListViewItem.
Of course, I could simply add the Image in the Image property of the class to the ImageList, generate a random Key string, and assign that string to the ImageKey property of the created ListViewItem.
That does work, and gives me the correct image for every ListViewItem. However, it is not a very good solution I think, because, in total, there might not be more than like 5 different images! But there may be a LOT of ListViewItems, so there are a lot of duplicate images.
To prevent storing the same image 9183 times in the ImageList, I thought I could generate a Key to use based on the image. If the same image is then encountered later in the loop, I can see that this Key is already in the ImageList, and I don't need to add it a second time. Because they Key is then equal to the 'old' image, already in the imagelist, it will automatically be used for this Listviewitem.
I thought I could use the GetHashCode property of the Image, but apparently not...
Here is my
[Code]....
I thought this would work, but apparently the GetHashCode function returns a different number, even for identical images. I know the images are identical because I tried this by specifying the SAME image object as the Image property of the class, a few times. The GetHashCode is different everytime.
So is there any other property I can use, that is unique for identical images, but different for different images? Or am I going about this completely the wrong way? Or shouldn't I worry that there can be up to 10.000 duplicate images in the Imagelist?
View 4 Replies
Jan 16, 2010
I have an image box full of images , im using a code to select a random image from the imagelist and display it in a picturebox.
My problem now is how can i check what image is in the picturebox and then have it do something else.
[code]...
View 29 Replies
Jan 16, 2010
When i select an image randomly from an imagelist on my form and insert it into a picturebox, how can i stop that image from being selected again while the program is open ?
View 1 Replies
Feb 27, 2009
A routinely used application suddenly became impossible to access, with and error code indicating that the "VB Backup\Backup" file cannot be found. When I click File Open, the projects display as always. I select the application, double click the .sln file--and nothing happens. When I try to access the .vb file in Solution Explorer, it says "Cannot find VB Backup\Backup Files."
What are the Backup Files, when are they created, and why would they suddenly be "gone?" Is there any way to rebuild the Backup Files? I used the application last night and it worked fine. Today it can't be opened because the Backup Files cannot be found.
I have backups of the application folders, but get the same error message. Cannot be opened because the Backup FIles cannot be found.
View 4 Replies
Oct 16, 2010
I tried to start using VB 2010 Express with a program I originally developed with VB 2005 Express that I moved to VB 2008 Express successfully a couple years ago. It uses a database file (*.mdf) that is on the computer ( not out on a server). When attempt to run the program in debug mode, I get the following error "An attempt to attach an auto-named database for file C:Documents and SettingsTomMy DocumentsQuizzing StuffQuestion Database 2010QuizQuest ionGameQuizQuestionGameinReleaseQuizQuestionDB.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share."
I first made a copy of the entire project folder that was working in VB 2008 Express and gave it a different name. In VB2010 I opened the project in the copied folder and it said it successfully converted the project. I am able to open the Data Source inthe Designer and see the database structure as I expect. I think the project is still using SQL Server 2005 Express (because it is what is checked in the list of prerequisites on the Publish tab).
Note, I have programmed off and on for many years, but fairly new to using databases and SQL Server.
View 3 Replies
Jul 1, 2009
Quick query...I'm trying to scan a long string and return any values that occur between the tags <FileName> and </FileName> I've got a bit of code here to use regular expressions to return the position of the occurunces of both substrings..Just wanted to find out if there is any way to scan for both substrings within one loop (as im currently doing 2, one for the first substring and one for the 2nd) so I can use something along these lines:
ringlist = Mid(XMLRESP, (startloc + 1), (endloc - 1))
MsgBox(ringlist)
to msg box the value between the substrings...either that or another approach to return the value between the 2 substrings (it can be of variable length)
Dim patternstart As String = "<FileName>"
Dim patternend As String = "</FileName>"
Dim matchesstart As MatchCollection = Regex.Matches(XMLRESP, patternstart)
[code].....
View 3 Replies
Dec 18, 2009
For no reason I can discern my Visual Studio 2008 app (MyApp), which had many forms and reports, suddenly contains only one form, a simple test form I was experimenting with. I am unaware of any problem with the app. I use it to maintain an Access database which is still functional and is in the same place on the disk as it always did. This app and its data are all contained on my laptop computer. The form files all remain where they always did. I used to be able to control my earlier VB6 version of this application if it went off the rails, but I'm in the dark with VS2008.
View 7 Replies
Sep 7, 2011
I recently had to format my PC, So I moved my project files and build files to my External Hard Drive, and continued to work on my project..I started to receive emails saying that the application is saying "Cannot download the application. The application is missing required files. Contact application vendor for assistance." After clicked view details, I found this:+ Downloading file:///C:/Users/myuser/Downloads/Browser.application did not succeed.I was confused, the .application file is not in Downloads, its supposed to download it from my website. And if I were to open my project on a computer with it already installed, it won't check for updates - it opens really quick without the "Viewing Application Requirments" window.
View 1 Replies
Jul 7, 2011
I recently had to format my PC, So I moved my project files and build files to my External Hard Drive, and continued to work on my project..I started to receive emails saying that the application is saying "Cannot download the application. The application is missing required files. Contact application vendor for assistanc
View 2 Replies
Jan 10, 2012
i have this application, that creates various custom AppDomains, each app domain executes a assembly and its dependencies, like a plugin, a separated assembly, that manipulates database, own resources, etc.
the application runs fine for a while, but suddenly, it locks up... the process does NOT die, it just freezes, i ran a remote debugger on top of it, on the thread window i can see EVERY thread, they are with the status "running" (not "thaw") but, in the same place, not executing. i can pause and run the debug, and it remains in the same place. there are NO locks, synlocks, monitors, on the code and the code for loading the appdomains is very simple, no big deal on it. like i said, its working, but after a while, it locks up. Any ideas on this environment?
View 1 Replies
Jun 11, 2009
I've been cloning my objects using serialization for awhile, and typically its been quick, at least for my purposes. After a series of updates to these objects, however, now the serialization process is much slower. Trial-and-error has so far failed to pinpoint the cause. Some of the added elements to my object are:
1.binding lists
2. an inherited dictionary class
3. more internal references (the object is actually group of nested objects, and these internal objects have more references to each other than before)
I have been careful to avoid/eliminate references to external elements when cloning, as that can lead to a cascade of extra cloning. So I think the problem is with the object structure itself. This is my serialization routine:
Friend Function CloneObj(ByVal obj As Object) As Object
If Not obj.GetType.IsSerializable Then Throw New Exception("Object not serializable")
Dim bf As New System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
[code]....
View 4 Replies
Sep 23, 2011
I have a .net application that uses customerrors web.config module to display meaningful messages for errors. It works without any issues for 500 errors/exceptions caused by non-ajax and ajax components (updatepanel). However, in a scenario where updatepanel's asynchronous request times out, there is no error raised at all. I was able to see the timeout in firebug and come up with a solution that would at least display the error message as an alert and then redirect the user to the 500 error page using javascript but it's not quite doing what the rest of the application does in case of an unhandled errors like these. I basically just want everything to go through "LogEvent" mechanism so based on the severity of the error, it does the necessary work.This 500 error page doesn't have anything in the Server.GetLastError() for these timeout scenarios. Is this an expected behaviour? Can it be changed so I do have access to these timeouts in Server.GetLastError() OR maybe just run this error through "LogEvent" mechanism? Is there a better/more graceful way to handle this issue?
Below is my code to give you an idea, not exactly what I have in my application but pretty close.
Web.Config
<customErrors mode="On" defaultRedirect="~/Errors/ErrorUnknown.aspx" redirectMode="ResponseRewrite">
<error statusCode="500" redirect="~/Errors/Error500.aspx" />
</customErrors>
[code]....
View 1 Replies
Feb 6, 2009
i tried updating my application on a vista home basic laptop. i get "myapp.exe has stopped working" then i restore back to the old version, it still give the same error. I am sure the old version is working because I tested it before updating it.
View 2 Replies
Apr 18, 2012
I went to debug my program as usual using F5 within VS 2010 and suddenly the contents of my menubar had all gone - the text and icons!
how to get this back? Obviously this is mega frustrating for me as it has taken ages to build. Stupidly, I only backed up the code and not the actual files.
EDIT: The icon files in question are in my resources folder and they are still there - just not appearing in the menu!
View 2 Replies
Jan 23, 2010
How can i stop the same image from been selected twice from my image list
[code]...
Im using this so randomly select an image and place it into a picturebox (box_1)I have 22 boxes and 22 images , how do i stop an images appearing twice ?
View 27 Replies