Crash when delete an indicator with external DLL function call

 

Greeting,

i develop an indicator to do external functions DLL call. The functions was called successfully however when i delete the indicator

from the chart window, a crash occur. Below is the crash details. please help. thanks.

There has been a critical error
Time : 2008.11.11 14:31
Program : Client Terminal
Version : 4.00 (build: 220, 7 Nov 2008)
OS : Windows XP Professional 5.1 Service Pack 3 (Build 2600)
Processors : 2 x X86 (level 6)
Memory : 1031404/217012 kb
Exception : C0000005
Address : 00000000
Access Type : read
Access Addr : 00000000

Registers : EAX=00253D98 CS=7c97b268 EIP=00251E9C EFLGS=00253E74
: EBX=00253DD4 SS=253dd4 ESP=00253BF0 EBP=00253DD4
: ECX=00000001 DS=340808 ESI=0328BFF8 FS=00f0
: EDX=00000028 ES=7c910021 EDI=00251EA4 GS=328bff0

Stack Trace : 00253E74 00253DD4 0012EDBC 00253D0C
: 00253E74 00253DD4 0012EDBC 00253D0C
: 00253E74 00253DD4 0012EDBC 00253D0C
: 00253E74 00253DD4 0012EDBC 00253D0C

Modules :
1 : 00400000 004F6000 c:\program files\interbank fx trader 4\terminal.exe
2 : 03630000 002C5000 c:\windows\system32\xpsp2res.dll
3 : 05200000 0000B000 c:\program files\borland\delphi7\bin\borlndmm.dll
4 : 5AD70000 00038000 c:\windows\system32\uxtheme.dll
5 : 5B0A0000 00007000 c:\windows\system32\umdmxfrm.dll
6 : 5CD70000 00007000 c:\windows\system32\serwvdrv.dll
7 : 605D0000 00009000 c:\windows\system32\mslbui.dll
8 : 629C0000 00009000 c:\windows\system32\lpk.dll
9 : 662B0000 00058000 c:\windows\system32\hnetcfg.dll
10 : 71A50000 0003F000 c:\windows\system32\mswsock.dll
11 : 71A90000 00008000 c:\windows\system32\wshtcpip.dll
12 : 71AA0000 00008000 c:\windows\system32\ws2help.dll
13 : 71AB0000 00017000 c:\windows\system32\ws2_32.dll
14 : 72D10000 00008000 c:\windows\system32\msacm32.drv
15 : 72D20000 00009000 c:\windows\system32\wdmaud.drv
16 : 73DD0000 000FE000 c:\windows\system32\mfc42.dll
17 : 74720000 0004C000 c:\windows\system32\msctf.dll
18 : 74D90000 0006B000 c:\windows\system32\usp10.dll
19 : 755C0000 0002E000 c:\windows\system32\msctfime.ime
20 : 76380000 00005000 c:\windows\system32\msimg32.dll
21 : 76390000 0001D000 c:\windows\system32\imm32.dll
22 : 763B0000 00049000 c:\windows\system32\comdlg32.dll
23 : 769C0000 000B4000 c:\windows\system32\userenv.dll
24 : 76B40000 0002D000 c:\windows\system32\winmm.dll
25 : 76C30000 0002E000 c:\windows\system32\wintrust.dll
26 : 76C90000 00028000 c:\windows\system32\imagehlp.dll
27 : 76F20000 00027000 c:\windows\system32\dnsapi.dll
28 : 76F60000 0002C000 c:\windows\system32\wldap32.dll
29 : 76FB0000 00008000 c:\windows\system32\winrnr.dll
30 : 76FC0000 00006000 c:\windows\system32\rasadhlp.dll
31 : 77120000 0008B000 c:\windows\system32\oleaut32.dll
32 : 773D0000 00103000 c:\windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.2600.5512_x-ww_35d4ce83\comctl32.dll
33 : 774E0000 0013D000 c:\windows\system32\ole32.dll
34 : 77A80000 00095000 c:\windows\system32\crypt32.dll
35 : 77B20000 00012000 c:\windows\system32\msasn1.dll
36 : 77BD0000 00007000 c:\windows\system32\midimap.dll
37 : 77BE0000 00015000 c:\windows\system32\msacm32.dll
38 : 77C10000 00058000 c:\windows\system32\msvcrt.dll
39 : 77DD0000 0009B000 c:\windows\system32\advapi32.dll
40 : 77E70000 00092000 c:\windows\system32\rpcrt4.dll
41 : 77F10000 00049000 c:\windows\system32\gdi32.dll
42 : 77F60000 00076000 c:\windows\system32\shlwapi.dll
43 : 77FE0000 00011000 c:\windows\system32\secur32.dll
44 : 7C800000 000F6000 c:\windows\system32\kernel32.dll
45 : 7C900000 000AF000 c:\windows\system32\ntdll.dll
46 : 7C9C0000 00817000 c:\windows\system32\shell32.dll
47 : 7E410000 00091000 c:\windows\system32\user32.dll

Call stack :

 
It is not client terminal problem, it is your dll problem. You don't check pointers for NULL.
 

greeting,

how do i check the pointer for NULL, on metatrader editor or on my DLL function. thanks.

 
You need to check pointers in your dll
 

the problem solved. many thanks.

 
stanleylai:

the problem solved. many thanks.

how did you solved ?

Reason: