I keep getting the following error in XP only (not Vista or Windows 7) Attempted to read or write protected memory. This is often an indication that other memory is corrupt The interesting thing is that the error is on a line that basically just creates a bitmap:
vb
Dim B as New Bitmap(400, 300)
This is in a timer and doesn't always happen the same time - eg sometimes it happens in 2 seconds sometimes it gets to 10 seconds - the interval is 50ms?
I�ve had a problem iwht my app for some time now. It�s very slow and above all it takes forever to startup. I�ve been adressing som issues that has to do with the database behind it.Recently I noticed that the app is starting an instance of excel, which seems to be what�s taking it so long in the starting process. The app is using access as db, and the db has some linked excelsheets. The app is also running some code in excel, but it�s starting, and terrminating, separate instances for that.The linked excelsheets are also "live-linked" to another app (third party), fetching real time data via DDE I think.
I have coded in the older version of VB for years (VB6 and prior) and Recently I just began learning VB 2008. In my current project I made a mistake in a form name frmAuthors and so far I am unable to recover. The problem is that I tried to have the form inherit a class I had created (first mistake). The IDE generated a popup message stating the error and provided the option of changing from inheritance from system.windows.forms to the class I had created. I said yes just to see what would happen (I was bored so I was up for something new) and that's when the form got corrupted.Is there a way to let frmAuthors go back to recognizing itself as a form object and not a member of the object I had created?
I have a single user app that I wrote and have been using for more than a year that uses an Access 2003 database. Today, out of the blue, I started getting a DB concurrency violation whenever I tried to update one particular table in the database. After trying to troubleshoot what the problem might be, I just deleted that table and recreated it and the problem went away.
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.
I have had a user of my VB.net web app complain he keeps getting an intermittent error message, causing him to crash out of the system.
Stack Trace: [FormatException: Invalid character in a Base-64 string.] System.Convert.FromBase64String(Strings) +0 System.web. UI. LosFormatter.Deserialize(String input) +25
[code]...
It appears from the error message that the viewstate keeps becoming corrupt (see screen-dump below), but I don't understand why. He claims it happens every 2-3 minutes, but I've used the system a lot and have never experienced it.I should mention too that he is using the web-app in a very "non-standard" way. To achieve optimum speed he's actually using remote desktop, to connect to our server directly, and running it as localhost. ("Madness!"- yes, I know. I didn't make the decision.) That may not be relevant of course.
I am working on hex values of a file.Now to test it i delete single byte and then try to write the file using the remaining bytes.Well the file gets corrupted but still the file is constructed.
I'm transferring from one FTP (a Dev site) to another FTP (a Test site). Spare me the thoughts of changing this process. In any case, here's my method:
Public Function TransferFile(originalFile As String, destinationFile As String) As String Try 'FileStream for holding the file Dim uploadRequest As FtpWebRequest = WebRequest.Create(destinationFile) uploadRequest.Method = WebRequestMethods.Ftp.UploadFile [Code] .....
This works perfectly for ASPX files and their .vb code behinds. When we try to transfer .DLL files, they show up on the server as 0 bytes, and sometimes actually transfer. The problem is that, despite being the same size as the original, they act as if they are corrupt.
I am working on which is displaying "Live" CPU stats for a remote Server.I am creating a SWbemRefresher and everything works great, for about 2 minutes. Then I start getting "Odd" results, almost like the objects in it get corrupt.Let me explain. So I create my Refresher like this and iterate through each item in the collection, writing the results to a database:[code]....
The above works fine but after I while I start seeing strange results.So I may see things like 5 processes with the same ProcessID (which is impossible, or so I beleive?).Processes with apparently the same CPU usage which I know is incorrect.I also see processes with the incorrect ProcessID, so for example I may see ProcessID 123 and Process name CALC and then all of a sudden I will get ProcessID 123 process name winlogon, so the results are out of sync with each other.Attached is an example screenshot of what I mean which only shows two processes, but it does seem the longer I run the code (so say for 5 minutes) the more processes appear like the screenshot.
My thoughts are - the objRefresher.Refresh() does not finishfinishes half way through the loop, resulting in "skewed" results. I dont konw how I can wait or check to see if the Refresh has finished?I have tried everything I can think of and it doesnt make sense to me. Maybe a fresh pair of eyes will spot an obvious mistake .The target server is a Windows 2003 x86 SP1 box, the code is running on a Windows 7 x64 box.
Basically, we have an application which batch creates a large amount of files (pairs of PNG plus ASCII). The file count can exceed the one million.The first time the application ran the results were quite disappointing. The files get stored in folder structures of maximum 2000 files per folder. The tree depth gets only to two levels (root + packs folders). So the results would be stored in folders like "pack1","pack2"..."packn" each containing no more than 2000 files (1000 pairs in essence).
So getting back to the results, what happened was that although the application reported over 1.4 million files written, the results were that files were missing from the filesystem and others were corrupt (PNG cant be read and ASCII were blank filled with spaces).The speed that the files were written was not anything great (about 7 files per sec) and the total size ranged from 160K to 1.5M (rarely). The PNG images are 2000x2000 in size although I doubt it has anything to do with my problem.
Everything is done in pure .NET (image and ascii generation).The OS that has been tried was Win 2000 Advanced Server, Win 2003 Server plus XP Pro. The hardware ranged from Dual Core Workstation to high spec servers. The irony is that on the XP system the number of corrupt files was quite low where on the other two all hell broke loose. There were event logs written stating Event ID 2021 on the Win 2000 system and Paging faults on XP, which lead me to the next approach.
We wrapped the code to do an Application.DoEvents every second and refresh various statistic UI components. We obviously added Stream.Flush().Plus we added code to check the files (re-read them) once they are written. Even added "WriteThrough" option to avoid the OS cache! The result was stuggering as no errors were report yet the NTFS table again got corrupted!Now we inserted Thread.Sleep(100) after writing and then reading to confirm the file. Obviously this is slowing down the process but hope to have more stable results.
Reading and article about Event ID 2021 we saw it was suggesting to modify registry values, but the IT dep did not wish to accept this as they believe it is an application error.In pseudo code, here is more or less what is done:
<try> <Create Image in memory> <Open stream to filesystem>
Having installed the IE9 update a couple of days ago, I'm left in the same boat that I found myself in when I tried the IE9 RC. Namely, documents printed via .Print() from a WebBrowser control in .NET no longer print correctly. What the user sees in screen is vastly different from what comes out of the printer. There will be missing characters and whitespace discrepencies virtually every time.
Here is an example:
The top is what inevitably comes out of the printer when the bottom is what the user sees on screen (outside of the pixelized part of the name & address--that was me).
I am working with Visual Studio Pro 2008, and trying to build a Visual Basic project for my College Course. The coursework is not my question, it's not difficult just time consuming. My problem appears to be much deeper, and is certainly causing me to take way more time than I should need to debug and completely random occurence. I don't mind posting the source code but it is rather vast, made up of 23 objects, each ranging from 200-700 lines. I am running Windows 7 Pro x64, and since I need Jet4.0 DB Engine or some such I had to set the compiler to target x86 CPUs. I have my suspicions, and as queried in my topic, I was wondering if VB Designer code can become corrupt or cause funky errors?
The layout I have is something like this:
frmMain
-frmCustomer
--frmAddCustomer
--frmUpdateCustomer
-frmContract
--frmAddContract
--frmUpdateContract
Each steps forward using the ShowDialog method. Initially I thought it was a fluke, but I had frmAddCustomer open and when I closed it (the code simply does me.close, nothing fancy), it jumped all the way back to frmMain, skipping frmCustomer. At first I was baffled, I spent some 45 minutes trying to figure out why. No errors or exceptions, so it didn't seem to be anything wrong really. Since I was building this project in stages I loaded the same form from a previous stage and copied/pasted the new code in. This seemed to fix it, but it happened again after coding for another 30 minutes to an hour. It also isn't limited to that form, I have now experienced the same issue with frmAddContract & frmUpdateContract.
Im getting a problem with one of my programs I have made in visual basic.NET where it gives me a memory error when i debug the program in the IDE. the exact error is this: "Attempted to read or write protected memory. This is often an indication that other memory is corrupt". My program basically has a few forms with text fields on that get their text values from an access database on the same hard drive. Im wondering if im doing something wrong because my program just seems to eat up memory whenever it does anything. For example I have one form that has a combobox on it and when you change the drop down list selection it retreives a few strings from the database and puts them into the relevant text boxes, if you keep changing the selection then the memory usage (in task manager) just keeps going up and up. occasionally I get the error mentioned above when debugging but in my built version of the program it throws an exception everytime the memory usage gets past 49K.
Also I noticed when debugging in the "immediate window" frame I get the following message often:A first chance exception of type 'System. Invalid OperationException' occurred in System.Data.dll...Do I need to somehow be "releasing" the memory that is used to gather data once it becomes redundant?
Attempted to read or write protected memory. This is often an indication that other memory is corrupt. Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
QuoteSystem.AccessViolationException was unhandled Message="Attempted to read or write protected memory. This is often an indication that other memory is corrupt." Source="System.Windows.Forms"
Im designing a web browser and i continue to receive this error after going to about 3 websites it crashes with that error.
In properites>Application>"Startup form" combobox, in my VS VB.NET project, I see only 2 forms listed, while my application has 6 forms. Does this mean something is corrupt? I tried to make a new project, then copy only the old vb files into this new project. But still only those two (of 6) forms show up in the "Startup form" combo box.
I have two forms, Form1 and Form2. Form2 has a button to show OpenFileDialog. I call Form2 from Form1 by a button. My startUp Form is Form1. When i start debugging, i press my Form1's button to show my Form2, it shows, but when i click On Form2's Button to show OpenFileDialog it is giving me exception that
"Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
When i set my startup Form to Form2 and click Form2's Button to show OpenFileDialog then it shows!
I am getting the following error: "Attempted to read or write protected memory. This is often an indication that other memory is corrupt". i am using interop service.
I imported an app from vb6 to vb.net It works fine. It has one axmsflexgrid control. Now I want to add another axmsflexgrid control in the same app. I tried to copy and paste from one frame (groupbox) to another and got this error:
"An error occurred while processing this command: Exception from HRESULT:0x800A018A (CTL_E_GETNOTSUPPORTED)"
An inputs on how would I fix this? Or just make a new axmsflexgrid?
But i seem to have a bit of problem keep Getting Script Error on facebook and some games load Straight Away (Picture below)say i go back to me profile on facebook then wanna go back to the game i was just playing it does this Says Its Loading Config But it doesnt Its like it Doesnt want to load it again And here is a pic of the scipt errors i keep getting below.
i am new to this forum and new to VisualBasic. i have come across this problem as shown in the image i attached below. i not sure whether i accidentally pressed something or bug. i declared abcd as Integer, but it doesn't seem to declared properly. Why?
1) There is Declaration error in the "Error List"
2) Normally if we declare something and press Enter, a 'line' will appear
Im using VB 2008 and SQL Server 2008 as its database. But i have encountered this error in connecting to my database. An Expected error has occurred. Error Message: Count not load type [Code] What's seems to be the problem? or what this error message means.
I have a project that reference from leadtools 16.5, and after that, i want to run my project..i see am error like it " An error occurred creating the form. See Exception.InnerException for details. The error is: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. im using vb 2008 pro
I'm using Visual Studio Development Server (Visual Basic 2010) and it works fine. Now I've enabled NTLM Authorization because I want to test the website using a different user account. Now when I try to access the website I always get the following error page:
Server Error in '/' Application.
HTTP Error 403 - Forbidden.
Version Information: ASP.NET Development Server 10.0.0.0 .I'm using a test account which is a normal user within our domain. I've already set the access rights in my project folder to Full Access for this user but it does not help.
When I deployed my project on a server, in certain circumstances, I get an error page that indicates I should create a custom error page. I was wondering how exactly I would implement this custom error page the server asks for to give me a precise and helpful message or preferably, how I would get the error to just display on the main page?This is the error message I got below
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.
MS has done it to me again. VB express was working fine and all of a sudden I cannot see any properties or publish my program. I get the following error message when trying to view any property or publish. Anyone have any suggestions on how to fix this or what causes it. If I try to reinstall vb express I loose everything and cannot find the vb exe file anywhere on my computer.
An error occurred trying to load the page.The system cannot find the file specified. (Exception from HRESULT: 0x80070002)