Article View: alt.pl.comp.lang.csharp
Article #9852SaveFileDialog - exception
From: Sławek Mróz
Date: Tue, 08 Nov 2005 15:20
Date: Tue, 08 Nov 2005 15:20
23 lines
1589 bytes
1589 bytes
Witam! j/w, generalnie wywolanie ShowDialog nie rodzi problemu z SaveFileDialog w moim programie. A jednak, gdy odpalam programik na innym kompie (Win XP Home), wyskakuje mi exception ************** Exception Text ************** System.Threading.ThreadStateException: Current thread must set to single thread apartment (STA) mode before OLE calls can be made. Ensure that your Main function has STAThreadAttribute marked on it. Przeszukanie pod tym katem googla wyplulo mi tylko jakies sovieckojezyczne strony, z ktorych nic nie rozumiem, wiec wdzieczny bede za Wasza pomoc: co moze byc przyczyna bledu i jak to leczyc? Pozdr Slawek
Technical Details
Message-ID:
<dkqfk6$1h0$1@atlantis.news.tpi.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.internetia.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mailShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.internetia.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail From: Sławek Mróz <slmroz@_krzak_wp.pl> Newsgroups: alt.pl.comp.lang.csharp Subject: SaveFileDialog - exception Date: Tue, 8 Nov 2005 16:20:00 +0100 Organization: tp.internet - http://www.tpi.pl/ Lines: 25 Message-ID: <dkqfk6$1h0$1@atlantis.news.tpi.pl> NNTP-Posting-Host: 213.25.40.130 X-Trace: atlantis.news.tpi.pl 1131463110 1568 213.25.40.130 (8 Nov 2005 15:18:30 GMT) X-Complaints-To: usenet@tpi.pl NNTP-Posting-Date: Tue, 8 Nov 2005 15:18:30 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit