473,378 Members | 1,489 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,378 software developers and data experts.

Small C program to exclude bad RAM address?

OS: Windows XP Home SP2
CPU/Ram: Mobile AMD Duron 4, 1GHz / 256MB
System Manufacturer: Compaq Presario 730us

Using windiag.exe to test my RAM I get a consistent error for the
following address: 0b5d9270. The system returns the wrong value, e.g.
expects value f7f7f7f7 and instead gets f7f7e7f7. This RAM is on the
motherboard and it's about as expensive to replace it than to buy a
new computer.
Is there any small program that could be written so as to
reserve/exclude this specific RAM address at boot so that it's not
used? Unfortunately I know little programming ...
Somebody suggested an approach via C that may have some of the
following lines (but didn't elaborate more). Does this approach have
any chance of success?
char far *pointer=(char far *) 0x0b5d9270; /* pointer to address*/
or one could point to the previous address 0x0b5d926f

and then try from there (not sure how because the following functions
transfer memory from pre-established places)

#include "malloc.h"
#include "stdlib.h"
#include "stdio.h
void main(void){

char far *pointer=(char far *) 0x0b5d9270; /* pointer to address*/
/* char huge *pointer; - original code that asks from a
pre-established place*/
if ((pointer=halloc(1,128000))==NULL {
printf("allocation error -aborting");
exit(1);
}
/* do not free memory*/
/* hfree(pointer); */

}

Program should be called and left resident as a service or driver
during boot.
THANK YOU very much for your response, I really appreciate it.

Juan
Jul 22 '05 #1
1 2053
JuanPedro wrote:
Using windiag.exe to test my RAM I get a consistent error for the
following address: 0b5d9270. The system returns the wrong value, e.g.
expects value f7f7f7f7 and instead gets f7f7e7f7. This RAM is on the
motherboard and it's about as expensive to replace it than to buy a
new computer.

Use memtest86 which is known to be the best (and free) memory
diagnostics software:
http://www.memtest86.com
In case of memory chip problems it will provide you with the decimal
memory address of the problem.
Then you should change the particular memory chip (and not the whole
memory) of your system.


--
Ioannis Vranos

http://www23.brinkster.com/noicys
Jul 22 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: xxnonexnonexx | last post by:
I am looking to do some email validation and many of the scripts I've located online are great basic email validators. They check to see that the email address is something along the lines of...
1
by: DOTNETGUY | last post by:
How can I exclude a web form from Forms Autentication, For example lets say I need to redirect to a web form if the ip address of the client is not in my list. I cannot redirect to my error display...
5
by: Bill Cunningham | last post by:
Can a small C program it put at int 19 and look at 0x7c00? This may or may not be considered a C question I guess. Or is C too small to reside in MBR? Bill
2
by: Arsen V. | last post by:
Hi, How to exclude the App_Data directory from Visual SourceSafe? It appears that Vs 2005 automatically adds the App_Data directory with the large binary MDF and LOG files to the Visual...
169
by: JohnQ | last post by:
(The "C++ Grammer" thread in comp.lang.c++.moderated prompted this post). It would be more than a little bit nice if C++ was much "cleaner" (less complex) so that it wasn't a major world wide...
8
by: barcaroller | last post by:
Is there a recommended method of parsing program input parameters/options in C++ programs? The three methods that I know of are: - C's getopt() and getopt_long() - GNU C++ GetOpt class -...
5
by: rasmidas | last post by:
I have written a file as below: #include<stdio.h> #include<string.h> #include<stdlib.h> int main() { char* items; int i; for(i=0;i<2;i++)
4
by: HowHow | last post by:
Using Access 2000. I need to group the address by suburb then by street name in my report. Two major problems here: 1. Unit number has the word "Unit" before number 2. Semi detach house has "a"...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
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...

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.