Re: getting help for a broad solution to KB297684 (which doesn't fix it)



Nobody???

Oh well, lets take it 1 step further then,
Another approach to solve this, via a wrapper methode. The goal is to
execute outlook as a child and keep a thread running that keeps the
smbLAN link alive(but uses resources from the outlook process):

#include <stdio.h>
#include <io.h>
#include <process.h>
int st1;

void send_exp();

int main(int argc, char *argv[])
/* y:\outlook\*.* "c:\Program Files\Microsoft Office\Office
\OUTLOOK.EXE" /options */
{
st1 = 1;
_beginthread(send_exp,2048,NULL);
spawnl(_P_WAIT,argv[2],argv[3],NULL);
st1 = 2;
_endthread();
exit(0);
}

void send_exp() {
while (st1=1) {
/* printf(argv[1]); argv[1] */
char **flist = findfiles("y:\\outlook\\*.*");
char **s = flist;
free(flist);
sleep(5000); /* 10.000 = 10 seconds */
}
exit(0);
}

This thing works(no more smb timeout!) but... problems to solve:
1. the thread does not want to terminate when outlook exits.
2. I can't get global variables to work in order to pass argv[1] to
send_exp.

.