error in folderbrowse dialog

  • Thread starter Thread starter trialproduct2004
  • Start date Start date
T

trialproduct2004

hi all
ia am getting following error at a time of displaying folder
browserdialog in c#.
'Unable to cast object of type System.__ComObject to type IMalloc.'

can some one help me why this is happening.
I am just calling showdialog method without setting any property.

any help will be appreciated.

thanks in advance.
 
hi all
ia am getting following error at a time of displaying folder
browserdialog in c#.
'Unable to cast object of type System.__ComObject to type IMalloc.'

can some one help me why this is happening.
I am just calling showdialog method without setting any property.

any help will be appreciated.

That is odd. Can you provide a short but complete[1] program that shows the
error and tell me what version of the framework you are running on?

1. http://www.yoda.arachsys.com/csharp/complete.html
 
Are you using your own folder browser dialog, or are you coding your own
(you need to have a definition of IMalloc if you are coding your own using
the API).

If you are using your own, then can you show the declaration of IMalloc?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top