|
I have an MFC application that needs to open up to 2500 threads. I wrote a quick benchmarking app to find where the limit is on various OS's and configurations. On my work PC (Windows XP Pro SP2, 1.7MHz, 512MB RAM), the limit is 2008 threads. On an older NT PC, it was 1017, and on a newer Server 2003 PC (1GB RAM) the limit was 2015. I've tried changing the stack space allocated in AfxBeginThread. The numbers don't change. I always have plenty of physical memory still available after the limit is reached.
Is there a resource limit per process? Any other ideas?
|
|
|
|
|
codingmom3 wrote:
I have an MFC application that needs to open up to 2500 threads.
You're kidding, right? OK, assuming not, threads aren't free. Each thread gets a 1 MB stack, so once you open approximately 2000 threads, you will have exhausted your 2GB process space. Even if you change the stack size, the OS keeps internal data structures for each thread, which again use up process space. This has nothing to do with how much RAM is in the box, virtual memory is not the same as physical memory.
--Mike--
LINKS~! Ericahist | 1ClickPicGrabber | CP SearchBar v2.0.2 | C++ Forum FAQ | You Are Dumb
Strange things are afoot at the U+004B U+20DD
|
|
|
|
|
Hi guys is there anyone that use Windows 2003 server with MS SQL 2000 server.
Is MS SQL 2000 server compatible with this OS?
Thank YOU!!!
|
|
|
|
|
Yes, it is. When you try to install SQL Server, Windows Server will produce a warning message telling you to upgrade to SP3. You should still be able to complete the installation. You should then apply Service Pack 3 and the MS03-031[^] security patch. If you decide to apply this patch you should also consider applying the patch in KB 826161[^] to your Enterprise Manager installations. This patch fixes an issue where Enterprise Manager prompts for a new password when you make changes to a SQL Server login.
See also the KB article "Windows Server 2003 Support for SQL Server 2000"[^].
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
I now could get the usb controller device's SymbolicLink through the setupdixxx functions with the USB CONTROLLER device's GUID and also could get the usb controller's attributes,like: PID and VID.But this symbolicLink could NOT use in the CreateFile to get the usb disk's handle.
On the other hand, I also could get the usb disk's handle through the setupdixxx functions with the DISK device's GUID, But i cann't get the PID and UID through this handle!!
So my first problem is: how can i get the special usb DISK's handle.For example: a SONY usb disk and a Samsung usb disk are both plug on my pc. And i just want to get SONY disk's handle,not the Samsung usb disk.What should I do?
Second problem is: althrough I could get the usb DISK's handle, I could not get it's disk name,like "H:". Which function could help me to do that?
Pls, I really need some help.
Thank you very much.
|
|
|
|
|
Try to check this function[^], it might give you some idea.
|
|
|
|
|
Hi, I wonder one problem. I have a 2 PC name PC1 and PC2 . I have a share folder on PC1 with grand permission to Everyone and Read Permission. So when I mapped the drive from PC2 and access the file, it could read only and could not change anything.
But at the same time, I come back to the PC1 and change the permission on PC1 (and PC2 did not log off) that allow Everyone with Full control . Then I try to make change to the file and save but it is not allow. It said that I have the read permission only. But when I log PC2 off and log on again, I could do anything in the mapped drive (such as read, write, delete...).
From here, my question is: why do I need to log off PC2 after the PC1 change the permission??? The similar question is, why windows need to restart after we install some application???
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
The man from SCN-CO wrote:
why do I need to log off PC2 after the PC1 change the permission???
A mapped share is treated as a virtual local drive by Windows. I suspect that the drive attributes are only read at the time the connection is made, and are not refreshed on subsequent file access attempts.
The man from SCN-CO wrote:
why windows need to restart after we install some application???
Some applications provide new versions of system files that must be reloaded into memory before they are usable, and many include controls that must be registered. Also, changes made to the registry do not take effect until the registry files are reloaded. Rebooting accomplishes the refresh.
Matters have improved considerably; on older versions of Windows a reboot was required every time a setting was changed. When Win2K was launched, Microsoft made a major production of the fact that there were only five things one could do to Windows 2000 that require a restart! Much cheering ensued...
"If it's Snowbird season, why can't we shoot them?" - Overheard in a bar in Bullhead City
|
|
|
|
|
Thank you very much for your comment, that make me a have some concept about it why windows need to restart or logoff to take it affect.
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
About VPNs.
I have a domain at work with a Win2K Server and WinXP clients, and a standalone server that is not a member of a domain at home running Win2K Server. The work network is connected to the Internet via a free-standing Cisco Wireless Bridge. The home server is configured to accept incoming RAS connections from me, but no one else, and is connected to the Internet via a dedicated 802.11b radio link to my ISP. I successfully connected from my client at work today using PPTP and a WAN NDIS adapter, but accomplished little else. Two problems surfaced that I have no idea how to approach:
1. While connected, I was unable to connect to the Internet from my work client. As soon as I disconnected, Internet service returned to normal.
2. While connected to the VPN link, I could not browse anything on my home server, even though many folders are shared and the connection displayed normal background broadcast traffic volume between the hosts. I expected my computer and its shares to appear in My Network Places, but they never did.
I can live with #1 if I have to, but I need to be able to access and run software at home from the remote location. I can't very well do that if I can't "see" what's on my home server, so #2 is critical. Any clues would be most welcome. Take your time - I'll be here all weekend. And thanks, all, for any guidance.
"If it's Snowbird season, why can't we shoot them?" - Overheard in a bar in Bullhead City
|
|
|
|
|
Roger Wright wrote:
1. While connected, I was unable to connect to the Internet from my work client. As soon as I disconnected, Internet service returned to normal.
Try to check the product documentation with your cisco product, i'm not sure too but did you have any firewall service to block the internet port??? Another way is check the port of your HTTP or FTP whether it is allow to accept the connection or not (try check at the property TCP/IP filtering of your network connection).
Roger Wright wrote:
2. While connected to the VPN link, I could not browse anything on my home server, even though many folders are shared and the connection displayed normal background broadcast traffic volume between the hosts. I expected my computer and its shares to appear in My Network Places, but they never did.
I used to have the same problem like you too. But I did not figure out what is main problem (maybe the slow internet connection). In my opinion, if it is possible try to use Distribute File System (DFS) of an FTP site from your home computer. Sometime to solve the problem, I have to point the path from windows explorer by using the UNC path.
Hope this comment would give you some idea. You still have any problem please let me know.
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
Problem 1.) is explainable in retrospect - my client at work has its one NIC directly connected to my home computer via an encrypted tunnel. That means that all traffic, including http requests, is pumped into the tunnel and never reach the Internet per se. All packet go directly to my home server. There is a way to configure a split tunnel that I have yet to find, but I'm searching...
Problem 2.) has nothing to do with DFS or FTP - the FTP server is working great. It is more likely related to WINS, as I am unable to browse. Attempting to initiate browsing using the UNC name \\MAIN can't work if WINS is unable to resolve the name to an address. It's really annoying that, years ago, I was able to enter the IP address of my work server from home and instantly browse (and print a message to my boss) without using any fancy, secure VPN connections. I just added a new Network Place, typed in the address, and all the shares on the company server were available for browsing and editing/stealing. Now that I'm trying to do it the "right" way it becomes impossible.
"If it's Snowbird season, why can't we shoot them?" - Overheard in a bar in Bullhead City
|
|
|
|
|
|
The first time I was going to give you a 'B', but never mind.
"If it's Snowbird season, why can't we shoot them?" - Overheard in a bar in Bullhead City
|
|
|
|
|
|
|
|
Hi,
I'm administering this application (written in C++ with ATL) running under IIS 5. Sometimes (the provider doesn't yet know why), it throws an unmanaged exception. So Windows "kills" the process...well, watching the corresponding DLLHOST process with the Process Explorer, Windows unloads every dll loaded in the DLLHOST process, but it leaves the process "alive" with this files:
Unicode.nls
Locale.nls
Sortkey.nls
Sorttbls.nls
Ctype.nls
R000000000967.clb
The problem is that I've to kill the process with Task Manager, because even if I take the site down, IIS doesn't wipe this process. And what is the worst: IIS keeps receiving connections for this process, so if I didn't realize that the application was hung, connections keep increasing and lowering the server performance.
I would appreciate a hint about why Windows doesn't completely clean this DLLHOST process after the unmanaged exception.
Thanks,
Federico
|
|
|
|
|
Can we change the user(Account) password in Windows Nt through windows 98?If possible How? Thanks
|
|
|
|
|
chandu_74 wrote:
Can we change the user(Account) password in Windows Nt through windows 98?
What do you mean by through windows 98??? Using via the command line??? Using the remote access??? I think the most effective way is using the remote desktop.
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
The man from SCN-CO wrote:
the most effective way is using the remote desktop.
There was no Remote Desktop when WinNT was a curent OS. Using PCAnyWhere may be a possible solution - I know that at my last job, at a Yamaha dealer running WinNT, PCAnyWhere was what our POS software provider used to manipulate such settings, and it worked very well.
"If it's Snowbird season, why can't we shoot them?" - Overheard in a bar in Bullhead City
|
|
|
|
|
Roger Wright wrote:
There was no Remote Desktop when WinNT was a curent OS
I'm sorry that I have some a little bit confuse with the mean of the word. Yes, what i want to say is access the other PC via any prorgram that could using the remote computer. Such as PC anywhere, RealVNC...
Sorry for using the wrong meaning...!!!
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
go into ControlPanel -> Users (UserAccounts)
here u can change passowrd of the user
if u have accsess like administrator u can change is not so u can't
|
|
|
|
|
is there any software tool useful
about understanding the layers of operatig system?
|
|
|
|
|
i dont know of any software yet, but I can recommend a couple of good books, from http://www.deitel.com
*** - tx designs - ***
|
|
|
|
|