|
I do this to implement a synchronized method:
void MySychronizedMethod()
{
Monitor.Enter (this);
try {
}
...
finally {
Monitor.Exit (this);
}
}
I believe this is equivalent to:
void MySychronizedMethod()
{
lock (this) {
}
}
/ravi
My new year's resolution: 2048 x 1536
Home | Music | Articles | Freeware | Trips
ravib(at)ravib(dot)com
|
|
|
|
|
Note that you can make a method synchronous by decorating the method with the Synchronized method implemetation attribute.
using System.Runteim.CompilerServices;
...
[MethodImpl(MethodImplOptions.Synchronized)]
void MySynchronizedMethod()
{
}
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Little House on the Flickr
Judah Himango
|
|
|
|
|
as the subject says i try to use the axiom engine and wated to try out this tutorial:
http://www.cs.usask.ca/~djj734/AxiomTuts/Tut1/AxiomTut1.html
it looked very easy and i think i ve understood it.
but when i try to run the .exe i get this exception:
Das Element wurde bereits hinzugefügt. Schlüssel im Wörterbuch: "egyptrockyfull
.jpg" Hinzuzufügender Schlüssel: "egyptrockyfull.jpg"
at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add
)
at System.Collections.Hashtable.Add(Object key, Object value)
at Axiom.Core.ResourceManager.AddCommonArchive(String name, String type)
at Axiom.Utility.TechDemo.SetupResources()
at Axiom.Utility.TechDemo.Setup()
at Axiom.Utility.TechDemo.Start()
at AxiomTut1.Tut1.Main() in e:\downloads\visual studio projects\axiomtut1\tut
1.cs:line 77
-->
Das Element wurde bereits hinzugefügt. Schlüssel im Wörterbuch: "egyptrockyfull
.jpg" Hinzuzufügender Schlüssel: "egyptrockyfull.jpg"
<--
means (i try to translate):
the element was already added. key in the dictionary: "egyptrockyfull jpg" key which can be added: "egyptrockyfull.jpg"
....
i searched for "egyptrocky.jpg" and found it in the media directory and in the zipfile fresnel.zip
...
but if i delete one of them (or remove fresnel.zip from the engineconfig.xml) i get an other exeption
is there anybody who could help me plz
|
|
|
|
|
Did you happen to read the dsclaimer at the bottom of the page you supplied? Ask the person who wrote the tutorial! It's extremely unlikely that anyone here has gone through what your doing.
Disclaimer: I made my best attempt at a tutorial, but by no means know the ins and outs of everything Axiom. I hope it is all correct, and I hope it works well for you but if something is incorrect or does not work, please let me know so that it can be fixed. <br />
<br />
The address you can send a note to is meta@the-void.ca<br />
<br />
<br />
<br />
RageInTheMachine9532<font size="-1"><br />
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome</font>
|
|
|
|
|
Hi!
I'm testing data transfer to a web service (using VS.NET 2k3 and c#) and I've observed the following:
- passing and returning any simple type object works fine.
- passing and returning any array of simple type objects works fine too.
BUT
- passing and returning any array of objects of this class:
<br />
public class Type1 <br />
{<br />
protected int x;<br />
protected int y;<br />
<br />
public int X<br />
{<br />
get <br />
{<br />
return x;<br />
}<br />
}<br />
<br />
public int Y<br />
{<br />
get <br />
{<br />
return y;<br />
}<br />
}<br />
<br />
public Type1(int x,int y)<br />
{<br />
this.x = x;<br />
this.y = y;<br />
}<br />
}<br />
throws an exception.
My question is how to pass this correctly. Maybe using XML, but how?? I'm a bit newbie on this.
Thanks to anyone.
|
|
|
|
|
Please don't cross post.
---
b { font-weight: normal; }
|
|
|
|
|
what to do you mean with cross post? Posting on two boards? Sorry, I didn't know where to ask.
|
|
|
|
|
Hi all,
How can i create a serial number that will let the program know until what date it can be used?
importnant: i need the serial number to be short, somthing like this will be fine:
xxxx-xxxx-xxxx-xxxx-xxxx-xxxx
much longer than that would be bad.
Thanks alot,
Ran.;P
R.Z
|
|
|
|
|
|
Or try to deploy your project and there u can add a serial number or cd-key it aguation its output must be divisable by 7
|
|
|
|
|
Dear Frns,
I am using dataset to load a .DBF file ,the provider downlaoded is foxpro provider. But sometimes it gives a provider error ,I dont know why it is like this
Exception Raised is :
" The Provider could not determine the decimal value.For Example, the row was just created,the default for the Decimal column was not available,and the consumer had not yet set a Decimal Value "
I am able to load or fill dataset in some cases but sometimes it fails
Plz help me in this regard
hi it is rudra
|
|
|
|
|
I am using C# and i like to check if the the same application currntley run when i start the application .
M. Gamal
|
|
|
|
|
you can get all the processes that are currently executing and then check
whether ur application exists in those processes.
Regards,
Pramod
|
|
|
|
|
Can u send me the code of that check please ??
M. Gamal
|
|
|
|
|
Is it possible to include some .Net references to compiled file?
For example: I use Microsoft.Data.Odbc (I have installed "Odbc Net" additionally to Net.Framework), but if I run my programm on another computer all Microsoft.Data.Odbc functions dont work until I install there "Odbc Net".
Is it possible to make so that all: System, System.Windows.Forms, System.Drawing, Microsft.Data.Odbc libraries ... were included to compiled file?
|
|
|
|
|
|
I'm trying to create a windows service, and came about knowing that services require explicit installation. I'm still unsure of how to go about doing it after reading some references, hope for a simple explanation, thanks.
|
|
|
|
|
Search the Articles and ye shall find this[^].
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hello all,
I have try Bass API's for my application. But in that code when i Initialize that class(as all methods are static no object require) i face some error like.
when device is default(-1) then error BASS_ERROR_DEVICE,
When device is 0 then no sound & all other methods are fail.
When device is 1,2,.. then initialize success but all other method give error of "proeced memory access".
Plz any one give reply as fast as possible.
Divyang Mithaiwala
-- modified at 4:08 Saturday 21st January, 2006
|
|
|
|
|
You were already told that we really can't support your .DLL. It's VERY unlikely anyone who has ever used the .DLL will see your posts.
Again, your best shot at getting help with that library is the people who wrote it. Try asking questions about how to use their library in their support forums[^].
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
How to down size video file(mpeg, AVI, wmv)
- reduce bitrate video and bitrate audio
- reduce resolution
use C# code and detail
I want to see code and detail
|
|
|
|
|
How to reduce bitrate for music(mp3, wave, wma)
I want to reduce bitrate for music(mp3, wave, wma) with C#
I want to see code and ditail
|
|
|
|
|
Here's[^] a bit of an example on CodeProject.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I want to run a program when the computer is locked. Is there any easy way in C# to determine if a computer is locked?
|
|
|
|
|
Can you show me some examples about the diffence between Binary and Text file?Thank a lot.
Nothing
|
|
|
|