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   |
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);
}
}
|
|
|
 |
|
[FIX] Editing a file which does not exist anymore chrashes TheIDE
By: loki on Tue, 24 February 2009 00:18
|
 |
|
Re: [BUG] Editing a file which does not exist anymore chrashes TheIDE
By: mr_ped on Tue, 24 February 2009 08:11
|
 |
|
Re: [BUG] Editing a file which does not exist anymore chrashes TheIDE
By: loki on Tue, 24 February 2009 11:52
|
 |
|
Re: [BUG] Editing a file which does not exist anymore chrashes TheIDE
By: mr_ped on Tue, 24 February 2009 12:30
|
 |
|
Re: [BUG] Editing a file which does not exist anymore chrashes TheIDE
By: loki on Tue, 24 February 2009 15:49
|
 |
|
Re: [BUG] Editing a file which does not exist anymore chrashes TheIDE
By: loki on Wed, 13 May 2009 00:31
|
 |
|
Re: [BUG] Editing a file which does not exist anymore chrashes TheIDE
By: mirek on Wed, 13 May 2009 09:15
|
 |
|
Re: [BUG] Editing a file which does not exist anymore chrashes TheIDE
By: loki on Fri, 15 May 2009 19:35
|
 |
|
FIX
By: loki on Fri, 15 May 2009 20:09
|
 |
|
Re: FIX
By: mirek on Fri, 15 May 2009 20:18
|
Goto Forum:
Current Time: Sun Aug 03 16:07:07 CEST 2025
Total time taken to generate the page: 0.07341 seconds
|