Update Urgent Help...exe crashing

epsharp

Member
Licensed User
Longtime User
Been working frantically!

All programs run perfectly when run in debug mode.

Not EVERY program will crash; all "Menu" type programs are OK. Placed a "msgbox" as first line of the App_Start; never got to message so figured it had to be in the form setup routine. Since 2012 was a date/year, i removed the Calendar control from the form and all references to the Calender object from the source code. Compiled the program and it executed perfectly (albiet minus the calendar in the form).

Put the Calendar back into the form, compiled and program crashed.

Unfortunately, I have over 60 programs with calendars in them. I build my forms at run time and since you cannot add a calendar at run time, I have one, invisible, on every form of the program that I use as a template for every program.

Any thoughts why the Calendar Object doesn't like Leap Year Day? Any solutions???

Regards

Ed Sharp
 

epsharp

Member
Licensed User
Longtime User
DatePicker Fix

I am still using 6.5.
The project for the company is not quite complete and I didn't want to change in mid-stream since 6.8 is not backward compatable with 6.5.

The fix is looking for B4P.scalex and generates an error on compile.

The fix for 6.5 appears to simply move the

<code>
m_yearUpDown.ValueChanged += new EventHandler(OnYearUpDownValueChanged);
</code>

From the front before setting the min and max value to after. Works for me.

Thanks Erel and Mike for your prompt help. I off to compile programs.

Regards

Ed Sharp
 

agraham

Expert
Licensed User
Longtime User
That's a strange coincidence, I just found this bug myself this afternoon as I ran an old demo. Mike is correct that it only corrects compiled programs, the IDE will still error. You would need a re-compiled version of the IDE (;)) to fix it it there.
 

epsharp

Member
Licensed User
Longtime User
83 programs recompiled. Payroll run. Backed up orders posted and processed.

Whew! :icon_clap:

Thanks everybody for your help, ESPECIALLY the promptness. :sign0098:

I'm using B4P Desktop 6.5.

There was never any problem in the IDE for me which is why it was so exasperating. As soon as I got the first error, I immediately loaded the source, pressed <F5> and it worked just fine. Recompiled, clicked the .exe file and got the error. After the "fix" and recompile, all went perfectly.

Thanks again.

Ed Sharp
 
Top