• Welcome to RadioDJ - Free Radio Automation Software Forum. Please log in or sign up.

Program worked properly throughout 2024 in 2025 first day crash

Started by rbusovaca, January 02, 2025, 11:32:56 PM

rbusovaca

I have a problem with the program, the program worked properly throughout 2024 and when the new year started on 1.1.2025 the program just crashed and won't start I have to return it to 2024 and then everything works normally, attached I'm sending you my log with the problem. Has anyone had a similar problem?


2 Jan 2025 20:15:24
Year, Month, and Day parameters describe an un-representable DateTime.   at System.DateTime.DateToTicks(Int32 year, Int32 month, Int32 day)
   at System.DateTime..ctor(Int32 year, Int32 month, Int32 day, Int32 hour, Int32 minute, Int32 second)
   at �‫��‌�‎��‮‭‪�‌‫‏‎��‎��‏‫�‌�‪�‏�‌���‫���‬‮.‌�‏�‪��‭�‪�‬‪‏��‎�‌‬��‏�‎�‪‮�‭‭�‬�‌‎�‭�‪‮(DateTime , Int32 , String )
   at |nh)7\,_(B\&SJiAEVf129_H#{#.��‌‌‏‮�‮‫‫‌‌��‬�‏����‬‎�‬��‬�‌��‪‬‬��‪�‪‮(Object , EventArgs )
   at System.EventHandler.Invoke(Object sender, EventArgs e)
   at System.Windows.Forms.Form.OnLoad(EventArgs e)
   at System.Windows.Forms.Form.OnCreateControl()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.WmShowWindow(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ContainerControl.WndProc(Message& m)
   at System.Windows.Forms.Form.WmShowWindow(Message& m)
   at System.Windows.Forms.Form.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

DJGaryBaldy

Your database has probably crashed you can repair it with the Database setup tool or HeidiSQL

If that doesnt solve come back and we'll look again

Currently Running:
 
RadioDJ 2050
MariaDB 12.02
Windows 11

RadioDJ User For 16 Years

"Never Get Angry At The Stupid People"

rbusovaca

I tried all the options but unfortunately I didn't succeed, instead of 2025 the radio dj plays in 2024
 
I use maria db 11.2 and last version radio dj all run in windows 10 pro 64bit

DJGaryBaldy

I'm not sure I can grasp your issue I'm using MariaDB 11.2 as well and haven't experienced and problems like this.

Maybe someone else can understand you
Currently Running:
 
RadioDJ 2050
MariaDB 12.02
Windows 11

RadioDJ User For 16 Years

"Never Get Angry At The Stupid People"


Kiwi

As you say "This problem i think is in windows".

Have you checked the Windows forums? What version of Windows are you using?

Don't know if this helps you...

Windows Date & Time


rbusovaca

I try  this and work when i setup year in 2024 but when i return in 2025 not startup software i try also install new mariadb  an when empty  working, so i lost 70000  song in database if i can fix

i use windows 10 pro 64 bit


Kiwi

Is your date format for Windows the same as the setting in RadioDJ's Options/Settings/Language?

rbusovaca

yes  now  i install all new marida db last version and last version rdj and when i restore database  same  problem  but i think there is bug in rdj

Year, Month, and Day parameters describe an un-representable DateTime.   at System.DateTime.DateToTicks(Int32 year, Int32 month, Int32 day)
   at System.DateTime..ctor(Int32 year, Int32 month, Int32 day, Int32 hour, Int32 minute, Int32 second)
   at �‫��‌�‎��‮‭‪�‌‫‏‎��‎��‏‫�‌�‪�‏�‌���‫���‬‮.‌�‏�‪��‭�‪�‬‪‏��‎�‌‬��‏�‎�‪‮�‭‭�‬�‌‎�‭�‪‮(DateTime , Int32 , String )
   at |nh)7\,_(B\&SJiAEVf129_H#{#.��‌‌‏‮�‮‫‫‌‌��‬�‏����‬‎�‬��‬�‌��‪‬‬��‪�‪‮(Object , EventArgs )
   at System.EventHandler.Invoke(Object sender, EventArgs e)
   at System.Windows.Forms.Form.OnLoad(EventArgs e)
   at System.Windows.Forms.Form.OnCreateControl()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.WmShowWindow(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ContainerControl.WndProc(Message& m)
   at System.Windows.Forms.Form.WmShowWindow(Message& m)
   at System.Windows.Forms.Form.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

and i think in this part of program

if (year >= 1 && year <= 9999 && month >= 1 && month <= 12 && day >= 1 && day <= DateTime.DaysInMonth(year, month))
{
    DateTime validDate = new DateTime(year, month, day, hour, minute, second);
}
else
{
    // Handle invalid date
    Console.WriteLine("Invalid date");
}

Kiwi

Where does this code from? RadioDJ directory? What file name?

I note you are using the day, month, year format for RadioDJ. The script is in year, month, day - so this may be an issue. I am not a coder or programmer. Also I find it interesting that this is happening after coming out of a Leap Year.

Don't think I can help you any further, hopefully someone else may be able to provide insight.

rbusovaca

if (year >= 1 && year <= 9999 && month >= 1 && month <= 12 && day >= 1 && day <= DateTime.DaysInMonth(year, month))
{
    DateTime validDate = new DateTime(year, month, day, hour, minute, second);
}
else
{
    // Handle invalid date
    Console.WriteLine("Invalid date");
}

i think this code is solution for software, but i think marius know what is problem he is programmer for radio dj