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 » LineEdit, EditFields, DocEdit » [BUG] EditDouble, SetData() can prevent U++ program from running...
[BUG] EditDouble, SetData() can prevent U++ program from running... [message #50467] Sun, 04 November 2018 20:14 Go to next message
ptkacz is currently offline  ptkacz
Messages: 89
Registered: March 2017
Member
Working on some code, "0.0" was accidentally passed to a instantiated EditDouble, SetData() method. The U++ application successfully compiled, but would not run. Upon investigation, the issue corrected, and the parameter changed to 0.0, the U++ application would successfully run upon being compiled.
Re: [BUG] EditDouble, SetData() can prevent U++ program from running... [message #50470 is a reply to message #50467] Mon, 05 November 2018 19:30 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
ptkacz wrote on Sun, 04 November 2018 20:14
Working on some code, "0.0" was accidentally passed to a instantiated EditDouble, SetData() method. The U++ application successfully compiled, but would not run. Upon investigation, the issue corrected, and the parameter changed to 0.0, the U++ application would successfully run upon being compiled.


Like this:

EditDouble h;
h.SetData("0.0");


If so, that is not a bug but feature. Value is polymorphhic, it is your responsibility to pass only data allowed.

You can try ... catch(ValueTypeError) if you need to.

Mirek
Re: [BUG] EditDouble, SetData() can prevent U++ program from running... [message #50524 is a reply to message #50467] Tue, 13 November 2018 01:21 Go to previous messageGo to next message
ptkacz is currently offline  ptkacz
Messages: 89
Registered: March 2017
Member
Yes, but, there's no indication where the problem is!
Re: [BUG] EditDouble, SetData() can prevent U++ program from running... [message #50527 is a reply to message #50524] Tue, 13 November 2018 08:53 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
ptkacz wrote on Tue, 13 November 2018 01:21
Yes, but, there's no indication where the problem is!


Have you tried running it in debugger? It should point you pretty directly to the place of failure.

That said, if you are in windows, it is true that it from some time stopped showing message box after program exception - apps now seem to die silently. I think this is some setting somewhere, investigating....
Re: [BUG] EditDouble, SetData() can prevent U++ program from running... [message #50528 is a reply to message #50527] Tue, 13 November 2018 09:09 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
I have posted the question here:

https://stackoverflow.com/questions/53276446/if-application- crashes-eg-segfault-or-unhandled-exception-since-some-win10- u

Previous Topic: Adding simple Append to TextCtrl?
Next Topic: [BUG] DropList selection goes blank...
Goto Forum:
  


Current Time: Thu Mar 28 13:56:58 CET 2024

Total time taken to generate the page: 0.01327 seconds