Click here to Skip to main content
15,913,941 members
Home / Discussions / C#
   

C#

 
Questionuser control + app.config Pin
FernandoMartin11-Apr-07 7:27
FernandoMartin11-Apr-07 7:27 
AnswerRe: user control + app.config Pin
Dave Kreskowiak11-Apr-07 7:49
mveDave Kreskowiak11-Apr-07 7:49 
GeneralRe: user control + app.config Pin
FernandoMartin11-Apr-07 8:12
FernandoMartin11-Apr-07 8:12 
Questioncombining GIF and JPG ...??? Pin
devboycpp11-Apr-07 6:58
devboycpp11-Apr-07 6:58 
AnswerRe: combining GIF and JPG ...??? Pin
Dave Kreskowiak11-Apr-07 7:03
mveDave Kreskowiak11-Apr-07 7:03 
QuestionDataGrid and Gridview Difference Pin
netJP12L11-Apr-07 6:32
netJP12L11-Apr-07 6:32 
AnswerRe: DataGrid and Gridview Difference Pin
Sathesh Sakthivel11-Apr-07 7:10
Sathesh Sakthivel11-Apr-07 7:10 
Questionimag processing Pin
mhammed11-Apr-07 6:19
mhammed11-Apr-07 6:19 
AnswerRe: imag processing Pin
Sathesh Sakthivel11-Apr-07 7:07
Sathesh Sakthivel11-Apr-07 7:07 
AnswerRe: imag processing Pin
Dave Kreskowiak11-Apr-07 7:07
mveDave Kreskowiak11-Apr-07 7:07 
QuestionBuild a mail message Pin
emiaj11-Apr-07 6:12
emiaj11-Apr-07 6:12 
QuestionForum program Pin
Danpeking11-Apr-07 5:51
Danpeking11-Apr-07 5:51 
AnswerRe: Forum program Pin
althamda11-Apr-07 6:16
althamda11-Apr-07 6:16 
AnswerRe: Forum program Pin
Sathesh Sakthivel11-Apr-07 7:05
Sathesh Sakthivel11-Apr-07 7:05 
GeneralRe: Forum program Pin
Danpeking11-Apr-07 8:49
Danpeking11-Apr-07 8:49 
QuestionAbout iTextSharp Pin
Diego F.11-Apr-07 5:48
Diego F.11-Apr-07 5:48 
AnswerRe: About iTextSharp Pin
Diego F.11-Apr-07 6:11
Diego F.11-Apr-07 6:11 
GeneralRe: About iTextSharp Pin
Diego F.11-Apr-07 21:08
Diego F.11-Apr-07 21:08 
QuestionCopying text/contents from browser in Smart device simulator Pin
Neo_Shehpar11-Apr-07 5:36
Neo_Shehpar11-Apr-07 5:36 
QuestionParameterless Webbrowser-constructor crashes with "The parameter is incorrect" Pin
plokkoville11-Apr-07 5:11
plokkoville11-Apr-07 5:11 
AnswerRe: Parameterless Webbrowser-constructor crashes with "The parameter is incorrect" Pin
Luc Pattyn11-Apr-07 13:42
sitebuilderLuc Pattyn11-Apr-07 13:42 
Hi,


the WebBrowser documentation states:
The WebBrowser control is resource-intensive. Be sure to call the Dispose method when you are finished using the control to ensure that all resources are released in a timely fashion. You must call the Dispose method on the same thread that attached the events, which should always be the message or user-interface (UI) thread.

And:
The WebBrowser class can only be used in threads set to single thread apartment (STA) mode. To use this class, ensure that your Main method is marked with the STAThreadAttribute attribute.

Your code uses the using statement, so Dispose is called.
The other requirements need to be verified.

The exception is an inner exception; ecode=87 means invalid parameter,
and HRESULT=-2147467259 corresponds to hex 80004005 which inside good old winerror.h
is the value for the symbols ERROR_REC_NON_EXISTENT as well as E_FAIL. so that
seems not to help us.

One guess is each new WebBrowser creates a new class name, and somehow these class
names suddenly are not valid any more. Suggestion: count and log each new WebBrowser
and try to recognize a pattern in the failures.

Another idea is something runs out, e.g. disk space for temporary internet files;
you might try to see if something like that occurs, and can be remedied without
launching IE, just to see if your app resumes normal operation.

Hope this helps.

Smile | :)

Luc Pattyn

[My Articles]

AnswerRe: Parameterless Webbrowser-constructor crashes with "The parameter is incorrect" Pin
plokkoville15-Apr-07 23:46
plokkoville15-Apr-07 23:46 
GeneralRe: Parameterless Webbrowser-constructor crashes with "The parameter is incorrect" Pin
plokkoville11-May-07 4:16
plokkoville11-May-07 4:16 
GeneralRe: Parameterless Webbrowser-constructor crashes with "The parameter is incorrect" Pin
Luc Pattyn11-May-07 7:14
sitebuilderLuc Pattyn11-May-07 7:14 
QuestionGIS programming Pin
cols291011-Apr-07 5:11
cols291011-Apr-07 5:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.