473,756 Members | 3,973 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Why does call to Process.GetCurr entProcess() access the floppy drive?

Everytime I call Process.GetCurr entProcess() the system goes out to the
floppy drive. Why does this happen. I decided to use FileMon to get a log
of what is happening when this occurs. Here is the log:

1 4:31:10 PM BlockedConfigAp :1340 IRP_MJ_CREATE A: DASD SUCCESS Attributes:
Any Options: Open
2 4:31:11 PM BlockedConfigAp :1340 IRP_MJ_DEVICE_C ONTROL A: DASD INVALID
DEVICE REQUEST IOCTL: 0x560000
3 4:31:11 PM BlockedConfigAp :1340 IRP_MJ_CLEANUP A: DASD SUCCESS
4 4:31:11 PM BlockedConfigAp :1340 IRP_MJ_CLOSE A: DASD SUCCESS

Can someone tell me how to prevent the floppy drive access from occurring
when this call is performed?

--
-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.
va***@diebold.c om
-----------------------------------
Jul 19 '05 #1
8 4195
Ken Varn wrote:
|| Everytime I call Process.GetCurr entProcess() the system goes out to
|| the floppy drive. Why does this happen. I decided to use FileMon
|| to get a log of what is happening when this occurs. Here is the log:
||
|| 1 4:31:10 PM BlockedConfigAp :1340 IRP_MJ_CREATE A: DASD SUCCESS
|| Attributes: Any Options: Open
|| 2 4:31:11 PM BlockedConfigAp :1340 IRP_MJ_DEVICE_C ONTROL A: DASD
|| INVALID DEVICE REQUEST IOCTL: 0x560000
|| 3 4:31:11 PM BlockedConfigAp :1340 IRP_MJ_CLEANUP A: DASD SUCCESS
|| 4 4:31:11 PM BlockedConfigAp :1340 IRP_MJ_CLOSE A: DASD SUCCESS
||
|| Can someone tell me how to prevent the floppy drive access from
|| occurring when this call is performed?
||
|| --
|| -----------------------------------
|| Ken Varn
|| Senior Software Engineer
|| Diebold Inc.
|| va***@diebold.c om
|| -----------------------------------

No floppy access when I call GetCurrentProce ss() on XP and W2k3.
Are you sure this happens when calling GetCurrentProce ss()? What OS version, version of the framework are you running on?

Willy.
Jul 19 '05 #2
I am running .NET Framework 1.1.4322. on a Windows 2000 Pro machine with SP4
on it.

Since my function is calling Process.GetCurr entProcess().Pr ocessName, it
could be happening on the ProcessName
property call, but it is definitely happening on either GetCurrentProce ss or
GetCurrentProce ss.ProcessName.

--
-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.
va***@diebold.c om
-----------------------------------
"Willy Denoyette [MVP]" <wi************ *@skynet.be> wrote in message
news:ep******** ********@TK2MSF TNGP12.phx.gbl. ..
Ken Varn wrote:
|| Everytime I call Process.GetCurr entProcess() the system goes out to
|| the floppy drive. Why does this happen. I decided to use FileMon
|| to get a log of what is happening when this occurs. Here is the log:
||
|| 1 4:31:10 PM BlockedConfigAp :1340 IRP_MJ_CREATE A: DASD SUCCESS
|| Attributes: Any Options: Open
|| 2 4:31:11 PM BlockedConfigAp :1340 IRP_MJ_DEVICE_C ONTROL A: DASD
|| INVALID DEVICE REQUEST IOCTL: 0x560000
|| 3 4:31:11 PM BlockedConfigAp :1340 IRP_MJ_CLEANUP A: DASD SUCCESS
|| 4 4:31:11 PM BlockedConfigAp :1340 IRP_MJ_CLOSE A: DASD SUCCESS
||
|| Can someone tell me how to prevent the floppy drive access from
|| occurring when this call is performed?
||
|| --
|| -----------------------------------
|| Ken Varn
|| Senior Software Engineer
|| Diebold Inc.
|| va***@diebold.c om
|| -----------------------------------

No floppy access when I call GetCurrentProce ss() on XP and W2k3.
Are you sure this happens when calling GetCurrentProce ss()? What OS version, version of the framework are you running on?
Willy.

Jul 19 '05 #3
Ken,

I can answer why this happens.

Internally the current 1.0 and 1.1 frameworks call performance counters as
part of the Process object. As the perf system initializes, it will load
in various perf objects. When the disk object loads, it will enumerate the
known disks (this is Windows 2000). The disk performance counters changed
between Windows 2000 and XP (2k3).

This posting is provided "AS IS" with no warranties, and confers no rights.

Jul 19 '05 #4
hi, Ken

Peter asked me to follow up with you.. There is no supported way to do
this on Win2K. If you want to try something speculative, you can disable
the disk perf counters.
HKLM\SYSTEM\Cur rentControlSet\ Services\Perfdi sk\performance

Add a DWORD value called "Disable Performance Counters" and set it to 1.
No disk monitoring will work now. But their perf will increase.

To reenable these counters, you should delete the key, or set it to 0

This is an ugly, ugly solution, and we do NOT recommend using it. A better
solution would be to physically disconnect the floppy drive, given how
rarely they are used these days.

Please get back to me if you have further questions.

HTH,

John Eikanger
Microsoft Developer Support

This posting is provided “AS IS” with no warranties, and confers no rights.
(c) 2003 Microsoft Corporation. All rights reserved.
--------------------
| Reply-To: "Ken Varn" <va***@diebold. com>
| From: "Ken Varn" <va***@diebold. com>
| References: <ur************ **@TK2MSFTNGP10 .phx.gbl>
<ep************ **@TK2MSFTNGP12 .phx.gbl>
<Oy************ **@TK2MSFTNGP12 .phx.gbl>
<8O************ **@cpmsftngxa06 .phx.gbl>
| Subject: Re: Why does call to Process.GetCurr entProcess() access the
floppy drive?
| Date: Tue, 15 Jul 2003 12:33:48 -0400
| Lines: 30
| X-Tomcat-NG: microsoft.publi c.dotnet.genera l
|
| Is there anyway to configure Win 2000 so that it does not go to the floppy
| drive for performance counters? This really kills application performance
| when the floppy drive is accessed.
|
| --
| -----------------------------------
| Ken Varn
| Senior Software Engineer
| Diebold Inc.
| va***@diebold.c om
| -----------------------------------
| "Peter Davidson [MS]" <pe******@onlin e.microsoft.com > wrote in message
| news:8O******** ******@cpmsftng xa06.phx.gbl...
| > Ken,
| >
| > I can answer why this happens.
| >
| > Internally the current 1.0 and 1.1 frameworks call performance counters
as
| > part of the Process object. As the perf system initializes, it will
load
| > in various perf objects. When the disk object loads, it will enumerate
| the
| > known disks (this is Windows 2000). The disk performance counters
| changed
| > between Windows 2000 and XP (2k3).
| >
| > This posting is provided "AS IS" with no warranties, and confers no
| rights.
| >
|
|
|

Jul 19 '05 #5
Thanks. That seems to work.

I would think that disconnecting the floppy drive is a much uglier solution
than disabling disk performance counters.

--
-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.
va***@diebold.c om
-----------------------------------
"John Eikanger [MSFT]" <jo****@online. microsoft.com> wrote in message
news:L5******** ******@cpmsftng xa06.phx.gbl...
hi, Ken

Peter asked me to follow up with you.. There is no supported way to do
this on Win2K. If you want to try something speculative, you can disable
the disk perf counters.
HKLM\SYSTEM\Cur rentControlSet\ Services\Perfdi sk\performance

Add a DWORD value called "Disable Performance Counters" and set it to 1.
No disk monitoring will work now. But their perf will increase.

To reenable these counters, you should delete the key, or set it to 0

This is an ugly, ugly solution, and we do NOT recommend using it. A better solution would be to physically disconnect the floppy drive, given how
rarely they are used these days.

Please get back to me if you have further questions.

HTH,

John Eikanger
Microsoft Developer Support

This posting is provided "AS IS" with no warranties, and confers no rights. (c) 2003 Microsoft Corporation. All rights reserved.
--------------------
| Reply-To: "Ken Varn" <va***@diebold. com>
| From: "Ken Varn" <va***@diebold. com>
| References: <ur************ **@TK2MSFTNGP10 .phx.gbl>
<ep************ **@TK2MSFTNGP12 .phx.gbl>
<Oy************ **@TK2MSFTNGP12 .phx.gbl>
<8O************ **@cpmsftngxa06 .phx.gbl>
| Subject: Re: Why does call to Process.GetCurr entProcess() access the
floppy drive?
| Date: Tue, 15 Jul 2003 12:33:48 -0400
| Lines: 30
| X-Tomcat-NG: microsoft.publi c.dotnet.genera l
|
| Is there anyway to configure Win 2000 so that it does not go to the floppy | drive for performance counters? This really kills application performance | when the floppy drive is accessed.
|
| --
| -----------------------------------
| Ken Varn
| Senior Software Engineer
| Diebold Inc.
| va***@diebold.c om
| -----------------------------------
| "Peter Davidson [MS]" <pe******@onlin e.microsoft.com > wrote in message
| news:8O******** ******@cpmsftng xa06.phx.gbl...
| > Ken,
| >
| > I can answer why this happens.
| >
| > Internally the current 1.0 and 1.1 frameworks call performance counters as
| > part of the Process object. As the perf system initializes, it will
load
| > in various perf objects. When the disk object loads, it will enumerate | the
| > known disks (this is Windows 2000). The disk performance counters
| changed
| > between Windows 2000 and XP (2k3).
| >
| > This posting is provided "AS IS" with no warranties, and confers no
| rights.
| >
|
|
|

Jul 19 '05 #6
Hi, Ken

From a software perspective hacking the registry this way is like eating
your lunch over the PC motherboard. You REALLY want to do this as little
as possible.

Peter's recommendation is still don't do this. If you must do this, flip
this key value in code just before you call Process.GetCurr entProcess() and
restore it afterward. You do NOT want to leave perf counters disabled.
Make sure you check which OS you are using and only do this on Win2K. If
this is used on a limited set of machines, Get them upgraded to WinXP or
Win2k3 as soon as you can.

HTH,

John Eikanger
Microsoft Developer Support

This posting is provided “AS IS” with no warranties, and confers no rights.
(c) 2003 Microsoft Corporation. All rights reserved.
--------------------
| Reply-To: "Ken Varn" <va***@diebold. com>
| From: "Ken Varn" <va***@diebold. com>
| References: <ur************ **@TK2MSFTNGP10 .phx.gbl>
<ep************ **@TK2MSFTNGP12 .phx.gbl>
<Oy************ **@TK2MSFTNGP12 .phx.gbl>
<8O************ **@cpmsftngxa06 .phx.gbl>
<eB************ **@TK2MSFTNGP10 .phx.gbl>
<L5************ **@cpmsftngxa06 .phx.gbl>
| Subject: Re: Why does call to Process.GetCurr entProcess() access the
floppy drive?
| Date: Wed, 16 Jul 2003 10:40:29 -0400
| Lines: 94
| Organization: Diebold Inc.
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <#C************ **@TK2MSFTNGP11 .phx.gbl>
| Newsgroups: microsoft.publi c.dotnet.genera l
| NNTP-Posting-Host: 204.151.249.23
| Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP11.phx.g bl
| Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.genera l:101356
| X-Tomcat-NG: microsoft.publi c.dotnet.genera l
|
| Thanks. That seems to work.
|
| I would think that disconnecting the floppy drive is a much uglier
solution
| than disabling disk performance counters.
|
| --
| -----------------------------------
| Ken Varn
| Senior Software Engineer
| Diebold Inc.
| va***@diebold.c om
| -----------------------------------
| "John Eikanger [MSFT]" <jo****@online. microsoft.com> wrote in message
| news:L5******** ******@cpmsftng xa06.phx.gbl...
| > hi, Ken
| >
| > Peter asked me to follow up with you.. There is no supported way to do
| > this on Win2K. If you want to try something speculative, you can
disable
| > the disk perf counters.
| > HKLM\SYSTEM\Cur rentControlSet\ Services\Perfdi sk\performance
| >
| > Add a DWORD value called "Disable Performance Counters" and set it to 1.
| > No disk monitoring will work now. But their perf will increase.
| >
| > To reenable these counters, you should delete the key, or set it to 0
| >
| > This is an ugly, ugly solution, and we do NOT recommend using it. A
| better
| > solution would be to physically disconnect the floppy drive, given how
| > rarely they are used these days.
| >
| > Please get back to me if you have further questions.
| >
| > HTH,
| >
| > John Eikanger
| > Microsoft Developer Support
| >
| > This posting is provided "AS IS" with no warranties, and confers no
| rights.
| > (c) 2003 Microsoft Corporation. All rights reserved.
| > --------------------
| > | Reply-To: "Ken Varn" <va***@diebold. com>
| > | From: "Ken Varn" <va***@diebold. com>
| > | References: <ur************ **@TK2MSFTNGP10 .phx.gbl>
| > <ep************ **@TK2MSFTNGP12 .phx.gbl>
| > <Oy************ **@TK2MSFTNGP12 .phx.gbl>
| > <8O************ **@cpmsftngxa06 .phx.gbl>
| > | Subject: Re: Why does call to Process.GetCurr entProcess() access the
| > floppy drive?
| > | Date: Tue, 15 Jul 2003 12:33:48 -0400
| > | Lines: 30
| > | X-Tomcat-NG: microsoft.publi c.dotnet.genera l
| > |
| > | Is there anyway to configure Win 2000 so that it does not go to the
| floppy
| > | drive for performance counters? This really kills application
| performance
| > | when the floppy drive is accessed.
| > |
| > | --
| > | -----------------------------------
| > | Ken Varn
| > | Senior Software Engineer
| > | Diebold Inc.
| > | va***@diebold.c om
| > | -----------------------------------
| > | "Peter Davidson [MS]" <pe******@onlin e.microsoft.com > wrote in message
| > | news:8O******** ******@cpmsftng xa06.phx.gbl...
| > | > Ken,
| > | >
| > | > I can answer why this happens.
| > | >
| > | > Internally the current 1.0 and 1.1 frameworks call performance
| counters
| > as
| > | > part of the Process object. As the perf system initializes, it will
| > load
| > | > in various perf objects. When the disk object loads, it will
| enumerate
| > | the
| > | > known disks (this is Windows 2000). The disk performance counters
| > | changed
| > | > between Windows 2000 and XP (2k3).
| > | >
| > | > This posting is provided "AS IS" with no warranties, and confers no
| > | rights.
| > | >
| > |
| > |
| > |
| >
|
|
|

Jul 19 '05 #7
The Win2K install is on our own device hardware that we control. So
changing the registry is not a problem since we distribute both hardware and
software as a complete system.

It sounds like there is some other issue with disabling disk performance
counters. Is there some negative ramification in doing this? I know that
in Windows NT they were off by default. Is there some reason why they are
on by default in Win2K?

--
-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.
va***@diebold.c om
-----------------------------------
"John Eikanger [MSFT]" <jo****@online. microsoft.com> wrote in message
news:uk******** ******@cpmsftng xa06.phx.gbl...
Hi, Ken

From a software perspective hacking the registry this way is like eating
your lunch over the PC motherboard. You REALLY want to do this as little
as possible.

Peter's recommendation is still don't do this. If you must do this, flip
this key value in code just before you call Process.GetCurr entProcess() and restore it afterward. You do NOT want to leave perf counters disabled.
Make sure you check which OS you are using and only do this on Win2K. If
this is used on a limited set of machines, Get them upgraded to WinXP or
Win2k3 as soon as you can.

HTH,

John Eikanger
Microsoft Developer Support

This posting is provided "AS IS" with no warranties, and confers no rights. (c) 2003 Microsoft Corporation. All rights reserved.
--------------------
| Reply-To: "Ken Varn" <va***@diebold. com>
| From: "Ken Varn" <va***@diebold. com>
| References: <ur************ **@TK2MSFTNGP10 .phx.gbl>
<ep************ **@TK2MSFTNGP12 .phx.gbl>
<Oy************ **@TK2MSFTNGP12 .phx.gbl>
<8O************ **@cpmsftngxa06 .phx.gbl>
<eB************ **@TK2MSFTNGP10 .phx.gbl>
<L5************ **@cpmsftngxa06 .phx.gbl>
| Subject: Re: Why does call to Process.GetCurr entProcess() access the
floppy drive?
| Date: Wed, 16 Jul 2003 10:40:29 -0400
| Lines: 94
| Organization: Diebold Inc.
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <#C************ **@TK2MSFTNGP11 .phx.gbl>
| Newsgroups: microsoft.publi c.dotnet.genera l
| NNTP-Posting-Host: 204.151.249.23
| Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP11.phx.g bl
| Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.genera l:101356
| X-Tomcat-NG: microsoft.publi c.dotnet.genera l
|
| Thanks. That seems to work.
|
| I would think that disconnecting the floppy drive is a much uglier
solution
| than disabling disk performance counters.
|
| --
| -----------------------------------
| Ken Varn
| Senior Software Engineer
| Diebold Inc.
| va***@diebold.c om
| -----------------------------------
| "John Eikanger [MSFT]" <jo****@online. microsoft.com> wrote in message
| news:L5******** ******@cpmsftng xa06.phx.gbl...
| > hi, Ken
| >
| > Peter asked me to follow up with you.. There is no supported way to do | > this on Win2K. If you want to try something speculative, you can
disable
| > the disk perf counters.
| > HKLM\SYSTEM\Cur rentControlSet\ Services\Perfdi sk\performance
| >
| > Add a DWORD value called "Disable Performance Counters" and set it to 1. | > No disk monitoring will work now. But their perf will increase.
| >
| > To reenable these counters, you should delete the key, or set it to 0
| >
| > This is an ugly, ugly solution, and we do NOT recommend using it. A
| better
| > solution would be to physically disconnect the floppy drive, given how
| > rarely they are used these days.
| >
| > Please get back to me if you have further questions.
| >
| > HTH,
| >
| > John Eikanger
| > Microsoft Developer Support
| >
| > This posting is provided "AS IS" with no warranties, and confers no
| rights.
| > (c) 2003 Microsoft Corporation. All rights reserved.
| > --------------------
| > | Reply-To: "Ken Varn" <va***@diebold. com>
| > | From: "Ken Varn" <va***@diebold. com>
| > | References: <ur************ **@TK2MSFTNGP10 .phx.gbl>
| > <ep************ **@TK2MSFTNGP12 .phx.gbl>
| > <Oy************ **@TK2MSFTNGP12 .phx.gbl>
| > <8O************ **@cpmsftngxa06 .phx.gbl>
| > | Subject: Re: Why does call to Process.GetCurr entProcess() access the
| > floppy drive?
| > | Date: Tue, 15 Jul 2003 12:33:48 -0400
| > | Lines: 30
| > | X-Tomcat-NG: microsoft.publi c.dotnet.genera l
| > |
| > | Is there anyway to configure Win 2000 so that it does not go to the
| floppy
| > | drive for performance counters? This really kills application
| performance
| > | when the floppy drive is accessed.
| > |
| > | --
| > | -----------------------------------
| > | Ken Varn
| > | Senior Software Engineer
| > | Diebold Inc.
| > | va***@diebold.c om
| > | -----------------------------------
| > | "Peter Davidson [MS]" <pe******@onlin e.microsoft.com > wrote in message | > | news:8O******** ******@cpmsftng xa06.phx.gbl...
| > | > Ken,
| > | >
| > | > I can answer why this happens.
| > | >
| > | > Internally the current 1.0 and 1.1 frameworks call performance
| counters
| > as
| > | > part of the Process object. As the perf system initializes, it will | > load
| > | > in various perf objects. When the disk object loads, it will
| enumerate
| > | the
| > | > known disks (this is Windows 2000). The disk performance counters | > | changed
| > | > between Windows 2000 and XP (2k3).
| > | >
| > | > This posting is provided "AS IS" with no warranties, and confers no | > | rights.
| > | >
| > |
| > |
| > |
| >
|
|
|

Jul 19 '05 #8
This is a known bug which will be fixed in next release.
The reason is that Process is trying to get index for some performance
counters.

Thanks,
Gang Peng
[MS]

"Ken Varn" <va***@diebold. com> wrote in message
news:Oy******** ******@TK2MSFTN GP12.phx.gbl...
I am running .NET Framework 1.1.4322. on a Windows 2000 Pro machine with SP4 on it.

Since my function is calling Process.GetCurr entProcess().Pr ocessName, it
could be happening on the ProcessName
property call, but it is definitely happening on either GetCurrentProce ss or GetCurrentProce ss.ProcessName.

--
-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.
va***@diebold.c om
-----------------------------------
"Willy Denoyette [MVP]" <wi************ *@skynet.be> wrote in message
news:ep******** ********@TK2MSF TNGP12.phx.gbl. ..
Ken Varn wrote:
|| Everytime I call Process.GetCurr entProcess() the system goes out to
|| the floppy drive. Why does this happen. I decided to use FileMon
|| to get a log of what is happening when this occurs. Here is the log:
||
|| 1 4:31:10 PM BlockedConfigAp :1340 IRP_MJ_CREATE A: DASD SUCCESS
|| Attributes: Any Options: Open
|| 2 4:31:11 PM BlockedConfigAp :1340 IRP_MJ_DEVICE_C ONTROL A: DASD
|| INVALID DEVICE REQUEST IOCTL: 0x560000
|| 3 4:31:11 PM BlockedConfigAp :1340 IRP_MJ_CLEANUP A: DASD SUCCESS
|| 4 4:31:11 PM BlockedConfigAp :1340 IRP_MJ_CLOSE A: DASD SUCCESS
||
|| Can someone tell me how to prevent the floppy drive access from
|| occurring when this call is performed?
||
|| --
|| -----------------------------------
|| Ken Varn
|| Senior Software Engineer
|| Diebold Inc.
|| va***@diebold.c om
|| -----------------------------------

No floppy access when I call GetCurrentProce ss() on XP and W2k3.
Are you sure this happens when calling GetCurrentProce ss()? What OS

version, version of the framework are you running on?

Willy.


Jul 19 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1887
by: Anil Kumar Narayanan | last post by:
This is the DIR command of MS-DOS and works for a floppy drive media.. it retrieves all the files whether deleted or not from the floppy drive.. but i was unsuccessful in getting the Date and Time Format.. So if any of u have any info on how to get the Date and Time please forward me through an email.. I would appreciate that.. //--------------------------- F*****K IT COMPANIES --------------- #include <stdio.h> #include <conio.h>...
9
347
by: Ken Varn | last post by:
Everytime I call Process.GetCurrentProcess() the system goes out to the floppy drive. Why does this happen. I decided to use FileMon to get a log of what is happening when this occurs. Here is the log: 1 4:31:10 PM BlockedConfigAp:1340 IRP_MJ_CREATE A: DASD SUCCESS Attributes: Any Options: Open 2 4:31:11 PM BlockedConfigAp:1340 IRP_MJ_DEVICE_CONTROL A: DASD INVALID DEVICE REQUEST IOCTL: 0x560000 3 4:31:11 PM BlockedConfigAp:1340...
1
1526
by: Sandy | last post by:
Is there a way to detect if a disk has been put in the floppy drive? Thank You! Sandy
3
1766
by: Just Me | last post by:
In code I check to see if the Floppy drive is ready and display it's state. But if the user inserts or removes a floppy disk I need an event or a Wndproc message to cause the code to display the new state. Is the some way the code can be alerted to the fact that a removable disk drive's state changed? I wonder if the above isn't clear.
0
990
by: Ken Varn | last post by:
This is a very strange problem that I cannot figure out. It only seems to be happening on my development machine when I browse locally. I have isolated the problem area down to where My ASP.NET page makes a call to Process.GetCurreentProcess. Once this call is made, that is when the problem seems to occur. Now, about the problem. As soon as I close my web browser, and re-open it again, I cannot browse ANY web pages on any host...
3
1137
by: Colin | last post by:
Is there a way to prevent running an .exe from the floppy drive?
5
4491
by: Benzi Eilon | last post by:
I have written a C# application which should run as a Windows Service. I must avoid having multiple instances of the application on one machine so I inserted the following code at the beginning of the Main() function: // if this is not the first instance of this application, exit // immediately. Allow only one instance in the system if (Process.GetProcessesByName(Process.GetCurrentProcess().ProcessName).Length > 1)
1
5014
by: Matthew Lock | last post by:
Hello, I get some strange behaviour after calling a method on a third party library when I call: System.Diagnostics.Process.GetCurrentProcess().StartTime If I run the following code it works as expected: try { MapInfo.Engine.Session.Current.Catalog.OpenTable(@"C:
3
3900
by: tshad | last post by:
I need to find out how many threads a process has. I have used ThreadPool.GetAvailableThreads and ThreadPool.GetMaxThreads, but they both show 50 for worker threads and 100 for port threads. This stays the same as each thread is opened up. After 3 or 4 are open the numbers are the same. How can I get the number of threads if this doesn't work? Thanks,
0
9271
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10031
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9869
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9838
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9708
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5140
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3805
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3354
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2665
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.