|
Something that's not clear from the msdn docs. Will the GC eventually finalize the dialog and reclaim the memory in the indefinite future, or is it as permanantly lost as in unmanaged code.
|
|
|
|
|
It's not really the memory that's the problem, but the unmanaged handle-based resources that the form holds onto. If used frequently enough, and not freed by explicitly calling .Dispose() , they can be exhausted, causing an "Out of memory" exception, even though memory is not what you ran out of. The GC doesn't track handle usage, and so, can't tell when the system is running low. If the GC can't tell this, it can't speed up Disposing and Finalizing the objects it's supposed to collect.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi,
Please help me how to convert Excel sheet data into XML.Here is scenario i have microsoft Excel sheet it contains 5 columns and no of rows.I want show all these data into XML.
Thanks & Regards
Rao
|
|
|
|
|
IF you have office 03 (maybe 02 as well) you can select xml in the saveas dialog.
|
|
|
|
|
Hi, I have a remoting comunication with tcp chanel. I use it to marshal objects.
I want to pass messages from the server to client like events, I suppose that the answer is sink and contexts but I newer in this topics.
I want to send messages in server and catch in client.
It is possible to do that? Where can I find a sample obout that.
La realidad no es más que impulsos eléctricos del cerebro - Morpheus
|
|
|
|
|
I have class marked for serialization:
[Serializable]
public class DEMO
{
public DEMO[] ChildElements;
}
How can write code for serialization/deserialization in XML for such class? I need the shortest piece of code and without (if possible) manual working with XML nodes.
|
|
|
|
|
Hello,
How come for my DataGrid, every time I fill out a new row, but click away to the rows that were loaded from a dataset, and the new row that I just modified goes away?
Thank you
|
|
|
|
|
Is it possible to configure the SmtpMail.Send(); to send mail from any other port besides port 25? I DO NOT NEED TO RECIEVE AT ANY TIME! Sending mail only. (Auto Response mail generator for a password resetting program.)
Dim Beautiful As String
Beautiful = "ignorant"
Label1.Text = "The world is full of " & Beautiful & " people."
Why is common sense such an un-common comodity?
|
|
|
|
|
No, unless you are running the mail server. All standard mail servers listen on port 25, so I guess that leaves you with no option but to use 25.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
I thought that it didn't matter what outgoing port you sent on it would still connect on the proper incomming port. but I guess not?
does that mean that the smtpmail uses the configuration of the local smtp server to send? so if i were to load it on a local client and set the local smtpserver at the non-standard # it would work, but other wise won't?
Dim Beautiful As String
Beautiful = "ignorant"
Label1.Text = "The world is full of " & Beautiful & " people."
Why is common sense such an un-common comodity?
|
|
|
|
|
Sorry, I misread your question. You're right, the outgoing port doesn't matter.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
But you are sending the mail to the mail server listening on port 25, aren't you?
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
yes, it should be, i don't know for certain. but even if i send it out on say 26 it should still receive right, if it is recieveing smtp.
in otherwords if i were to send mail on port 80 to mail.blah-blah.com it would know (if the router/firewall it's setup properly)to accept incomming traffic to mail.blah-blah.com on internal port 25 right? so i should be able to send outgoing mail on whatever port i want, as long as the recieveing server is configured to recieve mail from mail.whatever.whatever.
or am i just really off in my thinking here?
Dim Beautiful As String
Beautiful = "ignorant"
Label1.Text = "The world is full of " & Beautiful & " people."
Why is common sense such an un-common comodity?
|
|
|
|
|
wetrivrrat wrote:
were to send mail on port 80 to mail.blah-blah.com
If you meant connecting to mail.blah-blah.com's port 80, no, it wouldn't work. Port 80 is for HTTP, it most certainly won't be expecting SMTP messages there.
So, the answer for your question is, yes, you should use port 25 for sending mails. I got sidetracked because I thought you were talking about the port number of the client which is sending the mail.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
no, I was talking about the outbound port.
But I figured out a way.
It seems it will still send outgoing mail if I relay off another server. So i'm up now.
thanks!
Dim Beautiful As String
Beautiful = "ignorant"
Label1.Text = "The world is full of " & Beautiful & " people."
Why is common sense such an un-common comodity?
|
|
|
|
|
Is it possible to configure the SmtpMail.Send(); to send mail without having to have smtp installed locally?
I need to be able to send mail internally(intra-net) without having to install smtp on every client, as well without having to access the local mail client, as we don't have outlook or outlook express installed on the clients.
We are however in a Novell / Groupwise environment and I don't know anything about how to intergrate with GW, so I would like to stay away from trying to intergrate, but if it is the only way then i'm open to making it work. (I would need some help though!)
Dim Beautiful As String
Beautiful = "ignorant"
Label1.Text = "The world is full of " & Beautiful & " people."
Why is common sense such an un-common comodity?
|
|
|
|
|
Just set the SmtpMail.SmtpServer property to the name of the smtp server you wish to use.
---
b { font-weight: normal; }
|
|
|
|
|
Thanks much!
Dim Beautiful As String
Beautiful = "ignorant"
Label1.Text = "The world is full of " & Beautiful & " people."
Why is common sense such an un-common comodity?
|
|
|
|
|
hi to all,
how can i put a mask while the user is typing.
does c# have an edit mask control like vb 6 ?
if yes, what reference do i have to add to my project
if no, does any body have a trick to do the same
best regards and thanks in advance
fady
|
|
|
|
|
do you mean to ask does C# have a way to mask the characters you are typing? Are you typing in a textBox?
if the answer is yes to both these questions then your answer is yes.
click properties for your textBox and look for PasswordChar
hope that helps
Dim Beautiful As String
Beautiful = "ignorant"
Label1.Text = "The world is full of " & Beautiful & " people."
Why is common sense such an un-common comodity?
|
|
|
|
|
You mean like this[^]???
No, the .NET Framework doesn't have built in support for masked text boxes as of version 1.1 (I think 2.0 will.) But there are several free controls out there, just try searching Google or CodeProject first.
-- LuisR
Luis Alonso Ramos
Intelectix - Chihuahua, Mexico
Not much here: My CP Blog!
|
|
|
|
|
The help in Visual Stuio on double.Epsilon states the following:
"Two apparently equivalent floating point numbers might not compare equal because of differences in their least significant digits. For example, the C# expression, (double)1/3 == (double)0.33333, does not compare equal because the division operation on the left-hand side has maximum precision while the constant on the right-hand side is only precise to the visible digits.
Instead, determine if the two sides of a comparison are close enough to equal for your purposes by comparing whether the absolute value of the difference between the left and right-hand sides is less than Epsilon."
Epsilon is still going to be way smaller than the error due to the precision of the double's mantissa. Instead of trying to use epslilon I compare my doubles like this:
if (Math.Abs(exp-det) > Math.Abs(exp/Math.Pow(2.0, 64.0-12.0)))
{
throw new MyException(" BufferComparison failed " + det + " != " + exp);
}
Is there a better way? -or- Is there a correct way to use Epsilon?
Time is the fire in which we all burn...
|
|
|
|
|
Hi
I am using Microsoft.office.core (11.0) com library. I have added new button to the outlook toolbar. If i click on that it should get the currently focused email detals(like if i click on Reply,Forward etc...). I am able to get the entire folder emails detail but not exactly the selected email.
Thanks,
Inba S.
|
|
|
|
|
I have an app with 3 major dialogs. The parent dialog, a modal work dialog, and a help dialog. Since I only want a single copy of help open at a time I had the work dialog call a method of the parent which only created a new help dialog if there wasn't already one open. This works fine if the help button in the work dialog is clicked and the help dialog isn't open. In that case Help's freely available and the user can switch between the help dialog and the work dialog at will. The problem is if the help dialog is first opened in the parent it's inaccessable from the work dialog.
The only workaround I can think of is to have the work dialog first kill the help one, and then reopen it but that's a kluge and looses the users place. Is there a more graceful way to do it?
|
|
|
|
|
Interesting problem, how do you unlock a modeless dialog locked by a modal dialog? Sorry to say, I have no good answer and looking at the lack of responses to your question the community seams to have problems with it also.
Can't you make the help dialog as a standalone application which you kill when the parent dialog is shutdown? Only problem I see with this solution is if you need to communicate with the help application, which is more difficult than communication within an application, so then it might not be worth it. Here's a link how to make a single instance application: www.codeproject.com/csharp/singleinstance.asp
/Patric
My C# blog: C# Coach
|
|
|
|