|
Hi,
I don't know if this is the right forum to ask this question about MSMQ and C#.
Sorry, if I have posted this at the incorrect forum.
This is regarding a possible issue which could occur with the use MSMQ 3.0 (Windows XP Professional – SP2) for storing large no of messages.
We are working on storing messages into MSMQ 3.0 through .NET application (Using .NET 3.5). I have read in some articles that there is a disk quota of 8 GB allocated for storing of MSMQ messages and beyond which it can’t store the messages into the queue. The problem could occur if the size of no of messages in MSMQ equals this max limit. So, it is necessary to check this private queue size. With this current queue size it would be possible to check if the max limit has reached or not. So far, we have not found anything which would return us current queue (private) size.
To solve this problem I am working on the following approach.
1. Maintain the size of all queued messages into a text file on file system and update this when required. Also this could be used to check if any further messages could be saved into MSMQ.
2. Check for total size of messages before saving it into MSMQ by reading this info from the text file.
3. Increment it with the size of message, in case this new message was saved to MSMQ.
4. Decrease this file size if the message was removed from MSMQ.
I would like to know if there is any other alternative available for MSMQ max queue size limit. Any solution or suggestion regarding the same will be greatly appreciated.
Thanks & regards,
Vaibhav
|
|
|
|
|
So, you have 8GB in your MSMQ, and that is full?
|
|
|
|
|
leppie, thanks for ur prompt reply. No that is not the case,we r just considering this possibility and this may happen in our case. Basically we need a persistent medium to store the messages and then read them back again for further processing and that's why we r searching for MSMQ.
So, if there is any alternate way for getting current queue size it would be very helpful. Is there any property (Within System.Messaging namespace) which can return total size of messages currently stored in MSMQ? Otherwise we may just have to store size of each message in file before storing it in MSMQ.
Many Thanks for the reply.
|
|
|
|
|
I dont really know much about MSMQ, but I can tell you it is not meant for persistence. Can a database not be used for persistence, or the file system?
|
|
|
|
|
Hello,
im still new to Rad controls, and what i want to do is very simple, loading the combo box with data, from a table. i can fill in the details perfectly from my code, but when i click the combo box its not dropping down. Im filling it at page load.
please note this is radcontrol but populating using c#.
I have also posted this on Tek-tik forumns, its quite urgent and hope to solve it soon.
|
|
|
|
|
So, you've posted this in the right place by posting this on the Telerik forums where Telerik staff prowl like Cheetah's waiting to pounce on any unsuspecting questions and deliver answers with their laser like efficiency. Why do you think you'll get a quicker answer here?
|
|
|
|
|
I still havent got anything from them. I just thought maybe someone might help. I also cant find good material on RAd Controls.
Thanks
|
|
|
|
|
hi all,
I retrieving the fieldname(clientinfo) from the database,datatype is text.this field contains very lenghty string.....when I retrieving the fieldname that time error is occur like following.
System.IndexOutOfRangeException: clientinfo at System.Data.ProviderBase.FieldNameLookup.GetOrdinal(String fieldName)
plz reply me If you know...
Thanks
Rajendran.AL
|
|
|
|
|
You need to provide more information if you want people to help you. Post your code, the full exception message and the error stack.
Simon
|
|
|
|
|
Let us See your Code
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
I have some IP and some file name that exist on this FTP machine.
I want to launch the file in Run Time from this machine.
The file can be exe file or some batch file ...
How can i do it ?
|
|
|
|
|
System.Diagnostics.Process.Start(@"c:\yourfile.exe");
Simon
|
|
|
|
|
But how i make the connection to the FTP Server ?
Can i do the "Start Process" directly to "FTP://SomeIP/SomeFile.exe" ?
I mean - can i write it like this :
System.Diagnostics.Process.Start(@"FTP://SomeIp/SomeFile.exe");
??
|
|
|
|
|
I don't think you'd be able to do that.
You will have to download the file and then run it.
This[^] shows how you can download a file through FTP, if you don't already know.
My current favourite word is: I'm starting to run out of fav. words!
-SK Genius
Game Programming articles start - here[ ^]-
|
|
|
|
|
Sorry, I missed that bit.
I think SK Genius is right, you have to download it first. (Although there's no harm in trying it that way. Windows might intercept the request and pop up one of those Save/Run file dialogs, who knows. If you do try it, post back and let us know.)
Simon
|
|
|
|
|
Hi,
i'm Changing the Resolution of the Computer To XXX
and Back
the thing is that all of the icons Moves to diff location
is there a way to save the Layout of The Icons Position
so that when i Restore The Resolution the Icons returns to There Place
THANKS
Have Fun
Never forget it
|
|
|
|
|
Hi,
yes there is.
The desktop basically is a ListView, once you now the path and names to it (depends on OS),
you can do a lot of P/Invoke to get or set the icon positions.
Getting them is straightforward, setting them is not.
I once did a utility to switch screen resolutions, saving/restoring icon positions and saving/
restoring windows sizes, but never got it completely right. The main problems are:
- every change to an icon position may or may not modify the remaining positions, since the
desktop tries to avoid overlaps
- the size/position of minimized windows seems unavailable.
|
|
|
|
|
THANKS A lot
Luc Pattyn wrote: but never got it completely right.
Why?
Have Fun
Never forget it
|
|
|
|
|
every change to an icon position may or may not modify the remaining positions, since the
desktop tries to avoid overlaps
|
|
|
|
|
|
i have an application which needs to install a dll file in system 32, where this file should be added in the setup project.
|
|
|
|
|
Hi, i want to start a form in Maximized-WindowState.
So i found the following possibilities:
#1 Setting the WindowState Property to Maximized in the Designer
-> thats bad because the the form will be showed at Form_Load and that is too early.
#2 Setting the WindowState Property to Maximized in the Form_Load-Event
-> thats bad because i see how the form is resizing at the start.
#3 Setting the WindowState Property to Normal in the Designer and set the Size-Property to the screenbounds
-> thats bad because when i change the WindowState at runtime then there is no different between the WindowStates Normal and Maximized.
So my question ist there a way to start a form maximized without that problems i mentioned ?
|
|
|
|
|
try the first method and hide your form as load event start and show when going to end
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Hello Experts:
I have declared a Integer Array in Class A and now I want to create methods to processed the values in Array like min, max in Class B. but the problem is how can I call the values in int Array of class A into class B. eg:
class Class A
{
public int[] abc;
static void Main(string[] args)
{
int[] abc = { 3, 4, 5, 6, 67, 65, 55,99,77,55,44 ,45 };
Console.WriteLine("the length of array is {0}", abc.Length);
Console.ReadKey();
}
}
Now I want to use the same values of abc[] in class B to create the different functions like min value and max value. Any help will be appreciated. thanks.
|
|
|
|
|
Send a reference to the array to the method. Example:
class ClassB {
public static int GetFirst(int[] data) {
return data[0];
}
}
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|