-- [ Picked text/plain from multipart/alternative ] My comment applied to the RELEASE build.
In release builds there is a pdb file that is created specifically for that build of the code. Then if you 'debug run' the release version of the exe from visual studio, it will load the pdb file to link the line of code you are on with the line that is being run in the exe (this is all compiled into one file when compiled under debug). If you are using the wrong pdb file and you have changed the code in any way i.e. added a line of code, then the pdb line linking will be out, and it will show you the wrong line of code that is being executed in the debugger. So in short, make sure that the pdb and exe files that are being used are built at the same time otherwise you will run into problems. David (PulledPin) Shaw www.hl2ctf.com On 29/02/2008, Tom Edwards <[EMAIL PROTECTED]> wrote: > > Thanks, but I'm not running in debug. (Forgot to send this!) > > > David Shaw wrote: > > -- > > [ Picked text/plain from multipart/alternative ] > > > This is a long shot, but if you are running release code and the pdb > files > > have not been updated, then the debugger will interpret the line of code > > that is being run to be the wrong one in the code you are looking at. > > Normally it wouldn't let you debug, but stranger things have happened > (and > > I've seen this before). > > > > To check this add in a Msg() call and output the bool to see if the exe > is > > really going into the if function with a false > > > > David (PulledPin) Shaw > > www.hl2ctf.com > > > > On 27/02/2008, Tom Edwards <[EMAIL PROTECTED]> wrote: > > > >> Absolutely nothing. (Well, I added some of the diagnostic code I > >> mentioned in the first message, but that doesn't have any effect on the > >> behaviour.) > >> > >> > >> Grash wrote: > >> > >>> What did you change in the model entity tutorial? > >>> > >>> > >>> --- Tom Edwards <[EMAIL PROTECTED]> wrote: > >>> > >>> > >>> > >>>> I'm still working on VDC documentation. I've completed a new version > >>>> of > >>>> the model entity tutorial, but there's a curiosity I'd like to have > >>>> explained to me. If the player stands in front of the my_model_entity > >>>> as > >>>> it moves, it will execute a chunk of IF code in MoveThink() > >>>> regardless > >>>> of whether the conditions for it are true! > >>>> > >>>> I added a console message when the if statement is executed (which > >>>> appears every time the entity hits me) and disabled the random > >>>> AbsVector > >>>> changes. The code is _definitely_ being executed ahead of time. > >>>> > >>>> What's going on here? The code is at > >>>> http://developer.valvesoftware.com/wiki/Model_Entity . > >>>> > >>>> > >>>> _______________________________________________ > >>>> To unsubscribe, edit your list preferences, or view the list > >>>> archives, please visit: > >>>> http://list.valvesoftware.com/mailman/listinfo/hlcoders > >>>> > >>>> > >>>> > >>>> > >>> > >>> > >>> > >>> > >>> > >> > ____________________________________________________________________________________ > >> > >>> Be a better friend, newshound, and > >>> know-it-all with Yahoo! Mobile. Try it now. > >>> > >> http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ > >> > >>> _______________________________________________ > >>> To unsubscribe, edit your list preferences, or view the list archives, > >>> > >> please visit: > >> > >>> http://list.valvesoftware.com/mailman/listinfo/hlcoders > >>> > >>> > >>> > >>> > >> _______________________________________________ > >> To unsubscribe, edit your list preferences, or view the list archives, > >> please visit: > >> http://list.valvesoftware.com/mailman/listinfo/hlcoders > >> > >> > >> > > > -- > > > > > _______________________________________________ > > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > > > > > > > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > -- _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

