Visual C++ debug


Gaia

 

Posted

i was sorting out my old pc yesterday which used to run coh/cov however it keeps coming up with a fault in the VisualC++ debug and i'm not sure how to fix any idea please

Here is the message received:-
Debug Asseration Failed!

Program: C:\Program Files\City of Heroes\CityofHeroes.exe
File: dtoxtime.c
Line: 65

Experession: ((( yr - 1990)>=_BASE YEAR)&&(( yr - 1990)<=_MAX YEAR))

For information on how you program can cause an asseration Failure, see the Visual C++ documentaion on asserts.

(Please Retry to debug the application)

Retry pressed here is next message:-
CityofHeroes.ex.exe has generated errors and will be closed by windows. You will need to restart the program

An Errror Log has been created.


 

Posted

Looks like someone got careless and released some debug version code.
Are you trying to run CityofHeroes.exe directly? - I thought this would only run from the updater CoHUpdater.exe

Also if you were running something like herostats before there is a possibility it may be that rather than CoH. I'm at work atm so cannot check filenames.

Possibly your best bet would be to reinstall - if its an old pc that you haven't played on in some time it will probably need to update most files in any case.


Mind of Gaia lvl 50 Defiant's first Mind/Storm 'troller.
Deadly Doc 50 Dark/Dark Corr
and lots more on Pinnacle,Union and Defiant

 

Posted

[ QUOTE ]
Looks like someone got careless and released some debug version code.
Are you trying to run CityofHeroes.exe directly? - I thought this would only run from the updater CoHUpdater.exe


[/ QUOTE ]No i'm Running from updater information i have written is exactly what i see on error screen
[ QUOTE ]
Also if you were running something like herostats before there is a possibility it may be that rather than CoH. I'm at work atm so cannot check filenames.

[/ QUOTE ]I am not running any other programs before initialising updater
[ QUOTE ]

Possibly your best bet would be to reinstall - if its an old pc that you haven't played on in some time it will probably need to update most files in any case.

[/ QUOTE ]I have reintstalled twice and do not quite fancy another 9 hour download thanks for suggestion , However i might of found a possible reason for this is the whole pc is infected by ton of Root files and malware spyware etc though i can not seem to remove the Root files to stop them growing more. So any suggestion on free programs to do this or manually do that i'd appreciate it so my partner can finally play Coh/Cov with me


 

Posted

Try using Malwarebytes from here ....http://www.malwarebytes.org/ ... its free.

I had some Vista Antivirus 2008 trojan alert thingy last week and this removed it quickly and easily and I have had no more problems since.


@Rhi @Rhi.
Proud Member Of The Forum Cartel, For Smurfs
www.murders-unlimited.co.uk

 

Posted

I seem to remember a similar error if the folder into which CoH has been installed has an incorrect date. I'll have a look and see if I can find the info.

Edit:

Found it:

http://uk.boards.cityofheroes.com/showfl...true#Post835683

[ QUOTE ]
There was an explanation on this one a while back from one of the US devs

[ QUOTE ]
It looks like we've got this one narrowed down. As Houtex noted the issue is specific to the location that CoH/CoV has been installed to. In short, the folder has been given a vastly incorrect creation date (like the year 2101 or the like) that is causing the assert. Please note that this may not be the City of Heroes directory itself, but rather a parent folder. For instance, in one case the user's entire Program Files directory had an erroenous creation date which led to the assert.

While formatting and reinstalling will correct the issue (as the file creation dates will no longer be in gross error) you should be able to address the problem by using a third party utility to reset the date stamp on the affected folder(s). You may also be able to circumvent the issue by reinstalling CoH\CoV to a different location.

I'd also like to offer a big thank you to all those that were working with tech support to narrow down this issue. Without the error logs provided by you, it would have taken even longer to track down the problem.

Thank you all very much for your patience and understanding in this matter.

[/ QUOTE ]

if that's the problem in your case, make sure your date and time are set correctly and then either reinstall CoH to a new directory or use this to modify the properties of the relevant folder. Just bear in mind that there's always a chance of messing up something on the PC when changing file/folder attributes - don't go messing around with the windows directory or anything like that.

[/ QUOTE ]

As well as the above two options for fixing it you could:

(Assuming the game has been installed to a folder "City of Heroes" which has the incorrect date)

-make sure your system date is correct
-rename the "City of Heroes" folder to "City of Heroes_old" or similar
-create a new "City of Heroes" folder
-copy everything from "City of Heroes_old" to "City of Heroes"


Octavian Vanguard
@ohmsEU and @ohms 2

Badging character: Bimble on the Union server, Badgehunter.com and City Info Tracker.

 

Posted

[ QUOTE ]
I seem to remember a similar error if the folder into which CoH has been installed has an incorrect date. I'll have a look and see if I can find the info.

[/ QUOTE ]
Yes, I think that was the cause.

To the OP - see if the CoH directory or any of the directories above it (e.g. Program Files) has a horribly wrong date.

If the CoH one has, try creating a new folder, moving all the CoH files into it, then deleting the original (empty) CoH folder and renaming the new one to take the place of the old one.

If "Program Files" is wrong you'll probably needed an applet to refresh its datestamp - let us know and we can probably find something safe for you to download.

Edit: @Ohms - Oi! Sneaking a preemptive fix in by editing an earlier post! Tsk!


 

Posted

This appears to be the reason i just checked the parent folder to coh and it was created in 2099 nice gross error trying a manual fix as i dont fancy 9 hour downloading the game again for my partner


 

Posted

There shouldn't be any need for downloading; just move the CoX folder to somewhere that isn't under that parent folder, change the Updater shortcuts to point to the new location, and try it from there.


 

Posted

Yeah i figured i need to make a new folder or alter Program Files date some hoe so i made new folder Game Files with correct date and presto no more Visual C++ fault , lol shortly after though i had a problem with my graphics card which i thought was wierd because it is geforce fx 5500 just a smidgen under cov recommended and above cox miniumum . its sorted now i found out was causing the graphics error in the end it was my drivers (i used this fancy Driver Detective which downloaded the most uptodate drivers which caused the error , had to uninstall them to get an old driver)