0
101 Feb 07, 2013 at 18:53

im having an issue with microsoft visual studio 2010 ultimate,
when i build my project i get a load of problems as seen below
and when i start a program that i made a while ago that used to work, (so im not even in VS 2010 ) it is no longer working
does anyone have any idea what this might be?
i have been trying all kinds of things that i found on the internet, and even reinstalled VS 2010, but no luck so far

‘Template.exe’: Loaded ‘C:\Windows\System32\ntdll.dll’, Symbols loaded (source information stripped).
‘Template.exe’: Loaded ‘C:\Windows\System32\kernel32.dll’, Symbols loaded (source information stripped).
‘Template.exe’: Loaded ‘C:\Windows\System32\KernelBase.dll’, Symbols loaded (source information stripped).
‘Template.exe’: Loaded ‘C:\Users\Gebruiker\Downloads\devmaster_intro-to-c-tmpl83.00c_oct14\Debug\SDL.dll’, Binary was not built with debug information.
‘Template.exe’: Loaded ‘C:\Windows\System32\msimg32.dll’, Symbols loaded (source information stripped).
‘Template.exe’: Loaded ‘C:\Windows\System32\gdi32.dll’, Symbols loaded (source information stripped).
‘Template.exe’: Loaded ‘C:\Windows\System32\user32.dll’, Symbols loaded (source information stripped).
‘Template.exe’: Loaded ‘C:\Windows\System32\lpk.dll’, Symbols loaded (source information stripped).
‘Template.exe’: Loaded ‘C:\Windows\System32\usp10.dll’, Symbols loaded (source information stripped).
‘Template.exe’: Loaded ‘C:\Windows\System32\msvcrt.dll’, Symbols loaded (source information stripped).
‘Template.exe’: Loaded ‘C:\Windows\System32\winmm.dll’, Symbols loaded (source information stripped).
‘Template.exe’: Loaded ‘C:\Windows\System32\sechost.dll’, Symbols loaded (source information stripped).
‘Template.exe’: Loaded ‘C:\Windows\System32\rpcrt4.dll’, Symbols loaded (source information stripped).
‘Template.exe’: Loaded ‘C:\Windows\System32\ole32.dll’, Symbols loaded (source information stripped).
‘Template.exe’: Loaded ‘C:\Windows\System32\opengl32.dll’, Symbols loaded (source information stripped).
‘Template.exe’: Loaded ‘C:\Windows\System32\glu32.dll’, Symbols loaded (source information stripped).
‘Template.exe’: Loaded ‘C:\Windows\System32\ddraw.dll’, Symbols loaded (source information stripped).
‘Template.exe’: Loaded ‘C:\Windows\System32\dciman32.dll’, Symbols loaded (source information stripped).
‘Template.exe’: Loaded ‘C:\Windows\System32\setupapi.dll’, Symbols loaded (source information stripped).
‘Template.exe’: Loaded ‘C:\Windows\System32\cfgmgr32.dll’, Symbols loaded (source information stripped).
‘Template.exe’: Loaded ‘C:\Windows\System32\oleaut32.dll’, Symbols loaded (source information stripped).
‘Template.exe’: Loaded ‘C:\Windows\System32\devobj.dll’, Symbols loaded (source information stripped).
‘Template.exe’: Loaded ‘C:\Windows\System32\dwmapi.dll’, Symbols loaded (source information stripped).
‘Template.exe’: Loaded ‘C:\Users\Gebruiker\Downloads\devmaster_intro-to-c-tmpl83.00c_oct14\Debug\FreeImage.dll’, Binary was not built with debug information.
‘Template.exe’: Loaded ‘C:\Windows\System32\msvcr100d.dll’, Symbols loaded (source information stripped).
‘Template.exe’: Loaded ‘C:\Windows\System32\msvcp100d.dll’, Symbols loaded (source information stripped).
‘Template.exe’: Loaded ‘C:\Windows\System32\imm32.dll’, Symbols loaded (source information stripped).
‘Template.exe’: Loaded ‘C:\Windows\System32\msctf.dll’, Symbols loaded (source information stripped).
‘Template.exe’: Loaded ‘C:\Windows\System32\uxtheme.dll’, Symbols loaded (source information stripped).
‘Template.exe’: Loaded ‘C:\Program Files\Common Files\Spigot\Search Settings\wth157.dll’, Cannot find or open the PDB file
‘Template.exe’: Loaded ‘C:\Windows\System32\psapi.dll’, Symbols loaded (source information stripped).
‘Template.exe’: Loaded ‘C:\Program Files\Common Files\microsoft shared\ink\tiptsf.dll’, Symbols loaded (source information stripped).
‘Template.exe’: Loaded ‘C:\Windows\System32\version.dll’, Symbols loaded (source information stripped).
‘Template.exe’: Loaded ‘C:\Windows\System32\d3d9.dll’, Symbols loaded (source information stripped).
‘Template.exe’: Loaded ‘C:\Windows\System32\d3d8thk.dll’, Symbols loaded (source information stripped).
‘Template.exe’: Loaded ‘C:\Windows\System32\nvd3dum.dll’, Cannot find or open the PDB file
‘Template.exe’: Loaded ‘C:\Windows\System32\Wintab32.dll’, Cannot find or open the PDB file
‘Template.exe’: Loaded ‘C:\Windows\System32\Wacom_Tablet.dll’, Cannot find or open the PDB file
First-chance exception at 0x004160b7 in Template.exe: 0xC0000005: Access violation reading location 0x00000010.
Unhandled exception at 0x004160b7 in Template.exe: 0xC0000005: Access violation reading location 0x00000010.

#### 8 Replies

0
104 Feb 07, 2013 at 19:11

so it doesnt get up to actually running it? so you havent even got up to tracing yet?

0
165 Feb 07, 2013 at 19:20

The “Access violation reading location 0x00000010” is the real error message here. All the rest is just debugger status messages telling you about DLLs your program implicitly loads. Anyway, this kind of error is caused by a null pointer. In particular, a small numbered address like 0x00000010 often shows up when trying to read a field of a struct or class, where the pointer to the struct or class is null. You should be able to trace the program in the debugger and find the exact source line where it’s occurring.

If “Template.exe” is from the IGAD C++ tutorials on this site, I think there is a problem with them where if your video drivers aren’t up to date or it can’t initialize the graphics system for some reason, it produces an error like this. You might have to try stepping through the init code and seeing if any of the setup function return an error code or something.

0
101 Feb 07, 2013 at 19:21

okay i dont really know what you just said :)
microsoft visual studop starts up and i can program whatever i want, but when i start it this happens, and then i get a break at some point as you can see at the end of the list of errors
but im just using the template given in the tutorials here

http://devmaster.net…roject-template

and it used to work, nothing in the template has been altered

edit to reply to reed
it says no symbol found on one of the variables, so i figured it would be the symbol files?

0
101 Feb 08, 2013 at 10:56

small update, repaired microsoft visual studio 2010 and updated my graphics drivers and that did not work, so im going to uninstall microsoft visual studio 2010 and then install it again hope that that works…
but its weird that a game i made that used to work, and is still working on other computers is suddenly not working on my computer anymore……
i think that indicated that the issue is not IN microsoft visual studio 2010 , but i dont know what else to do….
all the normal games on my computer are still working…..

0
104 Feb 08, 2013 at 15:37

it must be a case of the code grinch.

0
140 Feb 08, 2013 at 17:40

I get access problems when I copy a file from the internet and put it into a project. I’ve found if I download a zip file with that same file, I don’t get the access problems, but if I download that file onto my computer unzipped, I do. I’ve tried all kinds of things like re-saving it with my own editor, changing access, etc, but nothing seems to work.

0
101 Feb 09, 2013 at 13:37

another small update, i forgot to give this error message:

Unhandled exception at 0x00416547 in Template.exe: 0xC0000005:
Access violation reading location 0x00000010.

now i know where it goes wrong:

if (!init())
{
SDL_SetVideoMode( SCRWIDTH, SCRHEIGHT, 32, SDL_HWSURFACE|SDL_DOUBLEBUF );
SDL_Surface* s = SDL_GetVideoSurface();
surface = new Surface( SCRWIDTH, SCRHEIGHT, (Pixel*)s->pixels, s->pitch );
surface->InitCharset();
vbo = false;
SDL_WM_SetCaption( "Template - FALLBACK", NULL );
}


in this line

surface = new Surface( SCRWIDTH, SCRHEIGHT, (Pixel*)s->pixels, s->pitch );


but the same code, with not changes works on another computer

0
101 Feb 09, 2013 at 14:57

lol
after bieing sort off desperate i decided to uninstall my wacom intuos 4 driver…..
and what do i get? no error…
seems like that was it….
sorry for the spam :D