Hi, I have recently been developing an application for work, the primary purpose of is to replace a daily check list sheet that the operators are required to complete at the beginning and end of each shift for the particular workbench that they are working at. I am a considerable way through writing the program and have recently stumbled upon a series of errors.
The first began after adding icons to individual forms, the ide would generate an exception error while compiling the application and terminate when the abort button of the resulting dialog box is pressed. Upon restarting the ide and application, a window appeared indicating that an error has occurred with the TIcon data and advising that removal of the property should cure the problem. Ok, I manually removed the icon property from the .LFM file, saved and restarted the ide.
All seemed to working correctly, I could edit code and recompile as normal, great, fixed I thought.
But on changing the main form in anyway, even via code, and recompiling an exception is raised and the assembler window is opened with the following dialog and the application will not run again.
LCLPROC_$$_RAISEGDBEXCEPTION$ANSISTRING (104)
0049212F f7f9 idiv %ecx
The Call Stack window produces the following:
#0 LCLPROC_$$_RAISEGDBEXCEPTION$ANSISTRING at :0
#1 CONTROLS$_$TCONTROL_$__$$_DOSETBOUNDS$LONGINT$LONGINT$LONGINT$LONGINT at :0
#2 CONTROLS$_$TCONTROL_$__$$_DOSETBOUNDS$LONGINT$LONGINT$LONGINT$LONGINT at :0
#3 CONTROLS$_$TWINCONTROL_$__$$_DOSETBOUNDS$LONGINT$LONGINT$LONGINT$LONGINT at :0
#4 CONTROLS$_$TCONTROL_$__$$_CHANGEBOUNDS$LONGINT$LONGINT$LONGINT$LONGINT$BOOLEAN at :0
#5 CONTROLS$_$TCONTROL_$__$$_SETBOUNDSKEEPBASE$LONGINT$LONGINT$LONGINT$LONGINT at :0
#6 CONTROLS$_$TCONTROL_$__$$_LOADED at :0
#7 CONTROLS$_$TWINCONTROL_$__$$_LOADED at :0
#8 CLASSES_$$_NOTIFYGLOBALLOADING at :0
#9 LRESOURCES_$$_INITLAZRESOURCECOMPONENT$TCOMPONENT$TCLASS$$BOOLEAN at :0
#10 LRESOURCES_$$_INITRESOURCECOMPONENT$TCOMPONENT$TCLASS$$BOOLEAN at :0
#11 FORMS$_$TCUSTOMFORM_$__$$_PROCESSRESOURCE at :0
#12 FORMS$_$TCUSTOMFORM_$__$$_CREATE$TCOMPONENT$$TCUSTOMFORM at :0
#13 FORMS$_$TFORM_$__$$_CREATE$TCOMPONENT$$TFORM at :0
#14 FORMS$_$TAPPLICATION_$__$$_CREATEFORM$TCOMPONENTCLASS$formal at :0
#15 main at WorkBenchSuite.lpr:55
The only effective way to correct the error is to delete the contents of the application directory and reload from a backup.
Attempting to run the compiled application outside the IDE results in an divide by zero exception error.
More puzzling, after reloading the backup, I attempted to change a second form that is created dynamically within the program, on running, the application starts normally and the main form is displayed and functions correctly, but on creating the second form, almost the exactly same error as shown above is produced, the only difference being the memory location.
Assembly window:
LCLPROC_$$_RAISEGDBEXCEPTION$ANSISTRING (104)
0049211F f7f9 idiv %ecx
Call stack window.
#0 LCLPROC_$$_RAISEGDBEXCEPTION$ANSISTRING at :0
#1 CONTROLS$_$TCONTROL_$__$$_DOSETBOUNDS$LONGINT$LONGINT$LONGINT$LONGINT at :0
#2 CONTROLS$_$TCONTROL_$__$$_DOSETBOUNDS$LONGINT$LONGINT$LONGINT$LONGINT at :0
#3 CONTROLS$_$TWINCONTROL_$__$$_DOSETBOUNDS$LONGINT$LONGINT$LONGINT$LONGINT at :0
#4 CONTROLS$_$TCONTROL_$__$$_CHANGEBOUNDS$LONGINT$LONGINT$LONGINT$LONGINT$BOOLEAN at :0
#5 CONTROLS$_$TCONTROL_$__$$_SETBOUNDSKEEPBASE$LONGINT$LONGINT$LONGINT$LONGINT at :0
#6 CONTROLS$_$TCONTROL_$__$$_LOADED at :0
#7 CONTROLS$_$TWINCONTROL_$__$$_LOADED at :0
I have also been able to duplicate the error on a separate computer.
I am coding with CodeTyphon 5.8 running on Windows 10.
I would be grateful if anyone could help with this problem or at least point me in the write direction.