I wanted to use your code to display Balloon Message. I changed it by adding the ability to choose the type of messages: Info | Warning | Error | Custom.
It works correctly under Wndows 10, but on Windows XP crashes at:
Code: Select all
if (stricmp (TEXT (szType), "INFO") == 0 || stricmp (TEXT (szType), "I") == 0)
Code: Select all
Application Internal Error - demo.exe
Terminated at: 2017-02-13 10:19:12
Unrecoverable error 6005: Exception error:
Exception Code:C0000005 ACCESS_VIOLATION
Exception Address:77C383B7
EAX:003F1E49 EBX:77C4F7A0 ECX:00000000 EDX:000001FC
ESI:005E4081 EDI:00000000 EBP:0022F9F0
CS:EIP:001B:77C383B7 SS:ESP:0023:0022F9E4
DS:0023 ES:0023 FS:003B GS:0000
Flags:00010206
Exception Parameters: 00000000 00000000
CS:EIP: 8A 27 47 38 C4 74 F2 2C 41 3C 1A 1A C9 80 E1 20
SS:ESP: 77C4F7A0 00000000 00000000 0022FA08 77C3627D 00000000 005E4080 0022FA24 0000001E 00000000 004016C1 00000000 005E4080 00000001 0048B8D4 00DB4BA8
C stack:
EIP: EBP: Frame: OldEBP, RetAddr, Params...
77C383B7 0022F9F0 0022FA08 77C3627D 00000000 005E4080 0022FA24 0000001E
Modules:
00400000 0032F000 demo.exe
7C900000 000B1000 C:\WINDOWS\system32\ntdll.dll
7C800000 000FD000 C:\WINDOWS\system32\kernel32.dll
77DC0000 000AC000 C:\WINDOWS\system32\ADVAPI32.dll
77E70000 00092000 C:\WINDOWS\system32\RPCRT4.dll
77FE0000 00011000 C:\WINDOWS\system32\Secur32.dll
773C0000 00103000 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.5512_x-ww_35d4ce83\COMCTL32.DLL
77C00000 00058000 C:\WINDOWS\system32\msvcrt.dll
77F10000 00049000 C:\WINDOWS\system32\GDI32.dll
7E360000 00091000 C:\WINDOWS\system32\USER32.dll
77F60000 00076000 C:\WINDOWS\system32\SHLWAPI.dll
76380000 00049000 C:\WINDOWS\system32\COMDLG32.DLL
7C9C0000 0081E000 C:\WINDOWS\system32\SHELL32.dll
76350000 00005000 C:\WINDOWS\system32\MSIMG32.DLL
75B80000 00021000 C:\WINDOWS\system32\MSVFW32.DLL
76B20000 0002E000 C:\WINDOWS\system32\WINMM.dll
774D0000 0013D000 C:\WINDOWS\system32\ole32.dll
77110000 0008B000 C:\WINDOWS\system32\OLEAUT32.dll
72F90000 00026000 C:\WINDOWS\system32\WINSPOOL.DRV
5B1D0000 00038000 C:\WINDOWS\system32\uxtheme.dll
Called from SHOWNOTIFYINFO(0)
Called from MSGBALLOON(38) in demo.prg
Called from MAIN(6) in demo.prg
------------------------------------------------------------------------
Edward.