I have been seeing a window pop up with this error message every time I start my system "Generic Host Process: Application error - [ Memory Address ] referenced memory at [ Memory Address ]. The memory could not be 'written.'" even after I removed a trojan W32.Spybot.ATEW. Regular scans by Symantec AV and also Trojan Remover didn't report any malware. I searched for SVCHOST.EXE and I found this prefetch in %SystemRoot%\Prefetch
SVCHOST.EXE-3530F672.pf
I deleted it and rebooted my system. The error has disappeared.
For all kind of memory related problems for any of windows OS applications like svchost.exe, regsvr32.exe, etc., you can follow this article to resolve it. Say, if you have cleaned your system of Trojans and Viruses, you must also check the prefetch folder under WINDOWS directory for the file names that have similar file names as the application name displayed in error window. If you find any, its recommended to delete these files and reboot the system.
Tuesday, December 15, 2009
Sunday, June 14, 2009
Installing and Configuring apache flood on CentOS
I have often found that installing flood on 64 bit machine with CentOS fails.
you can follow these simple steps to install flood on your system
Download flood from
svn co http://svn.apache.org/repos/asf/httpd/flood/trunk flood
or
Browse to http://www.apache.org/dyn/closer.cgi/httpd/flood/ and download from a mirror
If you want to install on remote machine you can also
wget http://apache.mirror.facebook.net//httpd/flood/flood-0.4.tar.gz
untar the compressed file where it is downloaded on your system by issuing the following command
[root@myserver] tar zxf flood-0.4.tar.gz
dowload apr-1, and apr-1-util from http://apr.apache.org/download.cgi
wget http://apache.opensourceresources.org/apr/apr-1.3.5.tar.gz
wget http://apache.opensourceresources.org/apr/apr-util-1.3.7.tar.gz
untar both apr files as it was done for flood
[root@myserver] cd apr-1.3.5
[root@myserver] ./configure
[root@myserver] ./make
[root@myserver] ./make install
and now for apr-1-util
[root@myserver] cd ../apr-util-1.3.7
[root@myserver] ./configure
[root@myserver] ./make
[root@myserver] ./make install
after installing both apr and apr-util flood can be compiled and installed; flood is built on top of these utilities.
[root@myserver] cd ../flood-0.4
[root@myserver] ./configure --with-apr=/usr/local/src/apr-1.3.5/apr-1-config --with-apr-util=/usr/local/src/apr-util-1.3.7/apu-1-config
[root@myserver] ./make
[root@myserver] ./make install
Optionally you may have to get a shell script from http://linux.derkeiler.com/Newsgroups/linux.redhat/2005-03/0373.html if at the time of configuring you get errors like x86_64-unknown-linux-gnu': machine `x86_64-unknown' not recognized
Happy Flooding!!!
you can follow these simple steps to install flood on your system
Download flood from
svn co http://svn.apache.org/repos/asf/httpd/flood/trunk flood
or
Browse to http://www.apache.org/dyn/closer.cgi/httpd/flood/ and download from a mirror
If you want to install on remote machine you can also
wget http://apache.mirror.facebook.net//httpd/flood/flood-0.4.tar.gz
untar the compressed file where it is downloaded on your system by issuing the following command
[root@myserver] tar zxf flood-0.4.tar.gz
dowload apr-1, and apr-1-util from http://apr.apache.org/download.cgi
wget http://apache.opensourceresources.org/apr/apr-1.3.5.tar.gz
wget http://apache.opensourceresources.org/apr/apr-util-1.3.7.tar.gz
untar both apr files as it was done for flood
[root@myserver] cd apr-1.3.5
[root@myserver] ./configure
[root@myserver] ./make
[root@myserver] ./make install
and now for apr-1-util
[root@myserver] cd ../apr-util-1.3.7
[root@myserver] ./configure
[root@myserver] ./make
[root@myserver] ./make install
after installing both apr and apr-util flood can be compiled and installed; flood is built on top of these utilities.
[root@myserver] cd ../flood-0.4
[root@myserver] ./configure --with-apr=/usr/local/src/apr-1.3.5/apr-1-config --with-apr-util=/usr/local/src/apr-util-1.3.7/apu-1-config
[root@myserver] ./make
[root@myserver] ./make install
Optionally you may have to get a shell script from http://linux.derkeiler.com/Newsgroups/linux.redhat/2005-03/0373.html if at the time of configuring you get errors like x86_64-unknown-linux-gnu': machine `x86_64-unknown' not recognized
Happy Flooding!!!
Friday, June 05, 2009
Tuesday, April 14, 2009
Calling static class methods with uasort
class Testuasort
{
static function mysort($a, $b)
{
if ($a[0] == $b[0])
{
if($a[1] == $b[1]) return 0;
return $a[1] > $b[1] ? -1 : 1;
}
return $a[0] < $b[0] ? -1 : 1;
}
static function sortOnfield($narr)
{
uasort($narr, array(self,'mysort'));
return $narr;
}
}
?>
Further reading at http://bugs.php.net/bug.php?id=14104&edit=1
Labels:
calling static class functions,
static class,
uasort
Friday, March 27, 2009
Configure failed for xml/expat , apr-util
On cent-os, redhat, fedora:
yum install expat-devel
yum install apr-devel
On ubuntu, debian
apt-get install libexpat1-dev
apt-get install libapr1-dev
and then configure your application
Subscribe to:
Posts (Atom)