MFC Error Message.

Hi there.

I am getting an error message which says "An Unsupported Operation Attempted."

Please note that i am trying to stop one thread and try to create another one. At the same time i am doing some operations to Tree Control also. Also i am creating some MFC standard controls dynemically.

Please let me know why and when one should get this message. And how to eliminate that. Also note that this is just an informative message. It doesn't stops the applicaiotn. Though, application gets slow down after that.


- Amit Engineer.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

MFC puts up this message box when a CNotSUpportedException is thrown and nobody catches it.

You need to one or both of these things:

1) Find the cause of the exception and correct it.

2) Add an exception handler around the code which might throw the exception and deal with the error appropriately.

..B ekiM

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ave_15Author Commented:
can u pl. give me some hints to do that ? i mean, how to go for it ?
1) Put a breakpoint on AfxThrowNotSupportedException().

2) Put a breakpoint on CNotSupportedException's constructor

3) Run your app

4) When either breakpoint is hit, look at the call stack to find out which operation threw the exception.

..B ekiM
Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

ave_15Author Commented:
Sorry, sir,

But, i am getting this problem only in release version.... Sorry, i should have informed you that ealier.
Then you need to:

1) Create a new build configuration, based on your release build

2) Add debugging info in the C/C++ tab

3) Enable debugging info in the Linker tab

4) Build

5) Debug as I explained above.

..B ekiM
ave_15Author Commented:
Thanx... a lot.....
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.