@sepp2k
thats a really helpful explanation. cleared my views a lot :) and yes i now get why the crashes occur.
thats a really helpful explanation. cleared my views a lot :) and yes i now get why the crashes occur.
i modified the code a bit further, with the for() loop being
for(i=0;i<10 && ip_num!=0;i++)
{
acc[i]=(ip_num % op_base);
ip_num=ip_num/op_base;
printf("index: %d \n",i);
if(ip_num==0)
break;
if(i==9) {
puts("array acc[] full");
break;
}
}
now, if i put 20,000 decimal, and ask it convert to binary, ie ip_num=20000, op_base=2, then index i goes upto 9, and then the "array acc[] full"
statement is printed, and all is ok. that is, the code terminates as is should, without any unexplained crashes or anything.
but without these 3 lines,
if(i==9) {
puts("array acc[] full");
break;
the execution crashes again when i ask to convert 20000 dec to binary.
I only put up these lines after the previous experience with the crashes being cured by a if()-break()
statement. i do get a feeling that junk values are taken up by either acc[] or the index i, but exactly which one, where and how that i dont understand yet.
any help on this would be awesome :)
thanks again
somjit.
Yeah sorry my wording may have been a bit misleading. The variable i does have a value of 4; however, acc[i] contains a junk value. So what I guess I should have said is that your array "acc" has a junk value at index i and anything past that (since it is not being set anywhere).
and perhaps that junk value was creating problems when the code went to the line printf("%c",base_digits[acc[i]]);
and base_digits[] was going out of bounds.
but i still am in doubt as to why that should happen, maybe something's going on underneath, i really cant understand. when break() occurs, i assumed that it would be a clean break(), but clearly it isnt turning out so, and acc[i] is catching a junk value..
just dont understand why it was behaving like that...
and its making my head a less happier place.. :/ :(
thanks a lot :)
i changed the for() loop like u said and everythings working as it should :)
new for loop:
for(i=0;i<9 && ip_num!=0;i++)
{
acc[i]=(ip_num % op_base);
ip_num=ip_num/op_base;
printf("index: %d \n",i);
if(ip_num==0)
break;
}
however, when i wrote the 1st (faulty) code, i assumed it would work in the following manner when ip_num becomes 0 :
1) for()
loop starts, i(lets suppose it was 3 in the prev iteration) gets incremented (thus i=4 now)
2) if()
checks ip_num, and ip_num is 0; and hence break executed
3) exit from loop, with i=4
4) this i=4 goes into next for()
loop.
however this led to the crash while running the code, and as u said
the first for() loop leaves i at a an index with a junk value since it increments then checks to see if ip_num is 0.
i dont understand why does i
get a junk value instead of 4(assumed above)?
would be great if u could help me out again :)
thanks once again
somjit.
when i give any input, a window appears saying "a problem has occured, windows needs to close"
i cant understand what im doing wrong here.
any help will highly appreciated :)
this is my code:
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main()
{
int ip_num,ip_base,op_num,op_base,i=0, acc[10];
char base_digits[16] = {'0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F'};
printf("enter the input number:\n");
scanf("%d",& ip_num);
printf("choose the base to convert to:");
scanf("%d",& op_base);
for(i=0;i<9;i++)
{
if(ip_num==0)
break;
acc[i]=(ip_num % op_base);
ip_num=ip_num/op_base;
}
for(i;i>=0;i--)
{
printf("%c",base_digits[acc[i]]);
}
}
thanks caperjack i did read a few wiki links, but still was a bit confused coz it said SO many things there... just wanted to be sure about it. that takes care of my basic queries i guess but one more i wanted to ask is that if i upgrade my pc in the future, and buy a mother board with multiple gpu slots( ie multiple PCIe slots) then can i use SLI(assuming that motherboard will support SLI) with this radeon 6670? i read that u need a SLI version gpu along with a normal gpu, and connect them together to run the two cards as one. can that be done with Radeon HD 6670?
i wrote sli in place of crossfire here!!!! :sad::X really sorry abt that...:(
what i wanted to say is that if in the future i upgrade to a crossfire compatible motherboard, then can i connect my Radeon 6670 with another (crossfire edition) card and run them together? i read something like although the cards need not be exactly the same model(as is the case with SLI) but they have to belong to the same family. this is the link to from where i read it .
The problem is that i dont understand what "belonging to the same family" implies here..
thanks caperjack :) i did read a few wiki links, but still was a bit confused coz it said SO many things there... just wanted to be sure about it. that takes care of my basic queries i guess :) but one more i wanted to ask is that if i upgrade my pc in the future, and buy a mother board with multiple gpu slots( ie multiple PCIe slots) then can i use SLI(assuming that motherboard will support SLI) with this radeon 6670? i read that u need a SLI version gpu along with a normal gpu, and connect them together to run the two cards as one. can that be done with Radeon HD 6670?
i was reading on the internet that the HD 6670 was a PCIE 2.1 card, but the slot on my motherboard is PCIE 1.0 . can i use this slot for the HD 6670 card? i read somewhere that the PCIE 2.0 slots are backward compatible with PCIE 1.0.??
the 6770 model required a 75 watt 6 pin connector. this one doesn't. Also, i read that for the card to perform like it should, the PSU should be able to provide continuous power on its +12V rail. but, as mine came with the cabinet, i don't have any specifications of how much power it can actually give... is there any simple ways i can find that out?? some software maybe?? or with multimeter??
im planning to buy a graphics card.. as of now, i have none. iv seen the specs of ATI radeon HD 6670 model, and i like it... but a few queries remain.. mainly compatibility oriented.
my system:
CPU- 3.2 GHz AMD Athlon X2 250
2 GB DDR2 800 MHz ram
inbuilt graphics- 256MB GeForce 7025 / NVIDIA nForce 630a (that's what speccy tells me!)
500 watt smps,( nothing extraordinary, just the standard stuff that comes with the cabinet.)
can i run this graphics card on this system? my main cause of worry is all those GDDR5 stuff that i see in its spec sheet. is it that these(the GDDR5 graphics cards) need DDR3 memory to run or something?? or can i run them with DDR2 memory as well?
Really confused :( please help
thanks a lot :)
somjit{}
Print out all the logs to show him what HE caused.
even if he was here, i would bet anything that he wouldn't understand a word of those logs!!
Just be careful is all I can tell you. Save your money and get a new computer with LEGAL software on it and get the paper work to prove it!
thanks for the support. really appreciate it.:) i'll do that. :)
goodnight maam :)
thanks again. :)
its too late for that, he's off to Bangalore. anyways, it seems i just have to be extra cautious about everything from now on. i'm doing a CCNA course ( you know, the one's from cisco) on top of my engineering. let's just hope it helps me buy a laptop soon enough.
right now, its 2:15 in the morning here in Kolkata, and going to "X-men First class" tomorrow in the noon show with the college gang. Really need a break from all these head-aches my computer is giving me. Maybe the movie will do some good. :)
advice taken, whole-heartedly. full scan complete, one trojan was detected, which kaspersky has deleted. should I post that log here?
i understand each and every word. i will do that. and in the mean time, i ran MBAM scan on that F:\ drive. no infections found... im running kaspersky scan, going on at 82%, and no infections found till now.. the part with the infections already scanned. all i can do now is hope....
Lord no, you aren't going to jail.
THANK YOU FOR SAYING THAT!!
and yes, he built the computer for me. as i said, most people get a pirated version for free around here, HE charged me 1800 rupees ( around $ 35) for this GENUINE COPY that he gave me. so i thought it was good!!
but, most guys here, and all of my friends included, get a pirated windows for FREE from the person they hire to assemble their machines. compared to that,35 dollars seemed a better option at that time. zero experience has its toll... and I'm feeling it now!! :( :(
this just keeps getting worse.... i'm not going to jail am I?? this whole year, i'v only gotten into more and more trouble with my computer!!! i just want some peace really....
that's what i paid for, 35 dollars for a copy of the original, that "works just like the original" as i was told...
It appears that your copy of Windows may not be legal, judging by the infected files found by MBA-M.
i was referring to this copy that you mentioned in one of the earlier posts.
the original was legitimate.
do you mean the original copy from which this guy made other copies? yes that was legitimate. you also said so in your previuos post that he has one or two original copies, from which he sold to us.
You DO need to update Windows XP to SP3 and you do need to update the Java to version 6 update 26. Otherwise your system IS at risk.
the java part is already done, but consedering my ripped off condition, any suggestions on how i can upgrade to SP3? :(
What HE did was copy the one HE purchased and sold THAT copy to you and likely others. If he paid $200 for it FROM Microsoft and then made copies and sold those to 6 people he got his money back and "ripped off" everyone he sold that to,
yeah, but i understood that after being "ripped off" ... i will have to buy a laptop next year, engineering's final year field-projects coming up... i'm gonna make these experiences count. i just hope my desktop stays with me at least till then... :(.
Buying a legitimate version of windows- that's another item added to my list of first-things-to-buy-when i get a job.....
the infection showed by the previous mbam log was on my F:\ drive, from the folder had a copy of the windows-xp cd that the computer guy had given me. i deleted that copy. and then ran a scan.
i would get a genuine COPY of windows for $35 dollars.. that was the deal the "computer guy" made. i was happy to oblige...
(this i say to offer mental consoaltion to me more than anything else)
I deleted that copy of win xp that i had,which showed the infections, and ran a scan again, and mbam showed no infections.
and regarding being ripped off, well i know about keygens and stuff now, but when i bought this computer, i had no idea. i didnt even know what a genuine COPY of windows was supposed to mean. i gave more emphasis on the "genuine" part, than the "copy" part. that was more than 2 years ago. if i had known about all this then, would have just bought a laptop, comes with factory installed genuine versions of windows, and a lot less head-aches.....
the software wont install, its showing "installation failure: failed to copy files".....
and iv also installed the latest version of java.. but that was after the scans, so it didnt show up. the next post will have the log you requested...
yes the kaspersky antivirus was a paid commercial cd-in-a-box thing. ok i'll go check here... and the original problem was a sality infection. i dont use any p2p stuff, just installed lime-wire once to see whats all the fuss about file sharing is.. i have a way slow network to download much of anything using such programs. :( I'm no criminal ma'am, i don't do illegal stuff :( the guy who assembled my computer gave me the xp that i have. he even took what would be equivalent to 35 dollars for that..
getting really tensed right now... :(
I'll download the two anti-spyware softwares now... but i just thought i'd let you know, that the 1st time i ran MBAM scan, some error occured, and my computer restarted, but after that when i ran the scan, there wasn't any problem.
Your Java should be fully up to date. Current version is update 6 version 26.
i started learning java a few weeks back, and i got the jdk version 5. and jre 5 also came with it. you told me to install the latest jre, but will that have any effect on jdk-5 that i currently have on my computer??
You need to be sure you have correct settings in your browser. I am not certain yet which one you are using but for Internet Explorer
i've set my default browser to firefox, i never really liked internet explorer that much, but iv followed what you told me to do, and set those options for internet explorer.
coming to the scans, although i thought nothing would show up on any of those scans, MBAMshowed 8 detections... a bit worrying :(
here are the logs..
GMER ROOTKIT SCAN 1
GMER 1.0.15.15640 - http://www.gmer.net
Rootkit quick scan 2011-06-26 09:45:48
Windows 5.1.2600 Service Pack 2 Harddisk0\DR0 -> \Device\Scsi\nvgts1Port2Path0Target0Lun0 WDC_WD50 rev.05.0
Running: 9p8gyqhd.exe; Driver: C:\DOCUME~1\Somjit\LOCALS~1\Temp\uwroiaod.sys
---- System - GMER 1.0.15 ----
SSDT \SystemRoot\system32\DRIVERS\klif.sys (Klif Mini-Filter [fre_wnet_x86]/Kaspersky Lab) ZwEnumerateKey [0xAD75CED2]
SSDT \SystemRoot\system32\DRIVERS\klif.sys (Klif Mini-Filter [fre_wnet_x86]/Kaspersky Lab) ZwEnumerateValueKey [0xAD75CF6A]
Code \SystemRoot\system32\DRIVERS\klif.sys (Klif Mini-Filter [fre_wnet_x86]/Kaspersky Lab) FsRtlCheckLockForReadAccess
Code \SystemRoot\system32\DRIVERS\klif.sys (Klif Mini-Filter [fre_wnet_x86]/Kaspersky Lab) IoIsOperationSynchronous
---- Devices - GMER 1.0.15 ----
AttachedDevice \Driver\Tcpip \Device\Ip kl1.sys (Kaspersky Unified Driver/Kaspersky Lab ZAO)
AttachedDevice \Driver\Tcpip \Device\Tcp kl1.sys (Kaspersky Unified Driver/Kaspersky Lab ZAO)
AttachedDevice \Driver\Tcpip \Device\Udp kl1.sys (Kaspersky Unified Driver/Kaspersky Lab ZAO)
AttachedDevice \Driver\Tcpip \Device\RawIp kl1.sys (Kaspersky Unified Driver/Kaspersky Lab ZAO)
---- EOF - GMER 1.0.15 ----
GMER ROOTKIT SCAN 2
GMER 1.0.15.15640 - http://www.gmer.net
Rootkit scan 2011-06-26 10:32:41
Windows 5.1.2600 Service Pack 2 Harddisk0\DR0 -> \Device\Scsi\nvgts1Port2Path0Target0Lun0 WDC_WD50 rev.05.0
Running: 9p8gyqhd.exe; …
a few months ago, i was battered by sality, and was waiting for my friend's external hard disk to backup my data, and do a full format.
well, I've done all those things now, and have installed kaspersky 2011 internet security suite(the licensed commercial version).
Also, as per the instructions of PhilliePhan's read me before posting thread in virus, spyware and other nasties forum, I've downloaded atf, dds,GMER and MBAM, and i'll be running them after this post. hoping not ro see too much red in any of those scans :)
but, still, i want to make my computer as safe as possible, and i was wondering if installing any firewalls etc would help? I've read that having multiple security suites in one machine is really bad!!:S so consedering that i have all the above protections, should i install a firewall? if so, what should i install?
you guys saved me the last time, hopefully this time i wont be much of a trouble :)
thanks again;
somjit{}
its been a long time...
i wish i could comeback earlier but i couldn't.. the net provider's tower got hit by lightning!! most of the wires were burned..and the electricity carried through the wires burned the hardware of one of my neighbors pc as well. fortunately my internet cable line was disconnected from the pc! thank god!
i did reformat my computer,its working fine right now. thank you so much jholland, gerbil and crunchie for giving me the support:) right now im posting this from college, my 4th semester ended just a few days ago.. hopefully ill have net at my home soon. and then ill be back here at daniweb :)
once again, thanks a lot guys.
cheers :)
hi geomarine,
for a basic rig, cooling solutions and cabinet choice does not pose much of an issue, but for a gaming rig, where temperatures can get a bit on the high side, you should look for cabinets that offer better cooling. you could try out something the cooler master 690 series. heres a link to their coolermaster 690 advanced http://www.coolermaster.com/product.php?product_id=6638
also these high end gpu s require a lot of power, as well as an 6pin or 4 pin power supply, so when you go for the smps, be sure to check if it meets those requirements.
also, unless you have already decided on making an amd platform, maybe you could check out intels core i7 range. the reason being the x58 chipset on which their boards are based upon, they support both SLI and CROSSFIRE multi-gpu solutions. a bit of future proofing if you want to upgrade in the future.
happy shopping..
Holi, eh? What colour did you end up?
i could have been one of those blue men intel used to advertise their pentium 4 processors! :D although red ears and green palms might have let that job slip from my hands! :P
for otherwise it can be an adventure discovering the damage Sality has done.
on the bright side i did learn a lot of new things from the replies that you, judy, and crunchie had given. a bit more aware of the dangers that lurk out there. :) and @gerbil, thanks for giving me the time and posting on how sality works. really appreciate it.
as of now, im waiting for an external drive from my friend, once i get that, ill start the backup and reformat process.
thanks again for all the help.
somjit.
thank god i stil have a healthy add/remove list!! and thanks for the link to miekiemoes' blog... its quite a place to learn.
thanks again for still keeping up me.
make a back up BEFORE doing anything and do it manually.
how do i make a backup of the registry? and how do i restore it afterwards?
the AMD one offers better core clock speed as well as external bus frequency, and that to at a lower price. so better value for money. also, motherboards for amd chips also in general offer greater value for money than ur standard intel ones at this range of the budget. so if u want better value for money, i think AMD would be the better choice.
hi there katokato..
regarding this..
you can increase speed by having 2 hard drives and putting the swap file on another hdd and have the main os on a primary one.
so is that the same thing as putting your hard drives in a RAID config?
oh and that post was nice.. :)
thanks.
somjit{}
hi nosa :) welcome to the daniweb family.. and sure ull learn a lot here .. enjoy ur stay at daniweb :)
hi, iv come back with something iv been meaning to ask you guys,...
1.what are all these system volume information stuff? when i do the mbam scan, infections always seem to pop up at these locations.
and 2. somewhere in daniweb, i read that its a bad thing to use a registry cleaner:S why is that? that "advanced system cleaner" program that i had,it had a registry cleaner(and i used that a lot as well) and its very popular here, almost all my friends have this running on their machines. so no one really is ready to hear that it damages your computer to run a registry cleaner every other day.
Also, please use full word/sentence English.
its a bad habit i picked up constant texting, ill keep it in check.
i have to go to college today, tommorow is holi, the festival of colours (google it if u dont know what that is).. were gonna play holi at college today.:) ill be back as soon as i get home.
thanks a lot for ur support till now, hope u will be there for just a while longer till these last few steps are done. hopefully ill have a clean computer before long. :)
and..
happy holi jholland, crunchie, gerbil, and pp, and also to everyone here at daniweb :)
cheers :)
i read that. fortunately this link did load! okay i will do a reformat then, but since it attacks ..exe, .scr, .rar, .zip, .htm, .html. so thse files need to be deleted right? also as jholland said that there may be other files which may not be infected, but are carriying the infections with them. how do i detect them?
@ crunchie : thanks, i will check out that link ( if that loads that is.. ) i was hoping for something other than a reformat, but if its gotta be done, then iguess its gotta be done :(
I'm not a sir by the way, my name is Judy.
hehehehehe!!! :D :D :P
MR jholland - a big guy from (quite obviously) holland, wearing a white cap, and blue striped polo t shirt, (the type they give on farmville!) who also has a 2nd marriage to his laptop, :D instead of telling his kids bedtime stories, battling his way through aaaaalll those logs giving solutions to every next guy from around the world!!
(nothing less than a super hero!! ---> HOLLAND MAN!! :D )
thats the idea of u that i had in my mind!! :D
so i know something more than an industrious poster at daniweb?? if this is true.. this just made my day!! lol :D ( just fooling around sir, hope u dont mind:) )
Hopefully we can get yours cleaned up and safe for the future.
for(i=0;i<100;i++)
{
printf(" THANK YOU!! :) ");
}
hope i got the code right.. been nearly one year since iv written any C at all..
Just tell others what you are going through right now.
yup...
u know.. just a few posts back, u said " just a nice guy, very rare!" ..
hey, u people here at daniweb are just that!! :) showing the patience u have showed to me and tons of others here who had asked for help!! u guys are just an awesome bunch of people!! :)
totally delete anything you have downloaded using any P2P program
i didnt download anything using limewire, n i think its the only P2P program that i had installed. i say think because, ( this is really embarrassing ! ) i dont fully understand what a P2P program does actually, other than share files on the net..
#1 Limewire is "no longer".
yeah.. got to know that AFTER the install was finished!! i knew then n there it wasnt a very smart thing on my part to just CASUALLY try something out just coz i was hearing abt it. especially when u know its risky stuff!
"just a nice guy", very rare!
im finding it the hard way... though it could have been harder.. if u guys werent there, n if i had continued with my blissful ignorance of the mess iv gotten myself into!
P2P is VERY Dangerous.
i am gonna spread that message... maybe ill help out a few ignorant ones like me..