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++ TheIDE » U++ TheIDE: Other Features Wishlist and/or Bugs » [FIX] Editing a file which does not exist anymore chrashes TheIDE
FIX [message #21367 is a reply to message #20176] Fri, 15 May 2009 20:09 Go to previous messageGo to previous message
loki is currently offline  loki
Messages: 36
Registered: October 2007
Member
This will fix it:
(Core/TimeDate.cpp Line 340)

Original:
#ifdef PLATFORM_POSIX
Time::Time(FileTime filetime) {
	struct tm *time = localtime(&filetime.ft);
	*this = Time(time->tm_year + 1900, time->tm_mon + 1, time->tm_mday,
                 time->tm_hour, time->tm_min, time->tm_sec);
}


Fix:
#ifdef PLATFORM_POSIX
Time::Time(FileTime filetime) {
	struct tm *time = localtime(&filetime.ft);
	if(time)
	{
		*this = Time(time->tm_year + 1900, time->tm_mon + 1, time->tm_mday,
                 time->tm_hour, time->tm_min, time->tm_sec);
	}
}
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Small bug in code completion.
Next Topic: Package selector now show the nest
Goto Forum:
  


Current Time: Sun Aug 03 16:07:07 CEST 2025

Total time taken to generate the page: 0.07341 seconds