Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


#ActualEctara

Posted 04 April 2013 - 02:47 PM


Also, see if there's some sort of memory debugger that you can use. One of the first programs I turn to for things like this is Valgrind, which would give you a heads-up once various memory errors occur.

 
"VS2012 express edition"
 
Valgrind does not run on Windows.
I know. I never said it did. Actually, more accurately, it does: http://sourceforge.net/projects/valgrind4win/, but it doesn't work with VS.
 
 

Now if I uncomment the line "ss << 15;" it will compile and run fine. Notice how the function is never called.

One thing I can think of is that with the line uncommented, that templated member function becomes instantiated. Does it make a difference if you copy the body of this function to some other point in the code?

#3Ectara

Posted 04 April 2013 - 02:46 PM

Also, see if there's some sort of memory debugger that you can use. One of the first programs I turn to for things like this is Valgrind, which would give you a heads-up once various memory errors occur.

 

"VS2012 express edition"

 

Valgrind does not run on Windows.

I know. I never said it did. Actually, more accurately, it does: http://sourceforge.net/projects/valgrind4win/, but it doesn't work with VS.

 

 

Now if I uncomment the line "ss << 15;" it will compile and run fine. Notice how the function is never called.



One thing I can think of is that with the line uncommented, that templated member function becomes instantiated. Does it make a difference if you copy the body of this function to some other point in the code?


#2Ectara

Posted 04 April 2013 - 02:44 PM

Also, see if there's some sort of memory debugger that you can use. One of the first programs I turn to for things like this is Valgrind, which would give you a heads-up once various memory errors occur.

 

"VS2012 express edition"

 

Valgrind does not run on Windows.

I know. I never said it did.

 

Now if I uncomment the line "ss << 15;" it will compile and run fine. Notice how the function is never called.



One thing I can think of is that with the line uncommented, that templated member function becomes instantiated. Does it make a difference if you copy the body of this function to some other point in the code?

 


#1Ectara

Posted 04 April 2013 - 02:36 PM

Also, see if there's some sort of memory debugger that you can use. One of the first programs I turn to for things like this is Valgrind, which would give you a heads-up once various memory errors occur.

 

"VS2012 express edition"

 

Valgrind does not run on Windows.

I know. I never said it did.


PARTNERS