
Lost threads in VB-Com component
J?rn, you should read the guidelines in the VB documentation on the kinds of
care you should take when using various thread models. Circular references and
passing references to private objects spring to mind as potential sources of
problems. I suggest reading this material, which is under "Scalability and
Multithreading".
Hercules Gunter
Quote:
> I have a web-site wich uses VB Exe-servers to fetch and format data.
> The servers are set to one-thread-per-object and works really fine.
> When I monitor the processes through the TaskMgr. I can see how the threads
> get created and destroyed.
> The problem is when I stress-test the system, and the processors runs nearly
> 100%,
> the programs seems to "loose" som threads and their memory, wich is retained
> in
> memory until I reboot the machine.
> I know the processes are finished, because I can see the result, but TaskMgr
> tells
> me otherwise. In one test I "lost" 200 threads and about 200MB memory.
> Is there anything I should be specially aware of when developing ActiveX
> Exe-servers
> for web use?
> Internally the components use MSXML-parser, and a load of SQL-server calls.
> Regards,
> J?rn Esbensen