Hi there.
I am using HMP 3.0 SU 361 on a Windows 7 64-bit, with a DNI board (connecting to an ISDN PRI) and 30 fax license.
My program is using the asynchronous poll mode (SR_MODEID = SP_POLLMODE, SR_MODELTYPE = SR_STASYNC), has one worker thread to handle all Dialogic devices. All Global Call, R4 APIs are called in EV_ASYNC, and sr_watievt() is used to poll for events from the devices.
The symptoms is, after fx_sendfax() is called, the program will crash while the next sr_waitevt() is called.
If fx_sendfax() is NOT called, then everything works fine, the program can handle calls (GCEV_xxx events) and can receive faxs (TFX_xxx events).
I turn on the RTF trace, and found something like this:
05/12/2016 19:07:28.143 2800 4684 spwrfax APPL r4 dxxxB5C1 <:::: fx_setparm(53, FC_LOCALID (0x83000010), 0xf391e1)
05/12/2016 19:07:28.143 2800 4684 spwrfax APPL r4 dxxxB5C1 <:::: fx_initstat(53, 0x1, 0x2451f96b)
05/12/2016 19:07:28.143 2800 4684 spwrfax APPL r4 dxxxB5C1 ::::> fx_initstat(), ret=0
05/12/2016 19:07:28.143 2800 4684 spwrfax APPL r4 dxxxB5C1 <:::: fx_sendfax(53, 0xf3923c, 0x10800c)
05/12/2016 19:07:28.143 2800 4684 spwrfax APPL r4 dxxxB5C1 ::::> fx_sendfax(), ret=0
05/12/2016 19:07:28.143 2800 1656 srl DEBG newsrl Libsrl DLL_THREAD_ATTACH
05/12/2016 19:07:28.143 2800 1656 srl DEBG newsrl DllMain returns
05/12/2016 19:07:28.193 2800 4684 srl APPL newsrl EV_ANYDEV <:::: sr_waitevt(t=50)
I've noticed that the "Libsrl DLL_THREAD_ATTACH" and "DllMain returns" appears before sr_waitevt(t=50) only if fx_sendfax() has been called.
Anyone has any idea?
Thanks in advance.
Luke Cheang