Get Core And Memory Clocks Of Gpu Using Win32_VideoController?

Feb 8, 2012

How can i get the core and memory clocks of the gpu using the Win32_VideoController?

View 1 Replies


ADVERTISEMENT

Make A Code That Sends One Application Or Program In 1 Core And Other Application In Other Core?

Jan 29, 2010

I'm using VB 2008, and I have a dual core computer.Is it possible to make a code that sends one application or program in 1 core, and other application in the other core?

View 1 Replies

Clocks Routine & Daylight Savings Time

May 28, 2011

I have a form that has clocks for Hawaii, Pacific, Mountain, Central, Easter, GMT/UT, UK, Germany, Mumbai, Manila and China.I assigned a timer to tick the seconds and wrote the following code for the tick:[code]

View 8 Replies

Using More Than One Of Cpu Core?

Feb 9, 2011

i have intel core quad cpu but my program cant use more than one of cores(it use 25% of cpu power but i want use 50% and more).

affinity is "<All Processors>" and all of cores are selected.

is there any way can use more than 50% of cpu power.

View 6 Replies

Set A Certain Thread To Run On The 2nd Core?

Dec 21, 2009

how i can set a certain thread to run on the 2nd core for eg...

View 8 Replies

For Loop CPU 25% Single Core

Oct 15, 2010

For loop CPU 25% single core

View 6 Replies

Possible To Split Up Threads (currently 6) So That 3 Run On Each Core?

Oct 18, 2011

I have a VB.NET app that spawns several threads for performing XML parsing/database interaction. Only one of my cores (only have 2 currently) is being used right now.I've looked at Task Parallelism in .NET 4 but I need to be able to start a task at different times (not all at once).Is it possible to split up the threads (currently 6) so that 3 run on each core? Also, if I don't want to limit my threads to 6, how can I check CPU/memory programmatically to find out if I can start another thread.

View 2 Replies

Use The Core Audio API In VB 2010?

May 20, 2012

I've been trying, without any luck whatsoever, to figure out how to use the Core Audio API in VB 2010. I started by downloading a wrapper dll located here: [URL]

[Code]...

View 2 Replies

.net - Null Reference Exception DNN Core 5.6.3

Jul 26, 2011

My site has been running fine for sometime now until recently I see in the event viewer a null reference exception in the DNN core:

DotNetNuke.Common.Globals.GetStatus() in

F:BuildsMaintenanceWorkingDirectoryLibraryCommonGlobals.vb:line
1125 at DotNetNuke.Common.Initialize.InitializeApp(HttpApplication
app) in

[code]....

the line 1125 is:

_Status = UpgradeStatus.None

Which is a property of the Globals class and an Enum Also when this happens it doesnt just do it once then sort its self it does it roughly every minute for an hour or so.I made sure all dataprovider.instances are either in a using or a try catch finally or self closing(if the reader is not used)?

View 2 Replies

Calcualte CPU Usage For An X-Core Machine?

Aug 2, 2010

Trying to make a badly archictected system work. In doing so we have ourselves in a postion of shelling mulitple instances of a program and managing the running processes. On startup the shelled program is CPU intensive and we need to limit the rate that we initiate the instances based on the CPU load. How do you calculate the CPU load of a multicore system?

View 1 Replies

Change Priority And Core Using For Each Process?

Feb 24, 2009

How can i change a process using only 1 core instead of 2 cores? Also, how can I set different prioritys to each process?As it does not save the settings which i put to each process in taskmanager on restart, i decided to make a program so i could simply click a button so it would change the settings for each process i want.For example:With a simple button click it changes msnmsgr.exe priority to low and makes it use only the 1st core.

View 2 Replies

VS 2010 Adding System.Core?

Feb 5, 2010

Somehow the reference to System.Core got removed from one of my projects, which I think is causing some issues. If I try to re-add it to my references I get a message saying "A reference to 'System.Core' could not be added. This component is already automatically referenced by the build system". I think I need this reference because it is there when I start a new project by default

View 1 Replies

Where Is Microsoft.Office.Core.NewFile

Apr 20, 2012

I'm getting the error below trying to open a new workbook in Excel:

Imports Microsoft.Office.Core
...
Dim myExcel As New Excel.Application

[code].....

View 1 Replies

C# - Multithreading On A Multi Core Machines Not Maxing CPU?

Jul 14, 2009

I am working on maintaining someone else's code that is using multithreading, via two methods:

1: ThreadPool.QueueUserWorkItem(New WaitCallback(AddressOf ReadData), objUpdateItem)

2: Dim aThread As New Thread(AddressOf LoadCache) aThread.Start()

However, on a dual core machine, I am only getting 50% CPU utlilization, and on a dual core with hyperthreadin enabled machine, I am only getting 25% CPU utilization. Obviously threading is extremely complicated, but this behaviour would seem to indicate that I am not understanding some simple fundamental fact?

[code]...

And this is occurring in a recursive function, so the QueueUserWorkItem can be executing multiple times, which in turn then executes exactly one new thread via the aThread.Start

Hopefully that gives a decent idea of how things are happening. under this scenario, should this not theoretically pin both cores, rather than maxing out at 100% on one core, while the other core is essentially idle?

View 6 Replies

Collect Information From Core Temp And Use It As A Variable Within VB?

Dec 25, 2011

collect information from core temp ( how to gain information about the CPU directly from the motherboard or windows E.G temperature CPU name ) and use it as a variable within VB.

View 3 Replies

Thread Affinity In Multi-core System?

Nov 29, 2011

I was going to hijack another, related, thread to ask this, but I figured it derserved its own thread.The question I have is whether or not anybody has done sufficient testing to show whether a mutlithreaded program running on a multi-core system will spread the threads across all available cores, or whether it has some affinity for the core used by the main process (UI thread, or whatever it may be)? The reason I ask is because I remember a discussion over in General Computing where somebody showed that, for at least one case, all the threads were splitting time on a single core of a multi-core processor. I am wondering if that is the typical behavior, or an isolated case?

View 23 Replies

Timers Under Windows 7 Dual Core Processors ?

Aug 27, 2010

After I upgraded from Windows Xp to Windows 7 on any dual core cpu machine my programs that use a simple timer function run incorrectly. The program works with the exact same hardware under Windows Xp and Windows Server 2003. I am using Visual Studio 2005 to write .NET Visual Basic programs that use 2 timers to count down. The first timer, timer1, is set to a value say 150000 ms (150 seconds). The second timer, timer2, is set to 1000ms (1 second). Both timers are enabled one right after the other from a button click event and begin. The timer2 routine running every second updates a label counting down the seconds. When timer1 fires it disables itself and exits. Timer2 also checks to see if timer1 is still running if it is not it will stop. Under Windows Xp and Windows Server 2003 the resulting count in the label is 0 when timer2 detects timer1 has finished. Under Windows 7 when timer1 stops timer2 is not at 0 it is 3 for 150 seconds and gets larger the more timer1 is increased. It appears to me timer2 is not being fired every 1000ms as it was under Windows Xp.

I have included the Visual Basic code below. If you want to test it just run Visual Studio and create a new project. Put the buttons, numericupdown, and labels in your form and past my code into the correct buttons. I have used these type of timer events for years without any problems unit Windows 7. Windows 7 on a single core Pentium 4 with hyperthreading turned on works fine. Windows 7 on a dual core E6500 fails, Windows Server 2003 works.

Public Class Form1

Dim I As Integer

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

[CODE]...

View 2 Replies

Loading An Image From A Jpeg That Exists In Memory (but Not On Disk) Using Direct Memory Access

Nov 5, 2009

In VB 2005, I am calling a C++ DLL function that returns the address in memory and size in bytes of a jpeg image. How can I load that jpeg image directly from memory into a picture box in my VB form? I cannot afford to save it to disk first.

View 10 Replies

Attempted To Read Or Write Protected Memory / Often An Indication That Other Memory Is Corrupt

May 22, 2007

Im getting a problem with one of my programs I have made in visual basic.NET where it gives me a memory error when i debug the program in the IDE. the exact error is this: "Attempted to read or write protected memory. This is often an indication that other memory is corrupt". My program basically has a few forms with text fields on that get their text values from an access database on the same hard drive. Im wondering if im doing something wrong because my program just seems to eat up memory whenever it does anything. For example I have one form that has a combobox on it and when you change the drop down list selection it retreives a few strings from the database and puts them into the relevant text boxes, if you keep changing the selection then the memory usage (in task manager) just keeps going up and up. occasionally I get the error mentioned above when debugging but in my built version of the program it throws an exception everytime the memory usage gets past 49K.

Also I noticed when debugging in the "immediate window" frame I get the following message often:A first chance exception of type 'System. Invalid OperationException' occurred in System.Data.dll...Do I need to somehow be "releasing" the memory that is used to gather data once it becomes redundant?

View 12 Replies

Attempted To Read Or Write Protected Memory. This Is Often An Indication That Other Memory Is Corrupt

Nov 24, 2011

I am using the following code

This error occurs :

Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

Public Class FormRegEnumValue

[CODE]......................

View 2 Replies

Attempted To Read Or Write Protected Memory. This Is Often An Indication That Other Memory Is Corrupt?

Feb 1, 2009

QuoteSystem.AccessViolationException was unhandled Message="Attempted to read or write protected memory. This is often an indication that other memory is corrupt." Source="System.Windows.Forms"

Im designing a web browser and i continue to receive this error after going to about 3 websites it crashes with that error.

View 6 Replies

Necessary To Detach Event Handlers To Ensure That Memory Is Cleaned Up And That There Are Not Memory Leaks?

Jan 20, 2010

I have a BackgroundWorker object that I instantiated to perform a DB process on a background thread ansynchronously. I have event handlers for DoWork and RunWorkerCompleted. I can tell that the BackgroundWorker is disposing of itself because I added a message box into the Disposed event handler.Is it necessary to detach the event handlers to ensure that the memory is cleaned up and that there are not memory leaks?

View 1 Replies

Thread And Memory Leaks - Memory Usage Jumps About 1000k And It Never Goes Back Down

Apr 17, 2011

I've noticed that every time I start a new thread in my program, the memory usage jumps about 1000k and it never goes back down. I have ensured that the thread is no longer running, and only one instance of my worker thread is ever running at a time. I am using ThreadPool.QueueUserWorkItem and ASyncOperation to get stuff done. The program starts using a Sub Main in a module that uses STAThread; I read that using STAThread instead of MTAThread makes it impossible for the Garbage Collector to get in and consider objects for garbage collection. However, when I change the STAThread to an MTAThread, the WebBrowser control in my frmMain cannot be instantiated.

I get this exception:

Code: An unhandled exception of type 'System.Threading.ThreadStateException' occurred in System.Windows.Forms.dll

Additional information: ActiveX control '8856f961-340a-11d0-a96b-00c04fd705a2' cannot be instantiated because the current thread is not in a single-threaded apartment. I do threading with the WebBrowser control, so will using MTAThread fix my problem? If so, how should I partition my code so that the WebBrowser control won't be affected by the above exception? I call the thread repeatedly with a timer (although only one instance ever runs at a time), and my program's memory usage starts at about 5000k and can jump to 300,000k+ depending on many times the thread needs to be called.

View 6 Replies

.net - Multi-core Processor Pegged Even When All Threads Are Just Sleeping?

Mar 3, 2010

I'm simulating some threading in a Windows Service, and the Thread.Start routine for each of my threads points directly to the following:

Private WithEvents CheckForOrdersTimer As System.Threading.Timer
Private Sub timerCheckForContracts_Tick(ByVal stateInfo As Object)
' Ticks every 5 seconds, then spawns threads until we're at our max
Do

[code]....

the threads aren't even doing anything yet, but with more than two threads running at the same time, my processor (Core 2 Duo 2.4 w/ 4GB) gets pegged and Windows gets really sluggish. According to what I've read, Thread.Sleep shouldn't be consuming any resources at all while it waits, but it may as well be running in a tight timing loop.

EDIT: Per the requests, I've expanded the amount of code I'm using. I was initially doing some database work before spawning each thread, but I've removed it and the processor maximization still occurs with just the code here (and, of course, the OnStart method for the Windows Service.

View 4 Replies

Multi-core Processor Pegged Even When All Threads Are Just Sleeping?

Mar 5, 2012

I'm simulating some threading in a Windows Service, and the Thread.Start routine for each of my threads points directly to the following:

Private WithEvents CheckForOrdersTimer As System.Threading.Timer
Private Sub timerCheckForContracts_Tick(ByVal stateInfo As Object)
' Ticks every 5 seconds, then spawns threads until we're at our max

[code].....

View 3 Replies

VS 2010 Referenced Component System.Core Could Not Be Found?

Mar 24, 2011

When my application loads in Visual Studio 2010 I see this warning. Everything runs ok in it as far as I'm aware but I'm completely ignorant in this area. Could that cause me a problem and is there a way to replace that component? There is also the other warning you see in the screenshot.

Quote:Warning1Namespace or type specified in the project-level Imports 'System.Linq' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.

I did a search for the entire solution and it didn't turn up any Sysem.Linq anywhere. I looked at every Imports statement in my project and I don't have any Imports System.Linq anywhere unless it's somewhere where Visual Studio's quick find search doesn't see it.

View 4 Replies

2008 Express Edition: Attempted To Read Or Write Protected Memory, This Is Often An Indication That Other Memory Is Corrupt?

May 27, 2009

I cannot use Visual Basic 2008 at all. When I go to "new project" and choose "Windows Form Application" I get this error.I have tried multiple uninstall/reinstall with no result.A microsoft reply to this suggested that I needed: " .NET Framework 2.0 Service Pack 1 " I checked, and I did not have the .netframework 2.0 service Pack 1.
When I tried to download and install the above from Microsoft.com, the istaller said that "it was not allowsed" and I was not able to install the service pack 1.

I tried Uninstalling net framework 3.5, 3.0, 2.0 and then reinstalling .netframework 2.0 sevice pack 1; then reinstalling Visual basic 2008 express edition. At the reinstall of Visual basic 2008, .netframework 2.0 sevice pack 1 is unistalled by .net framework service pack 2.When I check the foruims for simiar problems, the formus are mostly for Visual basic 5.0, or other programs that I do not have.

Here is the programs I have installed:

Operating system: Windows XP
Microsoft .net framework 1.1
Microsoft .NET framwork 1.1 Hotfix(KB928366)
Microsoft .Net Framework 2.0 Service Pack 2

[code]....

All the security updates and hotfixes for Widows XP.

View 4 Replies

DirectoryEntry Memory Leak - Gets A Out Of Memory Error In The Last Catch Statement?

Jan 11, 2012

The follow code can be called about 6K times on the server it is run on then gets a out of memory error in the last catch statement. I don't see what is wrong with the code, it works well up until the out of memory..

Public Function AddUserToGroup(ByVal sSamAccountName As String, ByVal sGroupName As String) As Boolean
Try
Dim returnStatus As Boolean = True[code]......

View 3 Replies

Read Or Write Protected Memory Often An Indication That Other Memory Is Corrupt?

Feb 9, 2011

I have two forms, Form1 and Form2. Form2 has a button to show OpenFileDialog. I call Form2 from Form1 by a button. My startUp Form is Form1. When i start debugging, i press my Form1's button to show my Form2, it shows, but when i click On Form2's Button to show OpenFileDialog it is giving me exception that

"Attempted to read or write protected memory. This is often an indication that other memory is corrupt."

When i set my startup Form to Form2 and click Form2's Button to show OpenFileDialog then it shows!

View 13 Replies

Motherboards Do Expose Core Temperatures In WMI / ACPI Thermal Zone?

Jun 7, 2012

I'm currently working on a Visual Basic program that should be able to show CPU temperatures.To do this the cleanest way (in my opinion), I would like to use the Windows Management Interface (WMI) using
MSAcpi_ThermalZoneTemperature.Now, to my understanding, this requires that motherboard (MOBO) manufacture exposes these values to the WMI, which almost nobody actually do, but if they do, a "device" should show
up in the device manager called ACPI Thermal Zone under System Devices (let me know if I'm wrong).

As I would like to test my program and my current MOBO (Gigabyte GA-H67A-USB3-B3) doesn't seems to expose CPU temperatures to WMI (no

[Code]...

View 9 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved