|
Hi.
Well you don't have to use a lock statement on the picturebox itself: you can use a specially assigned locker object for that (there's more about it in the article I linked to in the previous post). The same goes for having a user make settings: You can have the user make any setting outside of the lock, shortly acquire it to apply the changed settings and then release it for your camera.
I have to say I really don't think the PictureBox control was meant for this kind of usage though. I'd look for a different approach, perhaps using DirectShow.
Hope this helps, cheers.
Standards are great! Everybody should have one!
|
|
|
|
|
Thanks for the reply and the information
Regards,
The only programmers that are better that C programmers are those who code in 1's and 0's
Programm3r
My Blog: ^_^
|
|
|
|
|
Hi all
I have done some reports with help of crystal report in asp.net,C#(2.0).
Its running fine local but while uploading them on server ,its unable
to show page.
how can I resolve this problem?
Amitava
|
|
|
|
|
Hi,
Kindly help me that, How may I change TCP/IP setting using C# coding?
Lot of Thankx in Advance
(Riaz)
|
|
|
|
|
|
Hi,
Could you compile it then run it in debug mode and post the error message please.
Guy
You always pass failure on the way to success.
|
|
|
|
|
GuyThiebaut wrote: Could you compile it then run it in debug mode and post the error message please.
Sorry if I caused a misunderstanding, but there is no error message nor error, it's just that, while the camera is being initialized in the delegates the screen hangs until the initialization has finished ...
Any suggestions ?
Thanks for the reply
Regards,
The only programmers that are better that C programmers are those who code in 1's and 0's
Programm3r
My Blog: ^_^
|
|
|
|
|
Have you tried threading the initialisation process?
Use the background worker to initialise the camera and once it has been initialised make it available though your app.
You always pass failure on the way to success.
|
|
|
|
|
GuyThiebaut wrote: Use the background worker to initialise the camera and once it has been initialised make it available though your app.
No I haven't ... not even sure how to do something like that
Thanks for the reply
Regards,
The only programmers that are better that C programmers are those who code in 1's and 0's
Programm3r
My Blog: ^_^
|
|
|
|
|
Just been in a meeting so did not have time to post this clickety
You always pass failure on the way to success.
|
|
|
|
|
Try BeginInvoke() for asynchronous execution of the delegate.
|
|
|
|
|
Hi,
Thanks for the reply ... But it doesn't make a difference
Regards,
The only programmers that are better that C programmers are those who code in 1's and 0's
Programm3r
My Blog: ^_^
|
|
|
|
|
I had a second look at your code snippet. I guess that this (on which you call Invoke) ist your control. You may try to call BeginInvoke on the delegate itself.
|
|
|
|
|
I just wat to add that the function that is accosiated with the delegate is updating controls on the form. Will this xcause the problem?
The only programmers that are better that C programmers are those who code in 1's and 0's
Programm3r
My Blog: ^_^
|
|
|
|
|
Yes, since you need to do any updates to the UI from the thread they were created on (this would usually be the main thread in your program). I suggest using a BackgroundWorker[^]. You can assign it to do all non UI related work in DoWork and then use ReportProgress and RunWorkerCompleted to update your UI in a thread safe way.
Standards are great! Everybody should have one!
|
|
|
|
|
|
Programm3r,
Just on a side note, you don't need to declare two delegates. Only one. Since a delegate is determined by the params its passed.
Just thought i'd tell you that so it saves you time in the future if you need to use a lot of delegates. I hope you understand, if not, say so and i'll find a URL that explains it better.
Regards,
Gareth.
|
|
|
|
|
Hi Everybody,
I have an application, in which many parameters has to be combined and it has to be encrypted and then it has to be resized to a smaller text and the it has to be stored and in future this has to be expanded and I have to decrypt and restore the same parameters.
Can any one help in this regard?
Thanks a lot in advance.
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
Chain some streams together. You want to write your data to a compression stream and feed that to an encryption stream.
Going the other way read from a decryption stream to a decompression stream to a normal stream.
This http://support.microsoft.com/kb/307010[^] tells you about encryption streams.
Off the top of my head I believe there is a compression stream somewhere in .NET2.0. If not the free assembly ICSharpZipLib has what you need.
Regards,
Rob Philpott.
|
|
|
|
|
My question pertains to the native code.
When i underwent the following line ----
When you compile code that uses the .NET Framework library, you don't immediately create operating system–specific native code. Instead, you compile your code into Microsoft Intermediate Language (MSIL) code. This code isn't specific to any operating system and isn't specific to C#.
Just-in-Time (JIT) compiler compiles MSIL into native code that is specific to the OS.
I understood that native code is the binary code (0,1)
Am i right ?
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
Yes.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
Pankaj Garg wrote: I understood that native code is the binary code (0,1)
Am i right ?
Not really, no. Binary is a number system. Native code is referring to Machine Code[^]
led mike
|
|
|
|
|
Hello,
I am using Domain Specific Language(DSL) tool to create some task flows.
We can add Icon Decorator in DSL designer which can contain an image but this image can not be modified at run time.
How should i make sure that the DSL can supply the default image as an Icon Decorator but it can be overridden at run time?
Thanks.
|
|
|
|
|
Getting the current cpu temperature is proving very very difficult.
Ive looked into WMI which although there is a WIN32_temperatureProbe [CurrentReading] this is not currently
availble (future production) or is very limited to certain boards.
So Ive hunted around and come across that I can get the information via Ring0 access!
Great! errrh.......what do I do?
So I havent found any info on how to actually program this (apart from c# wont work with it).
I really just want a assembly object that my c# can call
1.amount of cpu(and cores)
2. cpu temp?
has anyone or does aanyone got the know how on how to do this?
being a c# and vb programmer my knoweldge is limited.
|
|
|
|
|
ziwez0 wrote: I can get the information via Ring0 access
ring0 basically means kernel level in windows world, which is to be expected if you want to query hardware properties and state. you have found the way to interact with kernel through
ziwez0 wrote: WIN32_temperatureProbe . You can't improve much on this, and not at all in managed code.
CPU usage is another thing, which u can access through managed code(c#). Try looking into System.Diagnostics namespace especially PerformanceCounter class and related.
there are no facts, only interpretations
|
|
|
|