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 » U++ Library support » U++ Core » why use fromsyschrset in the first sentence of the logfile?
icon5.gif  why use fromsyschrset in the first sentence of the logfile? [message #36691] Tue, 26 June 2012 07:50 Go to next message
akebee is currently offline  akebee
Messages: 90
Registered: August 2011
Location: China
Member
we known every logfile the first sentence is like below:
*E:\upp\ouf\test.exe 26.06.2012 12:30:31,user:somoone

see the logstream:create,it getmodlefilename then use fromsyschrset ,but why not fromsystemcharset ?
it return the real compatible path
Re: why use fromsyschrset in the first sentence of the logfile? [message #36726 is a reply to message #36691] Fri, 29 June 2012 09:43 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
The difference is that FromSystemCharSet requires heap to work (e.g. because it returns String), whereas FromSysChrSet returns a pointer to static memory memory buffer and requires nothing to work.

We want log to work even in conditions where heap is corrupted (it is debugging tool).
Re: why use fromsyschrset in the first sentence of the logfile? [message #36735 is a reply to message #36726] Fri, 29 June 2012 16:40 Go to previous message
akebee is currently offline  akebee
Messages: 90
Registered: August 2011
Location: China
Member
Thanks mirek !i see Smile
Previous Topic: GetTimeZoneText() warning
Next Topic: LoadFromXML problem and solution
Goto Forum:
  


Current Time: Fri Apr 19 12:30:54 CEST 2024

Total time taken to generate the page: 0.03189 seconds