Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » U++ Developers corner » MSC15 and 2014 sources - problem with Stream
Re: MSC15 and 2014 sources - problem with Stream [message #46753 is a reply to message #46750] Tue, 26 July 2016 10:33 Go to previous messageGo to previous message
NilaT is currently offline  NilaT
Messages: 70
Registered: November 2011
Location: Austria
Member
Well, it seems like there are more and more problems coming up with MSC15, this time with 2010 sources (in another project).
A simple Format("%s %d", "bla", 1); results in a crash in optimal mode, debug works fine though.
Exception: C0000005 at 150C170
EXCEPTION_ACCESS_VIOLATION
reading at 0000001C


Callstack is in the picture.
Thanks for help.

//edit: Same fix seems to work. I changed Single to:
template <class T>
T& Single() {
	#ifndef flagMSC15
	static T *p;
	ONCELOCK {
		static T o;
		p = &o;
	}
	return *p;
	#else
	static T x;
	return x;
	#endif
}
  • Attachment: crash.png
    (Size: 149.59KB, Downloaded 247 times)

[Updated on: Tue, 26 July 2016 11:33]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: StdDisplayClass - a very useful class. Expand for all fonts
Next Topic: [Solved] Instant Upp crash on char input
Goto Forum:
  


Current Time: Fri Jun 14 09:08:28 CEST 2024

Total time taken to generate the page: 0.02107 seconds