So here's the error in the Event Viewer. Application crashes when inserting data to the database.
DAtabase: AS/400 iSeries DB2
Faulting application name: 242-CEWE.exe, version: 1.0.0.0, time stamp: 0x542a2ac6
Faulting module name: MSVCR80.dll, version: 8.0.50727.6195, time stamp: 0x4dcddbf3
Exception code: 0xc000000d
Fault offset: 0x00022b5c
Faulting process id: 0x12ec
Faulting application start time: 0x01cfdc6346929bb1
Faulting application path: C:\Users\Administrator\AppData\Local\Apps\2.0\TC9900A9.E20\1G4DGZRO.4Z5\242-..tion_0000000000000000_0001.0000_2597c9181fd32184\242-CEWE.exe
Faulting module path: C:\Windows\WinSxS\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.6195_none_d09154e044272b9a\MSVCR80.dll
Report Id: 8a7665f1-4856-11e4-a94c-20cf30acb67f
Thanks!