|
Well, if you don't like the Wait On Event solution (come on, that has to work, everybody uses it) and you don't want to use network functions, the only other thing I can think of is file change notifications or registry change notifications.
|
|
|
|
|
Don Rolando wrote: In a simple hello world application this worked pretty well; but in some other
application exactly the same approach never passes the second WaitOne(). Just as
if noone would call Set anymore (but the other process still
does!)
I bet you were doing work in there.
Do this instead.
1. Create a thread safe notify queue (just a queue which moves a flag)
2. Create a thread that does NOTHING but wait for the notification and post to the queue. For safety use a timeout.
3. Create another thread that does the work. It does the work when something shows up on the queue.
You can implement 1/2 completely independently from the real version of 3 using whatever simulated work load you want.
|
|
|
|
|
jschell wrote: I bet you were doing work in there.
You are right, I did. For testing purpose I was calling a dispatcher to show in the UI that the EventWaitHandle's thread received the signal.
When removing the line with the dispatcher call, it works.
Ahm, but why does the dispatcher corrupt the whole EventWaitHandler?
To be honest, your suggested approach is also some kind of custom dispatcher, isn't it?
Could you enlight me why this has influence on the EventWaitHandle at all?
|
|
|
|
|
I wasn't commenting on your specific implementation since I didn't know what it was.
Rather your description of why it failed suggested that a timing problem of some sort was involved.
|
|
|
|
|
Hi, when I insert Datagridviewcell.errortext = "message", the cell do not show the exclamation mark.
Could somebody tell me why this happen? thanks in advance.
|
|
|
|
|
Are you inserting it in the right place?
private void dataGridView1_CellValidating(object sender, DataGridViewCellValidatingEventArgs e)
{
dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].ErrorText = "NO!";
} Works for me...
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.
Manfred R. Bihy: "Looks as if OP is learning resistant."
|
|
|
|
|
Same place, same words, but did not show anything
Strange
|
|
|
|
|
i got Error when i try to connect to my WebService (on Windows-XP)
this the error:
Server Error in '/WS_MyWebService' Application.
--------------------------------------------------------------------------------
Failed to access IIS metabase.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.Hosting.HostingEnvironmentException: Failed to access IIS metabase.
The process account used to run ASP.NET must have read access to the IIS metabase (e.g. IIS:
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[HostingEnvironmentException: Failed to access IIS metabase.]
System.Web.Configuration.MetabaseServerConfig.MapPathCaching(String siteID, VirtualPath path) +637
System.Web.Configuration.MetabaseServerConfig.System.Web.Configuration.IConfigMapPath2.MapPath(String siteID, VirtualPath vpath) +9
System.Web.Hosting.HostingEnvironment.MapPathActual(VirtualPath virtualPath, Boolean permitNull) +174
System.Web.Hosting.HostingEnvironment.MapPathInternal(VirtualPath virtualPath, Boolean permitNull) +51
System.Web.CachedPathData.GetConfigPathData(String configPath) +341
System.Web.CachedPathData.GetConfigPathData(String configPath) +234
System.Web.CachedPathData.GetApplicationPathData() +38
System.Web.CachedPathData.GetVirtualPathData(VirtualPath virtualPath, Boolean permitPathsOutsideApp) +8809743
System.Web.Configuration.RuntimeConfig.GetLKGRuntimeConfig(VirtualPath path) +117
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3615; ASP.NET Version:2.0.50727.3618
thanks in advance
|
|
|
|
|
Did you install IIS after the Net framework?
If so, do a repair install of the net framework and all will be fine.
Panic, Chaos, Destruction. My work here is done.
Drink. Get drunk. Fall over - P O'H
OK, I will win to day or my name isn't Ethel Crudacre! - DD Ethel Crudacre
I cannot live by bread alone. Bacon and ketchup are needed as well. - Trollslayer
Have a bit more patience with newbies. Of course some of them act dumb - they're often *students*, for heaven's sake - Terry Pratchett
|
|
|
|
|
1) Go to Start | Control Panel | Add and Remove Programs
(2) Click on the entry titled Microsoft .NET Framework and select Change/Remove. The Microsoft .NET Framework Setup dialog box opens up.
(3) Select the option titled Repair and the setup automatically performs the required repair work.
(4) You will be prompted to reboot the system after the completion of the process.
(5) Run the affected ASP.NET application once again and the application should work fine without any problems.
|
|
|
|
|
i am working on microsoft ink sdk. or the tablet pc. using C#
i have some strokes which i want to modify mathematically. in GIF format or ISF format i dont know how to retrieve the pressure information of the modified stroke. the other way if i store the stroke in point form the pressure information is lost already.
what to do to get the pressure values for the modified stroke and in which format to handle ink.
|
|
|
|
|
In a standard image format (like GIF) there will be no pressure information. I can't find any information about 'ISF format' but if you have the definition of that file format you should be able to work out if there is pressure information retained in it.
|
|
|
|
|
Hi
modified on Friday, August 19, 2011 5:11 AM
|
|
|
|
|
I'm sorry, but you have posted this in the wrong forum. This is the C# forum, not the C++ one.
[edit]I see that you have been cross posting. Please don't do that - it's considered bad form.
|
|
|
|
|
Please don't cross post. In addition, this seems like a question which could be answered with a simple search.
|
|
|
|
|
Subin Mavunkal wrote:
Sorry.I already posted the same question on managed
c++ section Hi , I have a
template class like template public ref class MyBaseclass. I need
to inherit this class on another one like. public ref class
Derivedclass:MybaseClass. Could you please let me know whats the syntax
for doing like this ?Sorry I am new to VC++.
I ain't gonna say "please". Use your freakin' head - this is the C# forum. What makes you think that any rule of posting makes it okay to cross post into totally inappropriate forums?
"Sorry" just don't cut it.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997
|
|
|
|
|
modified on Friday, August 19, 2011 5:12 AM
|
|
|
|
|
Subin Mavunkal wrote: but try to respect others
Well thats a bit rude, asking someone else to respect others when you abuse one of the most fundamental rules here. You made a mistake, and therefore you have been smacked.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Subin Mavunkal wrote: being a good programmer in life is nothing
Careful there, This is a programming forum.
Subin Mavunkal wrote: I know extra talenteddumb men who lost their mind on simple things
Fixed.
Subin Mavunkal wrote: Is this the way to give answer? or teach something.
Yeah, this will teach you to not cross post into inappropriate forum.
Subin Mavunkal wrote: I thought that there are programmers who are familiar with more than one language.
Yes, there are, and they'll visit each of their favorite languages forum, if they have time.
Subin Mavunkal wrote: And that forum to vc++ seems like it is totally inactive
Be patient.
Excuse me for my improper grammar and typos.
It's because English is my primary language, not my first language.
My first languages are C# and Java.
VB, ASP, JS, PHP and SQL are my second language.
Indonesian came as my third language.
My fourth language? I'm still creating it, I'll let you know when it's done!
|
|
|
|
|
modified on Friday, August 19, 2011 5:12 AM
|
|
|
|
|
Had you bothered to read the guidelines[^] before you started, and selected the forum appropriate to your problem (this[^] or this[^]), then you would have got a reasonable response. You have also been a member of CodeProject long enough to have learned this by yourself.
|
|
|
|
|
I think his turban is wrapped too tight. You're wasting your time.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997
|
|
|
|
|
John Simmons / outlaw programmer wrote: You're wasting your time.
I know, but somehow I feel better for it.
|
|
|
|
|
The forum you want is this one[^] which has the same activity as the C# one. Your question had nothing to do with managed C++ or the CLI.
but try to respect others
Try to respect the rules of forums you post in.
|
|
|
|
|
Subin Mavunkal wrote: Bro.
I ain't your bro, and your attempt at placating me with non-existent familiarity offends me.
Follow the rules, or prepare to be harassed. It's as simple as that.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997
|
|
|
|