|
Can someone tell me why there is an infinite loop below only in release mode? If I add a printf in the while loop, then the infinite loop disappears.
for (long i=1; i<(signed)Expiry_URLs.size(); i++)
DownloadStringInBackground2(gcnew System::String(Expiry_URLs[i].c_str()));
Process_Straddle_View(T, G_OPT, Error_Code); //ASSUMES THAT NO OTHER DOWNLOAD FINISHED BEFORE THIS RUNS
while (!!G_OPT.Running);
void DownloadStringCallback2( System::Object^ sender, System::Net::DownloadStringCompletedEventArgs^ e ) {
// If the request was not canceled and did not throw
// an exception, display the resource.
--G_OPT.Running;
if ( !e->Cancelled && e->Error == nullptr ) {
System::String^ textString = dynamic_cast<system::string^>(e->Result);
System::Console::WriteLine( textString );
}
}
void DownloadStringInBackground2( System::String^ address ) {
++G_OPT.Running;
System::Net::WebClient^ client = gcnew System::Net::WebClient;
System::Uri ^uri = gcnew System::Uri(address);
// Specify that the DownloadStringCallback2 method gets called
// when the download completes.
client->DownloadStringCompleted += gcnew System::Net::DownloadStringCompletedEventHandler( DownloadStringCallback2 );
client->DownloadStringAsync( uri );
}
|
|
|
|
|
You have an empty loop here, and it has 'eaten' all your processor in the release mode:
while (!!G_OPT.Running);
It's not a good way to do such loops for wait until other operation completes.
In such cases synchronization must be used, like events, or AsyncCallbacks.
|
|
|
|
|
In a xml file, there are some characters like ß (part of Schließen(Deutsch) ).
but when i had called the function XmlDocument.Load(), it was fail.
if delete the "ß", then success.
please tell me how to parse the xml file with some characters like ß.
|
|
|
|
|
please check your xml file encoding. for example <?xml version="1.0" encoding="UTF-8"?> means utf-8 encoding
|
|
|
|
|
Crap
Thank you
modified 21-Aug-13 17:32pm.
|
|
|
|
|
Off the top of my head I dont believe there is anything built into asp.net that will do this. However if your interested Silverlight 4 will have this functionality and it should be out in the next couple of months.
|
|
|
|
|
|
i want a source code for 3 d max studio
|
|
|
|
|
I want it too
3D S Max is not an open-source software; they will never give thir sources.
|
|
|
|
|
gulamnabi shaikh wrote: i want a source code for 3 d max studio
The easy way to do it is to become a billionaire and buy the company. BTW - 3D Max is not written using the .NET Framework.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
gulamnabi shaikh wrote: i want a source code for 3 d max studio
Be careful of what you wish for, for it may just come true... on 2.3 million pieces of A4 paper....
|
|
|
|
|
I hope they are properly numbered then.
|
|
|
|
|
|
An instance of your class can't know whether to access the static method or the instance method so it is not allowed
Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
Opps...didn't see your reply and I deleted the question as I got it
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)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
-----------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
hey plz post the reply buddy, when u get, it could be helpful to other
Ravie Busie
Coding is my birth-right and bugs are part of feature my code has!
|
|
|
|
|
how can it be helpful if there is no question.
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)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
-----------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
one shouldn't remove a question once there are replies.
|
|
|
|
|
|
The original question was something like - why can't I do this
class SomeClass
{
void SomeMethod()
{ }
static void SomeMethod()
{ }
} The original question was more succinctly put, with reasoning behind why the OP thought it should be allowed
Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
a new twist to the old forums?
|
|
|
|
|
Luc Pattyn wrote: a new twist to the old forums?
I'm still not sure about the current 'new twist[^]'
Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
Dear All
How can i create menu or toolbar in windows native look in .net
Usually its look different from normal menu and toolbar of windows
also how to use rebars in .net
Thanks and Regrads
Radhakrishnan G.
|
|
|
|
|
I'm using mysql database..I have forms setup main form has datagrid..you can add to this datagrid and save to datbase with my add form and it works fine. I can delete from the datagrid and it works fine...when I select an account to edit is when I have my issue...form edit brings up the selected account but when I save my changes it doesn't save to the selected account it changes my first account in the database...Help...here is a sample of my code
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Private Sub btnSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSave.Click
' 'Save changes to database and exit
Dim intResponse As String
intResponse = MsgBox("Do you want to SAVE Changes to this record?", vbOKCancel, "Save?")
If intResponse = vbOK Then
PbCustomerDS.customer(0).Address_Line1 = Address_Line1TextBox.Text
PbCustomerDS.customer(0).Location = LocationTextBox.Text
PbCustomerDS.customer(0).Attention = AttentionTextBox.Text
PbCustomerDS.customer(0).City = CityTextBox.Text
PbCustomerDS.customer(0).State = StateTextBox.Text
PbCustomerDS.customer(0).Zip = ZipTextBox.Text
PbCustomerDS.customer(0).Phone = PhoneMaskedTextBox.Text
PbCustomerDS.customer(0).Bill_To = Bill_ToTextBox.Text
PbCustomerDS.customer(0).Attention_2 = Attention_2TextBox.Text
PbCustomerDS.customer(0).B_address = B_addressTextBox.Text
PbCustomerDS.customer(0).B_City = (B_CityTextBox.Text)
PbCustomerDS.customer(0).B_State = B_StateTextBox.Text
PbCustomerDS.customer(0).B_Zip = B_ZipTextBox.Text
PbCustomerDS.customer(0).B_Phone = B_PhoneMaskedTextBox.Text
PbCustomerDS.customer(0).Comments = CommentsTextBox.Text
PbCustomerDS.customer(0).Updated = UpdatedLabel1.Text
Me.Validate()
Me.CustomerBindingSource.DataSource.GetType()
Me.CustomerBindingSource.EndEdit()
Me.CustomerTableAdapter.Update(PbCustomerDS)
Me.TableAdapterManager.UpdateAll(PbCustomerDS)
Me.Close()
End If
If vbCancel Then
Exit Sub
End If
End Sub
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
can someone please help me with my issue?
|
|
|
|
|
Hi
I want to apply membership authentication in my asp.net application(c#).
I want to keep the membership information in my existing database. Is there any one who can help me for this?
Regards
MG
|
|
|
|