TDBEdit connected to a TIntegerField crashes application when a huge number entered manually
Original Reporter info from Mantis: eara
-
Reporter name: Stratis Aravias
Original Reporter info from Mantis: eara
- Reporter name: Stratis Aravias
Description:
I have an integer field in mysql 5.5 db where in my tests i tried to enter an invalid value, big enough to see how the application reacts, and instead of a classic exception ... application shuts down with memory leaks...
In debugger i see that debugger catches the same exception TWICE!
So i tried to make an isolated example to check if it is from my code or not, and i see the almost same results.
Another thing i noticed is that if i try to set with code a huge integer value in the DBEdit box then application fires the exception as expected. But if i try to write it manually the same value (like the end user) then we have the crash situation...
Steps to reproduce:
You need 1 form with
1 TSQLConnector for MySQL (i test with 5.5)
1 TSQLTransaction
1 TSQLQuery
1 TDatasource
1 TDBNavigator
1 TBEdit
1 Coffee
1 Db with 1 table with at least 1 INT field
1 Cigarete
prepare the coffee, and put all the necessary stuff on your form for db connection and try to enter manually an invalid huge integer value in TDBEdit
then light the cigarete and count the catched exceptions from debugger...
Additional information:
I'll try to send you a small project that may leave you drink the coffee instead of trying to build the example...
Mantis conversion info:
- Mantis ID: 26081
- OS: windows 7
- OS Build: 32bits
- Build: SVN: 44303
- Platform: windows
- Version: 1.2.0
- Fixed in revision: 44867 (#759e87ce)
- Monitored by: » eara (Stratis Aravias), » luizamerico (Luiz Americo)