Re: [hlcoders] Crash in release mode only AND Changing the viewports

2006-04-27 Thread Justin Krenz

What defines that all variables are initialized to 0?  Is it a compiler
flag, and why wouldn't you want this to be always set?  This is the
first I've heard of it.

Ben Everett wrote:

The most common cause of crashes in release mode but not in debug are due to
variable initializations. In debug mode all variables are initialized to
'0', while in release mode they do not have a default initialization value.

The most common cause of these crashes is failing to properly initialize
variables.



___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders



Re: [hlcoders] Crash in release mode only AND Changing the viewports

2006-04-27 Thread Garry Newman
--
[ Picked text/plain from multipart/alternative ]
It always seemed backwards to me.

When I'm in debug mode I want the compiler to do its best to try to make it
crash. I want it to throw a rain-man style spazz attack any time the
slightest thing is wrong.

I dunno though, I've kind of heard the opposite too.. that the memory was
filled with random junk.



On 4/27/06, Justin Krenz [EMAIL PROTECTED] wrote:

 What defines that all variables are initialized to 0?  Is it a compiler
 flag, and why wouldn't you want this to be always set?  This is the
 first I've heard of it.

 Ben Everett wrote:
  The most common cause of crashes in release mode but not in debug are
 due to
  variable initializations. In debug mode all variables are initialized to
  '0', while in release mode they do not have a default initialization
 value.
 
  The most common cause of these crashes is failing to properly initialize
  variables.
 

 ___
 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



Re: [hlcoders] Crash in release mode only AND Changing the viewports

2006-04-27 Thread Jason Houston
--
[ Picked text/plain from multipart/alternative ]
I think MSVC tries to be a little too freindly sometimes :) My C lecturer
had a laugh when I said that the compiler initilises everything to 0 :D Oh
well, in most cases that's not a bad thing to have, but it would promote
some bad habits if you learnt using it.


--
Draco
--

___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders



RE: [hlcoders] Crash in release mode only AND Changing the viewports

2006-04-27 Thread Ben Everett
I just did a simple test and got the behaviour I just explained.

#include stdio.h

int main()
{
int *pValue;

printf(%p\n, pValue);

return 0;
}

VS.NET 7.1.3088 and VS8.0.50727.42

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jason Houston
Sent: Thursday, April 27, 2006 4:14 AM
To: hlcoders@list.valvesoftware.com
Subject: Re: [hlcoders] Crash in release mode only AND Changing the
viewports

--
[ Picked text/plain from multipart/alternative ]
I think MSVC tries to be a little too freindly sometimes :) My C lecturer
had a laugh when I said that the compiler initilises everything to 0 :D Oh
well, in most cases that's not a bad thing to have, but it would promote
some bad habits if you learnt using it.


--
Draco
--

___
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



[hlcoders] Say broken suddenly

2006-04-27 Thread Benjamin Davison
--
[ Picked text/plain from multipart/alternative ]
So I have been working on our mod for a bit which is all good :) So I sent
it out to a couple of community members to test it and they report that chat
does not work, which is very strange because I have not done anything
related to chat or hl2mp_hud_chat :|

So I know it is practically impossible to ask you guys for advice on fixing
my problem, but I have also noticed that when I press 'y' it should freeze
you in place and bring up the chat input box. Do you guys have any idea
where this is done? Because I could probably go from there and see what is
happening.

Thanks for your time.

--
- Benjamin Davison
--

___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders



Re: [hlcoders] Say broken suddenly

2006-04-27 Thread Aaron Schiff
--
[ Picked text/plain from multipart/alternative ]
Did you try binding say to y?

--
ts2do
--

___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders



Re: [hlcoders] Say broken suddenly

2006-04-27 Thread Benjamin Davison
--
[ Picked text/plain from multipart/alternative ]
Yup, I can use the console version of say but it uses the Msg
version(it's the mode that stays in the console and isnt shown on the hud)

I have tried binding aswell, that was a no go.

On 4/28/06, Aaron Schiff [EMAIL PROTECTED] wrote:

 --
 [ Picked text/plain from multipart/alternative ]
 Did you try binding say to y?

 --
 ts2do
 --

 ___
 To unsubscribe, edit your list preferences, or view the list archives,
 please visit:
 http://list.valvesoftware.com/mailman/listinfo/hlcoders




--
- Benjamin Davison
--

___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders



Re: [hlcoders] Say broken suddenly

2006-04-27 Thread Aaron Schiff
--
[ Picked text/plain from multipart/alternative ]
Get BeyComp evaluation copy and compare your code to the original copy...

--
ts2do
--

___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders



Re: [hlcoders] Say broken suddenly

2006-04-27 Thread Benjamin Davison
--
[ Picked text/plain from multipart/alternative ]
One of the first things I did. I couldnt really find anything that would
break say, my basechat and hl2mp_hud chat are the same.

On 4/28/06, Aaron Schiff [EMAIL PROTECTED] wrote:

 --
 [ Picked text/plain from multipart/alternative ]
 Get BeyComp evaluation copy and compare your code to the original copy...

 --
 ts2do
 --

 ___
 To unsubscribe, edit your list preferences, or view the list archives,
 please visit:
 http://list.valvesoftware.com/mailman/listinfo/hlcoders




--
- Benjamin Davison
--

___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders



Re: [hlcoders] Say broken suddenly

2006-04-27 Thread Aaron Schiff
--
[ Picked text/plain from multipart/alternative ]
try cutting all your files (put em somewhere else) out of the moddir but
leave necesarry ones intact

--
ts2do
--

___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders



Re: [hlcoders] Say broken suddenly

2006-04-27 Thread Stephen Micheals
Or Get a free copy of Winmerge and compare your code to the original copy...


http://winmerge.sourceforge.net/

___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders



Re: [hlcoders] Say broken suddenly

2006-04-27 Thread Nick
--
[ Picked text/plain from multipart/alternative ]
great program

On 4/27/06, Stephen Micheals [EMAIL PROTECTED] wrote:

 Or Get a free copy of Winmerge and compare your code to the original
 copy...


 http://winmerge.sourceforge.net/

 ___
 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



Re: [hlcoders] Say broken suddenly

2006-04-27 Thread Aaron Schiff
--
[ Picked text/plain from multipart/alternative ]
That's what beycomp is...

--
ts2do
--

___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders



Re: [hlcoders] Say broken suddenly

2006-04-27 Thread Benjamin Davison
--
[ Picked text/plain from multipart/alternative ]
I used winmerge :) Thanks for the suggestion though.

Where else do you think my code changes could be missing with the hud chat?
Because my code is exactly the same as the stock SDK :|

On 4/28/06, Stephen Micheals [EMAIL PROTECTED] wrote:

 Or Get a free copy of Winmerge and compare your code to the original
 copy...


 http://winmerge.sourceforge.net/

 ___
 To unsubscribe, edit your list preferences, or view the list archives,
 please visit:
 http://list.valvesoftware.com/mailman/listinfo/hlcoders




--
- Benjamin Davison
--

___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders



Re: [hlcoders] Say broken suddenly

2006-04-27 Thread Michael Kramer
--
[ Picked text/plain from multipart/alternative ]
Did you bind y to any other command via .cfg or in the code?

On 4/27/06, Benjamin Davison [EMAIL PROTECTED] wrote:

 --
 [ Picked text/plain from multipart/alternative ]
 I used winmerge :) Thanks for the suggestion though.

 Where else do you think my code changes could be missing with the hud
 chat?
 Because my code is exactly the same as the stock SDK :|

 On 4/28/06, Stephen Micheals [EMAIL PROTECTED] wrote:
 
  Or Get a free copy of Winmerge and compare your code to the original
  copy...
 
 
  http://winmerge.sourceforge.net/
 
  ___
  To unsubscribe, edit your list preferences, or view the list archives,
  please visit:
  http://list.valvesoftware.com/mailman/listinfo/hlcoders
 
 


 --
 - Benjamin Davison
 --

 ___
 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



Re: [hlcoders] Say broken suddenly

2006-04-27 Thread Benjamin Davison
--
[ Picked text/plain from multipart/alternative ]
Nope, I specifically wiped all my configs out of the mod to make sure that
was not the case.

On 4/28/06, Michael Kramer [EMAIL PROTECTED] wrote:

 --
 [ Picked text/plain from multipart/alternative ]
 Did you bind y to any other command via .cfg or in the code?

 On 4/27/06, Benjamin Davison [EMAIL PROTECTED] wrote:
 
  --
  [ Picked text/plain from multipart/alternative ]
  I used winmerge :) Thanks for the suggestion though.
 
  Where else do you think my code changes could be missing with the hud
  chat?
  Because my code is exactly the same as the stock SDK :|
 
  On 4/28/06, Stephen Micheals [EMAIL PROTECTED] wrote:
  
   Or Get a free copy of Winmerge and compare your code to the original
   copy...
  
  
   http://winmerge.sourceforge.net/
  
   ___
   To unsubscribe, edit your list preferences, or view the list archives,
   please visit:
   http://list.valvesoftware.com/mailman/listinfo/hlcoders
  
  
 
 
  --
  - Benjamin Davison
  --
 
  ___
  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




--
- Benjamin Davison
--

___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders