|
Hi,
I have just acquired a dual processer (SMP) machine for my latest database project (SQL Server & vb.net). It is working great. But when i check performance graph in my Windows Task Manager, it shows only one processor working to almost 100% and second processor pitching in only for short while befor going idle.
How do i develop my vb.net application that utilizes maximum of both the processor, like SQL Server itself and some graphics application like Ulead products while rendering graphics.
Note: I have tried to set the Affinity and Task priorities in Windows Task manager ... but with no success.
I assume it is some base architecture that utilizes multi-Processors, that i am lacking.
Any help would be much appreciated.
Regards,
msali.
|
|
|
|
|
Is your app written to use multi-threading?
Using a second processor doesn't happen automatically. You actually have to write your app to use mutiple threads of execution. Otherwise, you're running a single threaded app that only runs on a single processor.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Dear all,
I have a problem on how to get the PnP ID of a USB Thumbdrive. I will get the driveletter of the
thumbdrive, say "J" but not able to assoiciate the PnP ID of the USB device in that particular drive (ie J), instead the code given below is giving PnP ID of all the mounted thumbdrives
I will be very thankful if someone can get me the solution
code:
Dim obj, objs, buf
Set objs = GetObject("winmgmts:").InstancesOf("Win32_DiskDrive")
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set colDrives = objFSO.Drives
Dim drv As String
drv = "J"
For Each obj In objs
For Each objDrive In colDrives
buf = IIf((obj.InterfaceType = "USB") And (objDrive.DriveLetter = "J"), _ obj.PNPDeviceID, "")
buf = "Model: " & obj.Model & vbCrLf
buf = buf & "PnP Device ID: " & obj.PNPDeviceID & vbCrLf
msgbox buf
Next
Next
End Sub
thank you
Dinakara K
CAIR
Bangalore
|
|
|
|
|
You might want to do some research on this by reading and studying the code in this[^] article on MSDN.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Dear Dave,
Thanks for the reply.
I read the article but think it wont help for my problem
I will be glad to receive some more suggestions
Thank You
|
|
|
|
|
I've never had to get into that topic before.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hello..
Can anybody tell me how to give readonly access to some of the rows in datagrid while leaving others as non-readonly. I have binded a dataset with the datagrid.
Plz reply urgently
Take care
|
|
|
|
|
The idea is....
When the cell gets focus... depending on the conditions (in your case - rowNum) you can set the datarow column's ReadOnly property accordingly
<br />
Private Sub dg_RowChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)<br />
Try<br />
Me.Cursor = System.Windows.Forms.Cursors.WaitCursor<br />
idCol.ReadOnly = True<br />
If "condition" Then<br />
idCol.ReadOnly = False<br />
End If<br />
Catch ex As Exception<br />
MessageHandler.HandleError(ex)<br />
Finally<br />
Me.Cursor = System.Windows.Forms.Cursors.Default<br />
End Try<br />
End Sub<br />
P.S. idCol - will be a column which will be made readOnly in this case
"He that is good with a hammer tends to think everything is a nail." - Abraham Maslow
|
|
|
|
|
vb.net 2003
Crystal rept 9
I make a package using merge modules
and follow the crystal report rules.
the package install in win98 is not working.
Got the error msg given below. The problem is
Crystal report viewer. But I use microsoft viewer
have no problem in win98.How can I solve this problem.
(I installed framework everything)
WINDOWSAPPLICATION13.EXE - Common Language Runtime Debugging Services
Application has generated an exception that could not be handled.
Process id=0xfffc886b (-227221), Thread id=0xfffc7cb3 (-230221).
Click OK to terminate the application.
Click CANCEL to debug the application.
Microsoft (R) Common Language Runtime Test Debugger Shell Version 1.1.4322.573
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.
(cordbg) a 0xffe3366b
Process -1886613/0xffe3366b created.
Warning: couldn't load symbols for c:\windows\microsoft.net\framework\v1.1.4322\
mscorlib.dll
Warning: couldn't load symbols for C:\PROGRAM FILES\DEFAULT COMPANY NAME\SETUP9\
WINDOWSAPPLICATION13.EXE
Warning: couldn't load symbols for c:\windows\assembly\gac\system.windows.forms\
1.0.5000.0__b77a5c561934e089\system.windows.forms.dll
Warning: couldn't load symbols for c:\windows\assembly\gac\system\1.0.5000.0__b7
7a5c561934e089\system.dll
Warning: couldn't load symbols for c:\windows\assembly\gac\system.drawing\1.0.50
00.0__b03f5f7f11d50a3a\system.drawing.dll
Warning: couldn't load symbols for c:\program files\default company name\setup9\
axinterop.crviewer9lib.dll
00.0__b03f5f7f11d50a3a\system.drawing.dll
Warning: couldn't load symbols for c:\program files\default company name\setup9\
axinterop.crviewer9lib.dll
[thread 0xfffdf187] Thread created.
Unable to determine existence of prolog, if any
[thread 0xffe2590f] Thread created.
[thread 0xfffdf187] Unhandled exception generated: (0x04fd3344) <system.runtime.
interopservices.comexception>
_className=<null>
_exceptionMethod=<null>
_exceptionMethodString=<null>
_message=(0x04fd3448) "Class not registered"
_innerException=<null>
_helpURL=<null>
_stackTrace=(0x04fd34c0) array with dims=[120]
_stackTraceString=<null>
_remoteStackTraceString=<null>
_remoteStackIndex=0x00000000
_HResult=0x80040154
_source=<null>
_xptrs=0x00000000
_xcode=0xe0434f4d
[0099] mov ecx,esi
(cordbg)
anybody help me
Continue...
|
|
|
|
|
put the cd key in the license.msm merge module file and compile the project for deployment.
|
|
|
|
|
Hello. I have a homework assignment where we have a status bar which value comes from a percentage of "done" work. Don't worry, you're not doing the assignment for me. Already got the formula set up and it works, but would like to have a percentage along with the progress bar's value. This isn't part of the assignment, but I would like to add it to make a little more professional. I noticed there is a property .text. No text actually shows up. Is this possible?
|
|
|
|
|
Hello!
To show the current value of progress bar you can use the property VALUE of progress bar like,
Var=ProgressBar1.Value
Now you can add up a Timer and on each timer tick, update the status bar with the variable 'Var'.
_mubashir
|
|
|
|
|
Is it possible to have text show up in the progress bar?
Thanks for the reply!
|
|
|
|
|
Not with the intrinsic Progress Bar control.
You can create your own progress bar that you fill in and draw the text using your own painting algorithm.
This was easy in VB6, in VB.NET, not so much.
|
|
|
|
|
I'm a newbie, how would I go about creating my own?
|
|
|
|
|
You'll have to creat your own ProgressBar class, inheriting from ProgressBar. Then you'll override the OnPaint event and draw the progressbar and text yourself.
But, if you go through this, consider that you might go too far and your prof will suspect you didn't write the code. Have you even come close to covering inheriting from other classes? Have you covered overrides? Have you covered drawing your own controls?
Yeah, this stuff might get you extra credit, but it's a bunch of work for a little credit.
I only say this, because in a class I took, I got accused of not writing the code myself. It turned into a huge mess with accusations of plagerism. I was able to wiggle my way out of it by having the prof give me a different assignment and I wrote it right in front of him.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Ok, not just wanting to do it for extra points. It would be nice if I could get it done in time to do so. It's actually an application I could use in everyday stuff and would like to have it for that too. But I'll give it the good old try and if I don't get it, oh well. Thanks!
|
|
|
|
|
Hmm....
I cant find any property of progress bar to display text...
but you can place the progress bar in a separate form and place a label on top of it and update the label text on timer tick with the desired text...
Remember you should explicitly update the text...
_mubashir
|
|
|
|
|
How to send and recive file with winsocket???
I try end get error the socket is not open or connection not established!!!
But HOST and Clien are connected...!
|
|
|
|
|
Without seeing any of your code, it's impossible to tell you what you'r doing wrong. The description you've given is too vague to be of any use in troubleshooting your problem.
How are you trying to transfer this file? How is this connection being made? What does the client code for this look like? The server code?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Im intrested for some large FAQ or Help file about Winsocket?
Some link ....i try with google but nothing usefull not found so if sombody has sam good tutorial ....To send or link to download....
Tnx and sory about missundrstend.
|
|
|
|
|
I typed vb6 winsock tutorial[^] into Google and came up with dozens of useful tutorials on the subject.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I want to be able to open my application from Windows Explorer by right clicking on a file and selecting Open With and the name of my application.
How do I get my application to open the selected file?
Thanks
|
|
|
|
|
How do I create a realtime workstation map statistic view? Thanks if you can show me how to....
|
|
|
|
|
kevinator05 wrote:
a realtime workstation map statistic view
And that would be a ________?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|