Hi,
I am new to IAX, i had compile the IAX2 library and try with the
testcall program and its work fine. After that, i try to build application
under windows with Visual Basic 6.
I wrap the lib , build into dll file and exports the function, then i
call the dll from the VB application. When u compile and run, it also can
work fine which mean i can connect server and chat..but
When i close the application, the program crash, it throw few memory
Errors and shut down the VB IDE... i dont know what happen to it...i just
call five function to testing only...which is
1. initialize
2. setEncodeFormat
3.setSilenceThreshold
4.StartProcessing Thead
5 Call
all function is direct call from dll, so i dont think is problem coz by
code...
Then i try to dumpCalls and stopProcessingThread while application exit, but
it still crash.=( .After that, i add in few milliSleep function when
application exit, this time the application start properly and can close
normally without shut down the VB IDE...but the problem is
i found out the application only can work for first time only, which mean
after start the application first time and it work fine, the cant work at
second time and above.... I need to close the VB IDE and reopen again the
IDE, the application can work again but only the first time, then i need to
close and reopen again..
so , what problem with that, is it any resource capture by application didnt
release properly ? any one can help me..? How to make the application work
smoothly...? thanks for reply...
HSL
|