[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Debugging VC++ TS DLLs



PureBytes Links

Trading Reference Links

I'm curious to hear how others who develop custom DLLs debug them.

i.e. I have TS2000i indicators that use C++ code in DLLs.

Has anyone managed to find a way to step through the code with a debugger?

Ideas on how to translate Application Errors? e.g.:

	Exception code: C0000005 ACCESS_VIOLATION
	Fault address:  0812331B 01:0001231B
	C:\DEV\32BITDLL.DLL
	
	Registers:
	EAX:FFFFFFE4
	EBX:00B2EE44
	ECX:FFFFFFE4
	EDX:0817CF48
	ESI:04A21DA0
	EDI:009568EF
	CS:EIP:015F:0812331B
	SS:ESP:0167:00B2EC84  EBP:00B2EE2C
	DS:0167  ES:0167  FS:46DF  GS:0000
	Flags:00010286
	
	Call stack:
	Address   Frame     Logical addr  Module
	0812331B  00B2EE2C  0001:0001231B C:\DEV\32BITDLL.DLL
	00A057B9  00B2EE74  0000:00000000 
	60E55FDD  00B2EEB0  0001:00004FDD C:\PROGRAM FILES\OMEGA
RESEARCH\PROGRAM\ORLIB32.DLL
	60E567CC  00B2EF24  0001:000057CC C:\PROGRAM FILES\OMEGA
RESEARCH\PROGRAM\ORLIB32.DLL
	

In Unix, it's possible to attach a debugger to an already running process
or even a shared library.  Is this possible in Windows?

I'm using VC++ 5.0 (6.0 soon) and TS2000i.

Thanks,
Dave