I have a code that worked correctly with version 17.12 and with version 18.01 I get this error:
Application Internal Error - C:\sistema\gestion.exe
Terminated at: 2018-02-25 16:01:09
Error irrecuperable 6005: Exception error:
Exception Code:C0000005 ACCESS_VIOLATION
Exception Address:76EA5E88
EAX:02FB2E58 EBX:02FB2AE0 ECX:00000000 EDX:00000000
ESI:02FB2E50 EDI:02FB0000 EBP:0012DE44
CS:EIP:001B:76EA5E88 SS:ESP:0023:0012DE1C
DS:0023 ES:0023 FS:003B GS:0000
Flags:00210246
Exception Parameters: 00000000 00000004
CS:EIP: 8B 49 04 89 55 F4 8B 12 3B D1 0F 85 57 57 FD FF
SS:ESP: 02FB0000 02FB2E10 00000000 6578DA8C 00000000 02FB00C4 00000000 02FB5B30 0000006A 00000350 0012DF3C 76EA60F7 0000006A 02FB2E50 0012DF0C 00000000
C stack:
EIP: EBP: Frame: OldEBP, RetAddr, Params...
76EA5E88 0012DE44 0012DF3C 76EA60F7 0000006A 02FB2E50 0012DF0C 00000000 77625BA0 00000000 02FB0000 02FB2E18
76EA60F7 0012DF3C 0012DF5C 76EA6416 02FB2E10 02FB2E18 032C1372 00A760A8 02FB2E18 02FB2E10
76EA6416 0012DF5C 0012DF70 752DC5F4 02FB0000 00000000 02FB2E18
752DC5F4 0012DF70 0012DF84 73577237 02FB0000 00000000 02FB2E18
73577237 0012DF84 0012DFA4 73572530 02FB2E18 00000000 FFFFF3C0 0000043F 032C177F 032C1372
73572530 0012DFA4 0012DFB4 0043C669 02FB2E18 0029BFA4
0043C669 0012DFB4 0012DFF0 0043B0EF 02FB2E18 00000003 0012ECEC 005D495B 00C03B78 0012DFC4 00000024 00A760A8
0043B0EF 0012DFF0 0012E00C 005853A8 000000A9 00000000 003F6494 00000000 00000000
005853A8 0012E00C 0012E120 0057F085 00000001 00A7DBB7 00000000 0029BFA4 990112CD 03339650 00000000 750C3126
0057F085 0012E120 0012E130 0041E9E8 00A7605B 00A72B50
0041E9E8 0012E130 0012E14C 005853A8 0000009F 00000000 003F6494 00000000 00000486
005853A8 0012E14C 0012E260 0057F085 00000001 00A7D953 0029BFA4 00A7A5AC 00210008 0012E1E8 0059EA1D 002101C8
0057F085 0012E260 0012E270 0041EDC8 00A7DAC4 00A794EC
0041EDC8 0012E270 0012E294 00585581 00000000 0029BFA4 0000009D 00000000 003F6494 029D001D 0000040B
00585581 0012E294 0012E3A8 0057F1C6 00000000 00A7B797 0029BFA4 00A7964C 0012E2C8 0059FDFA 002101C8 0059FE03
0057F1C6 0012E3A8 0012E3B8 0041ED68 00A7D94C 00A794EC
0041ED68 0012E3B8 0012E3DC 00585581 00000000 0029BFA4 0000009A 00000000 003F6494 0141001D 000003BC
00585581 0012E3DC 0012E4F0 0057F1C6 00000000 FFFFFFFF 002A91E4 0029BFA4 002A91BC 0029BFA4 0012E408 005A3709
0057F1C6 0012E4F0 0012E524 0058574C 00A7B792 00A794EC 0172A194 00290001 00120001 00585694 00000098 00000000
0058574C 0012E524 00C94EC4 005945AB 00290001 0012E560 00BE3284 0029BFA4 00BC05C4 00585581 00000000 0029BFA4
Modules:
00400000 00D7F000 C:\sistema\gestion.exe
76E50000 00142000 C:\Windows\SYSTEM32\ntdll.dll
75290000 000D5000 C:\Windows\system32\kernel32.dll
74FB0000 0004B000 C:\Windows\system32\KERNELBASE.dll
537D0000 002CA000 C:\sistema\LIBMYSQL.DLL
76D80000 000C9000 C:\Windows\system32\USER32.dll
77000000 0004E000 C:\Windows\system32\GDI32.dll
75750000 0000A000 C:\Windows\system32\LPK.dll
75090000 0009D000 C:\Windows\system32\USP10.dll
756A0000 000AC000 C:\Windows\system32\msvcrt.dll
755F0000 000A1000 C:\Windows\system32\ADVAPI32.dll
75BC0000 00019000 C:\Windows\SYSTEM32\sechost.dll
75C80000 000A2000 C:\Windows\system32\RPCRT4.dll
77060000 00035000 C:\Windows\system32\WS2_32.dll
75590000 00006000 C:\Windows\system32\NSI.dll
12170000 0015F000 C:\sistema\ACE32.DLL
741B0000 00009000 C:\Windows\system32\VERSION.dll
6D250000 00012000 C:\Windows\system32\MPR.dll
6F990000 00007000 C:\Windows\system32\WSOCK32.dll
6DEE0000 00051000 C:\Windows\system32\WINSPOOL.DRV
739A0000 0019E000 C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.18837_none_41e855142bd5705d\COMCTL32.DLL
75B60000 00057000 C:\Windows\system32\SHLWAPI.dll
75510000 0007B000 C:\Windows\system32\COMDLG32.DLL
76130000 00C4C000 C:\Windows\system32\SHELL32.dll
72050000 00005000 C:\Windows\system32\MSIMG32.DLL
75130000 0015D000 C:\Windows\system32\OLE32.DLL
75BE0000 00091000 C:\Windows\system32\OLEAUT32.DLL
64180000 0001C000 C:\Windows\system32\OLEDLG.DLL
73530000 00191000 C:\Windows\WinSxS\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.7601.23894_none_5c0be957a009922e\GDIPLUS.DLL
76FD0000 0001F000 C:\Windows\system32\IMM32.DLL
76060000 000CD000 C:\Windows\system32\MSCTF.dll
01420000 00090000 C:\sistema\bwcc32.dll
737C0000 00040000 C:\Windows\system32\uxtheme.dll
10000000 00225000 C:\Windows\system32\spool\DRIVERS\W32X86\3\suhp1020.dll
5EED0000 000EE000 C:\Windows\system32\spool\DRIVERS\W32X86\3\gchp1020.dll
732C0000 00013000 C:\Windows\system32\dwmapi.dll
74C50000 0000C000 C:\Windows\system32\CRYPTBASE.dll
73520000 00010000 C:\Windows\system32\NLAapi.dll
6C340000 00010000 C:\Windows\system32\napinsp.dll
6C320000 00012000 C:\Windows\system32\pnrpnsp.dll
6D360000 00027000 C:\Program Files\Common Files\Microsoft Shared\Windows Live\WLIDNSP.DLL
76FF0000 00005000 C:\Windows\system32\PSAPI.DLL
74720000 0003C000 C:\Windows\System32\mswsock.dll
745E0000 00044000 C:\Windows\system32\DNSAPI.dll
6BBF0000 00008000 C:\Windows\System32\winrnr.dll
6D340000 00006000 C:\Windows\system32\rasadhlp.dll
74240000 00005000 C:\Windows\System32\wshtcpip.dll
04860000 00104000 C:\sistema\freeimage.dll
03370000 003A9000 C:\sistema\FrSystH.dll
58E50000 00084000 C:\Windows\system32\HHCtrl.OCX
63A30000 00094000 C:\Windows\system32\Msftedit.DLL
732A0000 0001C000 C:\Windows\system32\IPHLPAPI.DLL
731F0000 00007000 C:\Windows\system32\WINNSI.DLL
73160000 00038000 C:\Windows\System32\fwpuclnt.dll
Called from GDIP_DELETEIMAGE(0)
Called from PALBMPFREE(1158) in .\source\classes\BITMAP.PRG
Called from TBTNBMP:FREEBITMAPS(1035) in .\source\classes\BTNBMP.PRG
Called from TBTNBMP:DESTROY(956) in .\source\classes\BTNBMP.PRG
Called from (b)TBTNBMP(184) in .\source\classes\BTNBMP.PRG
Called from TBTNBMP:END(0) in .\source\classes\BTNBMP.PRG
Called from TXBRWCOLUMN:END(11164) in .\source\classes\XBROWSE.PRG
Called from TXBROWSE:DESTROY(892) in .\source\classes\XBROWSE.PRG
Called from TWINDOW:HANDLEEVENT(0)
Called from TCONTROL:HANDLEEVENT(1731) in .\source\classes\CONTROL.PRG
Called from TXBROWSE:HANDLEEVENT(10442) in .\source\classes\XBROWSE.PRG
Called from _FWH(3368) in .\source\classes\WINDOW.PRG
Called from SENDMESSAGE(0)
Called from (b)TWINDOW(590) in .\source\classes\WINDOW.PRG
Called from TMDICLIENT:SENDMSG(0) in .\source\classes\WINDOW.PRG
Called from TMDICLIENT:CHILDCLOSE(190) in .\source\classes\MDICLIEN.PRG
Called from TMDICHILD:END(282) in .\source\classes\MDICHILD.PRG
Called from (b)VIEWENV(158) in CONSULTE.PRG
Called from TTASKITEM:LBUTTONUP(327) in source\h_ctaskitem.prg
Called from TCONTROL:HANDLEEVENT(1721) in .\source\classes\CONTROL.PRG
Called from TTASKITEM:HANDLEEVENT(268) in source\h_ctaskitem.prg
Called from _FWH(3368) in .\source\classes\WINDOW.PRG
Called from WINRUN(0)
Called from TMDIFRAME:ACTIVATE(1043) in .\source\classes\WINDOW.PRG
Called from MAIN(1764) in GESTION.PRG
------------------------------------------------------------------------