|
You can't catch StackOverflowException.
My suggestions:
1. It can be proved that any tail-recursive call can be reduced to a simple "while" loop. It seems to be your case "return calcIRR (..."
2. You're passing a lot of big parameters. Why not passing a reference to a class that contains all this information? This would reduce your stack size.
3. Do you have lots of local variables? If yes, try extracting methods from your code, so your stack size becomes smaller.
I see dead pixels
Yes, even I am blogging now!
|
|
|
|
|
Can anyone help me out with this.
How do I retrieve a specific Environment(User Variables/System Variables) using C# without iterating through the ManagementObjectSearcher Collection.
Is there a way I can get it using System.Environment.GetEnvironmentVariable(s), I tried this but it did not work.
Thank you,
S. Balakrishnan
|
|
|
|
|
In 1.1 there is a class SystemInformation that might provide the information your looking for.
|
|
|
|
|
Why doesn't it work? What environment variable are you querying for?
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
System.Environment.GetEnvironmentVariable()
Matt Gerrans
|
|
|
|
|
Hi,
I've an existing file in a isolated storage and i want to rename it with another name.
how can i do that ?
Thanks !
|
|
|
|
|
if(IO.File.Exists(oldpath))
{
IO.File.Move(oldpath, newpath);
}
else
{
Throw new FileNotFoundException;
}
|
|
|
|
|
To do this, i need to have the path of my file in a isolated Storage.
How can i have it ?
Thanks
|
|
|
|
|
Use UNC: \\servername\path
|
|
|
|
|
There is a Msg.dll file which is built by VC6.0.
I want to use the event OnComm() in it.
How to define it ?
Thanks!
|
|
|
|
|
You need to give more information. Is the "event" an OCX event? Or is a custom event that only the shared object can understand? Or is it something else entirely (like a virtual or a callback)?
|
|
|
|
|
afx_msg LONG OnCommunication(WPARAM, LPARAM);
|
|
|
|
|
Hi all,
I want to create a Richtext Editor which should be of A4 size
The content should not exceed more than A4 size.
The problem that i am facing now is when i enter text and press
the enter key the richtextbox gets the scrollbar and accepts the text.
i want to block this, i dont want the richtext to have the scroll and
it should not accept the text when the last line is reached
Please if anyone could help me
it's very urgent!!!!!!!!!!!!!!!!
Thanks and Regards,
Pramod Yadav
|
|
|
|
|
Hello,
I call a method GetCustomers() in a webservice, by clicking on a button in the related Windows application. It fetches the data from the Northwind database (Customers table), and shows it in a DataGrid in the Form (via a DataSet)
dataGrid1.DataSource = myDS; //myDS id the DataSet
//dataGrid1.SetDataBinding(myDS, "Customers");
I would just like to know why the SetBinding method doesn´t work with the client application. However if I click on "Invoke" from the Testing webservice in the browser (am using VisualStudio 2003),
the SetDataBinding method does work.
Why ?
Thanks a lot.
|
|
|
|
|
Hi,
Is there o property for a combobox, so that this control is not editable (so that you can't type text in it).
Thanks!
|
|
|
|
|
|
hello everybody,
my name is Wolfgang Mergenthaler in Flörshei/Germany. I keep having this problem over and over: My program runs nicely, except if I click the title bar in the main form. Then the following happens: The program stalls, I get the message "Keine Rückmeldung" (No response).
What can I do ?
Thanks a lot for help !
Wolfgang
|
|
|
|
|
Hallo Wolfgang.
Führt dein Programm rechenintensive Berechnungen oder Schleifen durch? Wenn ja rufe ab und zu Application.DoEvents auf. Besser: lagere den rechenintensiven Teil in Threads aus.
André
'A programmer ist just a tool which converts caffeine into code'
|
|
|
|
|
You need to explain things a bit. What does your program do?
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
Hi,
for a comboBox on a form, how can I force the user
to choose only the choices of item in the comboBox,
so he cannot input text in the comboBox ?
Thanks
|
|
|
|
|
On Keypress event Set e.Handled to TRUE
|
|
|
|
|
Set the DropDownStyle property to DropDownList
From the help "The user cannot directly edit the text portion. The user must click the arrow button to display the list portion."
|
|
|
|
|
Hello,everyboy.
Recently,I'm trying to execute managed code in the system that have no net framework.
Can you give me some suggestion?
|
|
|
|
|
You cant.
xacc-ide 0.0.99-preview7 now with C#, C, C++, IL, XML, Nemerle, IronPython, Perl, Caml, SML, Ruby, Flex, Yacc, Java, Javascript, Lua, Prolog and Boo highlighting support!
|
|
|
|
|
Install the .NET Framework! Preferrably the same version that was used to write the application. There is no other option, unless you want to spend some serious money to do it.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|