|
Hi !
iam doing a remoting application is c#. the server is a singlecall object run using remoting.configure
xml config file. there is only one client but a group of servers hosting these singlecall objects
. i make invocations by using remoteobject.getactivator method at a very high frequency to get bit map data. when the server machine is running windows 2000 professional the performance is decent but for windows xp pro the performance is very bad. the system is very slow at getting method results. any idea what could be happening. i checked
three windows xp pro machines and as many windows 2000 pro machines. the performance is consistently bad and good respectively.
any help would be great.
thanks.
|
|
|
|
|
i trying to wirte a code to disalbe toolbar start , and run mstsc40.exe
using System.Diagnostics;
i can't use Process object !!!
|
|
|
|
|
Your question would be much better handled in the Embedded/Mobile Forum[^]. It has nothing to do with C#, but rather functionality of the target platform.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hello
I am drawing text by using Graphics.DrawString
I need to rotate it.
this: StringFormatFlags.DirectionVertical; rotate text 90degrees clockwise.
However I need rotate text 90deg. counter-clockwise. How I will do it?
heartfelt thanks for help.
Peter
|
|
|
|
|
I am trying to load data from a as400 db into a datatable, but i get the following error:
OleDbDataAdapter internal error: invalid rowset accessor: Ordinal=5 Status=UNSUPPORTEDCONVERSION.
Can anyone tell me how to fix this?
|
|
|
|
|
this thread talks about your problem - hope it can help - cause I can't
http://www.dotnet247.com/247reference/msgs/43/219462.aspx
-spif2001
|
|
|
|
|
hello i have 2 classes one class has a function that takes the second class as a ref argument however i want to call this function from within the second class but the compiler will not let me using, this, is there any way around doing without making the function take a non ref argument?
|
|
|
|
|
You can't pass 'this' a ref argument because it is a value, not a variable. This will satisfy the compiler
<br />
A a = this;<br />
new B().SomeFunc(ref a);<br />
I don't know if that is what you want though..
Regards
Senthil
My Blog
|
|
|
|
|
Your queary is little confusing. Still , is this what you are looking for
using System;<br />
namespace ConsoleApplication1<br />
{<br />
class Class1<br />
{<br />
public string myName="meOnly";<br />
static void Main()<br />
{<br />
Class2 Obj2=new Class2();<br />
Class1 Obj1=new Class1();<br />
Console.WriteLine(Obj1.myName+"\n");<br />
Obj2.Showme(ref Obj1);<br />
<br />
}<br />
}<br />
class Class2<br />
{<br />
public void Showme(ref Class1 cls)<br />
{<br />
cls.myName="MEonly";<br />
Console.WriteLine(cls.myName);<br />
}<br />
}<br />
}
Sreejith Nair
[ My Articles ]
|
|
|
|
|
hrmm that doesnt quite do it i guess my question if to parts
i have 2 classes
class obj1
{
public static MyFunc(ref obj2 o)
{
do some stuff
}
}
class obj2
{
public MyFunc()
{
obj1.MyFunc(/*ref*/ this); // this doesnt work
}
}
the second part is if im not using a ref what kinda memory problems will this cuase if any i dont really want to duplicate obj2 i want to use the same one continuasly ?
any answers will help :p
|
|
|
|
|
Hi there!
Does anyone know of any free tools which I can use to evaluate the performance of certain functions of an application? I have used DevPartner however the application crashes 90% of the time when using that!
Thanks.
|
|
|
|
|
I use the DevPartner coummnity edition regulary and i have never had it crash - and I do some pretty extreme profiling runs - some of them taking over 24 hours
|
|
|
|
|
I have just added help to my C# application, and it invokes the Help window when F1 is pressed just as it should. However, I find that the help window itself disappears or is covered by my app (the app is always maximized) whenever the app loses focus. For reasons I won't go into at the moment, my app creates additional windows that it arranges for itself, but I don't know if this has any bearing on the matter. All I can say for sure is that if my app loses the focus, the Help window disappears. It comes back if I click on the title bar of my app to get focus back, but if I click on the title bar of the Help window, my app loses focus, and the help window goes away again!
Does anyone know of a setting I may have made in my app that would cause this behavior?
|
|
|
|
|
Just try this code and tell me , whether it served your purpose or not.
System.Diagnostics.Process.Start(@"c:\\help.chm");
and don't forget to refer System.Configuration namespace in your code.;)
Sreejith Nair
[ My Articles ]
|
|
|
|
|
That worked just fine. Thanks! Is there any way I can access individual topics this way for context-sensitive help?
|
|
|
|
|
You can achive it throught some third party help creator tool Or you can use Microsoft Help Workshop. This you will get through .NET installation.;)
Sreejith Nair
[ My Articles ]
|
|
|
|
|
I am looking for a sample of code in C# using as a web service which would do the following:
1. Accept a XML stream
2. Parse the XML, prep for inserting into a database table
3. Set a Session ID
4. Return the Session ID to the Requester.
If someone could show me how this is done, I would be most appreciative.
Cheers,
Shelly
|
|
|
|
|
Hi friends
i am using finisar sqlite dll to interact with sqlite db,i am often getting the following Exception Message
"Unable to load dll(sqlite)" though dll is present and I event verified by calling calling
mycon.GetType().AssemblyQualifiedName.ToString()
and its indicating right path of loaded Dll
can anyone tell me why the mentioned exception is being thrown?
Thanks
|
|
|
|
|
after putting in Try block and calling Exception.TargetSite
i got the following:
IntPtr sqlite_open(IntPtr,Int32,Intptr By Ref)
by calling StackTrace,i got the following:
at Finisar.Sqlite.sqlite2.open(String filename)
at Finisar.Sqlite.SqliteConnection.open()
i am using the following code to open a db file
try
{
String dbpath="C:\\iconfig.db";
String connString=@"Data Source="+dbpath+";UTF8Encoding=True;Version=2";
Finisar.SQLite.SQLiteConnection mycon=new Finisar.SQLite.SQLiteConnection(connString);
mycon.Open();
MessageBox.Show(mycon.State.ToString());
}
catch(Exception ex)
{
MessageBox.Show(ex.StackTrace.ToString(),"Error");
}
Thanks
-adnan
|
|
|
|
|
Sure, the sqlite.dll that you're P/Invoking into couldn't be loaded. The message is not refering to your assembly, but the dll that your assembly is trying to call into. You probably need to put the sqlite.dll into you bin\debug or bin\release directory.
--
Joel Lucsy
|
|
|
|
|
Would you know how I may add controls that aligns itself to the right of the menu bar (MenuStrip) in whidbey.
Office 2003 has a similar feature. On the menu bar of Word 2003 there is a "type a question for help" combobox which is aligned to the right. I need to mimic this behavior.
Kindly help. Thanks
Sathish
~/sathishvj
|
|
|
|
|
|
When the form is resized, the right aligned ToolStripItems are layed over the menu items. Is there any way to change that behavior?
Say like, truncating them or automatically making it go into a drop down button list. Or programmaticaly can we identify the sizes and locations to make them invisible?
Regds
Sathish
~/sathishvj
|
|
|
|
|
Ok, i got a program, and when you start it you get the option to either, enable / disable the password, but thats all. Theres no actual file to protect, now i could put the file into the program BEFORE compiling it, but then how would you get a new file in there?
So is there a way i can run the program, then add a file to it.
The main idea is to protect a file with a password so that when you click on the file it asks for a password, you enter the password and then the file is back to normal.
Any ideas
|
|
|
|
|
First, it's already been done - it's called a WinZip Self Extracting Executable.
In order to use the files, you actually have to unpack them first. Once that is done, you don't need any password to use them, so what's the point?
The method that you describe only protects the files during transport from machine to machine. It can't do anything about the files once they're unpacked. Also, unless the files are encrypted in the self-extractor package, it's not that hard to pull the files out of the package without the password.
Also, the files are not compiled into the .EXE as you put it. Rather, the file package (or .ZIP in our example), encrypted or not, is appended to the end of the .EXE file. The .EXE has to know how far into the file to start looking for the .file package, then it's a simple process of processing the files from there.
The file format could look something like this:
[SelfExtractor code][FilePackagePre-Amble][FilePackage][possiblePost-Amble and ErrorCheckID]
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|