• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

ギコナビ


Commit MetaInfo

Revision3480c56ac29631aafdde3b51c9b23f5078b67e1e (tree)
Zeit2011-09-25 12:47:55
Autorh677 <h677>
Commiterh677

Log Message

ネットワークがオフラインの時に、送信で例外が発生する不具合の修正

Ändern Zusammenfassung

Diff

--- a/Editor.pas
+++ b/Editor.pas
@@ -928,6 +928,14 @@ begin
928928 raise Exception.Create('');
929929 end;
930930 except
931+ on E: EIdSocketError do begin
932+ State := gdsError;
933+ ResponseText := '<html><body>'
934+ + '<div>Ú‘±‚ªŽ¸”s‚µ‚Ü‚µ‚½<br>'
935+ + '‰ñü‚âƒvƒƒLƒV‚̏ó‘Ԃ𒲂ׂĂ­‚¾‚³‚¢<br></div>'
936+ + '<br><br><div>' + E.Message + '</div>'
937+ + '</body></html>';
938+ end;
931939 on E: EIdConnectException do begin
932940 State := gdsError;
933941 ResponseText := '<html><body>'
@@ -962,7 +970,9 @@ begin
962970 finally
963971 Source.Free;
964972 TextStream.Free;
965- Indy.CookieManager.CookieCollection.Clear;
973+ if ( Indy.CookieManager <> nil ) then begin
974+ Indy.CookieManager.CookieCollection.Clear;
975+ end;
966976 //sysMenu := GetSystemMenu( Handle, true );
967977 EnableMenuItem(SysMenu, SC_CLOSE, MF_BYCOMMAND or MF_ENABLED);
968978 DrawMenuBar(Handle);