|
Excelent text! This is what I needed to know:
"All catch/finally blocks are honored, and never aborted mid-stream"
So the first code would work.
I'll check if I can change the writing operation to test a restart flag anyway!
Thanks for the help !
(sorry for the self-reply)
Regards,
Leonardo Muzzi
|
|
|
|
|
You're welcome.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
"All catch/finally blocks are honored, and never aborted mid-stream..."
...but code which relies upon certain instructions not throwing exceptions may be broken if they do so. See the article's comments about 'using'. By the sound of it, using abort exceptions doesn't sound very safe. Using interrupt would seem much safer, provided that any time-consuming loops that don't engage in managed sleeping test a flag for whether they should exit.
The "using" directive is nice in many ways--it's too bad that there are so many wrinkles when using it. If a constructor could take a byRef parameter indicating where the new object should be stored, and if it could store the newly-created object there before leaving its outermost try/catch block, one could emulate a 'Using' in such a way as to avoid leaving dangling resources in case of an abort. Unfortunately, I don't know any way to make anything remotely like that work as smoothly as "using".
Too bad iDisposable seems to have been an afterthought (unlike Finalize, which is common to all objects). If Finalize took a parameter which indicated whether to perform a garbage-collect cleanup, explicit disposal, or failed-object-creation cleanup (objects that wanted to receive a garbage-collect cleanup would have to register) that would have simplified a lot of things.
|
|
|
|
|
My web site calling to the proxy web service using javascript and proxy web service calling actual local web service. Till yesterday its working fine. now suddenly its giving me error.When i run project first few (2-3) web request giving response properly but after that its giving me following error in fiddler.
System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Net.WebException: The request failed with HTTP status 403: Access Forbidden.
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at localhost.Service.ProcessGetRequest(String data) in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\globexmall\d53d5ac4\3be925d4\App_WebReferences.xxn2txa_.0.cs:line 51
at Globexmall.Proxy.GetResponse(XmlDocument xmlData) in c:\Inetpub\wwwroot\GlobexMall\App_Code\Proxy.cs:line 59
--- End of inner exception stack trace ---
using following code i am making call to the local web service
[WebMethod]
public string GetResponse(XmlDocument xmlData)
{
localhost.Service Wservice = new localhost.Service();
XmlNode xmlResponse = Wservice.ProcessGetRequest(xmlData.OuterXml);
XmlDocument wsResponse = new XmlDocument();
wsResponse.AppendChild(wsResponse.ImportNode(xmlResponse, true));
return wsResponse.InnerXml;
}
If anyone knows the answer then plz help me as soon as possible
Thanx in advance
|
|
|
|
|
Your first clue is here:
"HTTP status 403: Access Forbidden"
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi al
how can i convert the integer into string on linq database by using c#
|
|
|
|
|
int.Parse(str)
ToshiyaTSURU <turutosiya@gmail.com>
http://www.google.com/profiles/turutosiya
|
|
|
|
|
For higher performance you can use Convert.ToInt32
|
|
|
|
|
hi all,
i just want to know when the .net3.5 (WCF,WPF,..), ajax are released.. release dates
are they available in 2007..
thanks alot in advance
|
|
|
|
|
Don't cross post, you've already asked this question
only two letters away from being an asset
|
|
|
|
|
I have created FTP Client project in vb.net.
It works on Passive mode only.
Now i want to add Unicode support code and Active transfer mode code.
Please help me to find out the code or links .
|
|
|
|
|
I was wondering if it is possible to show a Vista style progress window, like you get when copying a number of files. Also, for example, Windows Live Mail uses it when moving email messages. Is there a .NET class for this available? Actually I would like to set the text in the window and value of the ProgressBar myself and execute certain pieces of code myself, depending on the value of the ProgressBar.
If you do not understand what I mean, please see this image:
click here
Thanks.
|
|
|
|
|
This looks like it may be what you want. .NET Animation Control[^]
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Thanks very much for your post, however, it does not appear to work in Vista. Also, this link doesn't work in Vista either. Also I discovered the animations come from shell32.dll. Perhaps they aren't included in that file in Vista. I will search somewhat more and post if I find something working.
|
|
|
|
|
|
A good find.
Thanks for posting the link,
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Thanks.
Now I've come across another problem. I want to play it with a loop (continuously), but between every time it plays, it is black and says 'Connecting'. Is this solvable so that it plays perfectly without a pause in between?
|
|
|
|
|
I don't think I can help on that.
Can I suggest that you post your problem in a new thread, that way someone who knows more about it is likely to see it.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
I have posted it in the COM forum, I hop there is a solution as Microsoft doesn't give away any source code...
|
|
|
|
|
Well, never mind, again...
I used the Windows Media Player COM component, but your suggested control worked better, at least with no black pause every time.
Thanks.
|
|
|
|
|
|
It can be really useful to have something like Toolbox in your Windows applications! and the main useful function is to Pin or UnPin it to page so when you don't use it it will hide from the screen (sliding to left) and the main page can have wider space for something like drawing or working space.
but what kind of component is it???? and how it can be Pinable ? also how to change the main area of the scree in case of sliding the toolbox to left? the good example of this question is Visual Studio work space and the very useful Toolbox that it has!
also how to drag and drop from toolbox to main area?!?!?!
|
|
|
|
|
I've often wondered about this docking behaviour as well, and I share your disbelief that it is not a standard control. Unfortunately I think you may be looking at building your own, or using a Third party component... I know Infragistics makes an "UltraDockManager" that can give you similar behaviour to the Visual Studio environment, and I've also stumbled upon this one which might be worth a look. It comes with a nice sample, and the price is definitely right.
http://sourceforge.net/projects/dockpanelsuite/[^]
|
|
|
|
|
Hi all,
Have a very frustrating issue with a datagrid at the moment. I populate a datagrid with application details and a user can select which application they want to link.
However,
when you select and of the hyperlink fields in the datagrid, IE (7) will open a ne tab.
Please help, really getting to me.
Thanks in advance
|
|
|
|
|
Huh. Is the issue that the HyperlinkColumn's Target propert is set?
|
|
|
|