473,769 Members | 2,365 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 4196
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
1769
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
991
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
5015
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
9586
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
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
10043
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
9990
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
9861
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
8869
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7406
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6672
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5446
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.