MFC & ATL + Netware problem
-
I have script host embeded inside my MFC & ATL app. It mostly reads/executes JScript code sending results back to MFC View to be displayed. Program runs very fast when started from local drive, also I can place all scripts on shared netware volume and it will still take less then 1sec to display interface. Trouble comes when executable is placed on netware volume. It takes 25sec to display first screen vs << 1sec local. After that everything runs fast again. Profile lists CWinThread::PumpMessage 27.9 seconds AfxWinMain 31.8 seconds IsLink 4.5 seconds CMDIFrame::DefWindowProcA 3.5second Not entirely unexpected as looks like system is waiting.... Numega TrueTime even more dramatic: Application time: 0.29% System Time : 99.71% System Time: WaitForMultipleObjectsEx 99% This function has been called by LoadRegTypeLib 90% and GetFileAttribEx - 5%.... Those function called 100% by SetScriptState(SCRIPTSTATE_CONNECTED); Have anybody seen such behaviour???? Any1 aware of any issues btw Netware and MFC & ATL? P.S. I tried to SetCurrentDirectory to temp and it had no imact... Compress executable with UPX... UPX unpacks file inside env "C:\TEMP" still darn 25seconds plus to start.... Any suggestions.... Thanks Brian