|
skmckkie wrote: Is it some problem with RPC threads ?
I never heard about RPC thread. Do you mean your thread does RPC? Your question is not clear. Please post relevant code and explain your issues clearly.
|
|
|
|
|
I guess the threads are waiting on an auto-reset event.
Try it with a manual reset event.
«_Superman_»
|
|
|
|
|
I am developing multilingual application.
Font size for fields is 9.
It gives preview & print perfectly.
But, when i am exporting report to word. it resets font size to 12(for Hindi & Gujarati Font).
Also, when i am exporting report to PDF, it doesn't show Hindi & Gujarati Data.
I have checked same issue with 8,10,11 size font also, it always resets to 12.
|
|
|
|
|
I am also having the similar issue. in PDF, Hindi characters are not printed correctly.
And even when I print, it generates the PDF itself so I am having the same issue in print also. I tried to change print type to ActiveX but no success, it still printed in PDF format.
Have you found any solution to it?
Lalit.
|
|
|
|
|
This question maybe VB.Net specific, as I've never written interfaces using C#.
I have created an interface, IMine . When I create a class and add Implements IMine , the IDE automatically generates and inserts stubs to implement the interface.
I would like to add XML comments and DescriptionAttribute s to the interface code to document what the various items are for, and have those comments and attributes auto-generated in the implementing class along with the stubs. Is there any way to do this?
|
|
|
|
|
They write that they have only "experimental" support for VB.NET, but you might want to look at GhostDoc[^]. GhostDoc will copy the comments on base classes and interfaces to the new child class.
"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
|
|
|
|
|
Whenever I call Directory.Exists, it returns false, so I try and create it, and get an Access Denied. If it doesn't exist, the create works. I believe this is due to permissions, but I can delete, populate, and create directories, I just can't check if they exist. This is most puzzling.
|
|
|
|
|
Works for me running a C# Console app. under my domain account which of course has access to the location I was checking.
|
|
|
|
|
Hi,
from the symptoms you described, this could well be a bug in your code, failing to check existence
properly, and failing to create a directory that already exists (and was created by someone considered different from yourself).
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
|
|
|
|
|
Hello everybody in this forum , i would like to ask one question
i am developing a .Net remoting task , in which there is a server to publish a remote object that is registered on a definite port and a client which calls that remote object based on the remote uri of the remote object from the server .
now , in my task , when i run the server and the client , everything goes very well but i would like to run multiple client instances on the same machine .
when i do that it tells me "http channel is already registered" because in the client program i register an http channel but i would like to run multiple clients here is the code in the server.
<br />
HttpChannel channel = new HttpChannel(6064);<br />
<br />
ChannelServices.RegisterChannel(channel);<br />
<br />
RemotingConfiguration.RegisterWellKnownServiceType(typeof(RemotingManager), "RemotingManager.soap", WellKnownObjectMode.Singleton);<br />
and in the client side
<br />
<br />
HttpChannel mychannel = new HttpChannel();<br />
ChannelServices.RegisterChannel(mychannel);<br />
IRemotingManager mgr = (IRemotingManager)Activator.GetObjcet(typeof(IRemotingManager),"http://localhost:6064/RemotingManager.soap");<br />
......................<br />
.......................<br />
so when i run the client program it works so well and it fetches the remote object and everything goes well , but when i run multiple instances of the client program it tells me "the http channel is already registered" is there any way around that ?????
please help , i need to run multiple instances of the same client program on the same machine without having this port conflict ....
Thanks in advance.
Human knowledge belongs to the world.
|
|
|
|
|
snouto wrote: but when i run multiple instances of the client program it tells me "the http channel is already registered"
What happens if you try to Activate the second instance after that error?
Also, it's not a good idea to post code that doesn't compile unless you are asking about a compiler error.
snouto wrote: Activator.GetObjcet
This tells us you did not post your actual code that executes since that won't even compile. Therefore we can't trust anything we are looking at.
|
|
|
|
|
sorry mike , it is activator.GetObject(...) , but you still didn't reply to me about the core problem not mistypo ....
Look Deeper inside the core not the pheriphery
thanks
Human knowledge belongs to the world.
|
|
|
|
|
snouto wrote: but you still didn't reply to me about the core problem
Yes I did
led mike wrote: What happens if you try to Activate the second instance after that error?
|
|
|
|
|
if you think so , so your place is not here in code project
Human knowledge belongs to the world.
|
|
|
|
|
|
snouto wrote: your place is not here in code project
The gold triangle says it is. He did answer your question - he asked you what happened if you tried to open the second object anyway. It is possible for multiple instances to talk to the same port - it is not possible for the same port to be opened up many times. Work your way round that issue and you will find the answer.
|
|
|
|
|
can you explain more please your answer . how can i open multiple instances to talk to the same port , you mean to create a tcpchannel and give it a specific port like
TCPChannel mychannel = new TcpChannel(3030);
for example .
or put a port in the httpchannel constructor , can you clarify using a demo line of code for that port section , thanks for you
Human knowledge belongs to the world.
|
|
|
|
|
Nice Post Pete O! Surely you have solved his problem! Let me look at his reply..
Oh dear, what a shame.
Look at the time! It flies by when you're, ummm doing whatever this is.
Have a great weekend dude!
|
|
|
|
|
I need a XML parser which uses XML schema.Plz help.
|
|
|
|
|
If you mean that you need an XML parser that reads an XML schema, then you're in luck because an XML schema file is written in XML! Any ol' XML parser will do, including the one(s) in System.XML .
Now, if you mean that you want to validate an XML document against an XML schema, that's a whole 'nother ball of wax. A really good place to start is at Validating XML Data with XmlReader[^].
"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
|
|
|
|
|
Hi,
I try to understand what is sync block index in reference type -
I google it and still did not find anything that explain it in way i understand.
Can someone please explain what is it ?
Thanks.
|
|
|
|
|
It's a very scary and 'under-the-hood' kind of thing. It appears to be an integer that is added to all (or some, sources don't agree) objects and has something to do with locking and the GC.
Before I go about unearthing huge PDF's containing detailed descriptions, is there there anything in particular that you'd like to know about it?
|
|
|
|
|
|
The SyncBlock is part of the .NET type internal structures (namely the OBJECTREF structure), and primarily has to do with thread synchronization. Generally, a SyncBlock is not created for classes, and the index # will be 0. If you use the lock() statement, then the CLR will create a SyncBlock entry for the current type, and associate it with the current AppDomain. When the lock block is entered, the CLR will create a Monitor object and stick it in the SyncBlock, along with the classes hash code (the AppDomainID and hash code are intended to support COM interop, and are not really used for pure managed code). The SyncBlock will then stay alive for the lifetime of its associated object and appdomain.
The SyncBlock index is a 1-based index into something called the Syncblk Entry Table, which is an indirection into the actual SyncBlock List which contains pointers to each SyncBlock instance. The reason for the multiple levels of indirection are intended to support the GC, which can freely move objects (such as SyncBlocks) around in memory. Each object instance itself contains a numeric 1-based index into the Syncblk Entry Table rather than a direct pointer so that the GC IS free to move SyncBlocks around in memory without requireing too much overhead to maintain type system integrity.
|
|
|
|
|