[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 152
  • Last Modified:

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.

Thanx.

- Amit Engineer.
0
ave_15
Asked:
ave_15
  • 3
  • 3
1 Solution
 
mikeblasCommented:
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
0
 
ave_15Author Commented:
can u pl. give me some hints to do that ? i mean, how to go for it ?
0
 
mikeblasCommented:
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
0
[Webinar] Improve your customer journey

A positive customer journey is important in attracting and retaining business. To improve this experience, you can use Google Maps APIs to increase checkout conversions, boost user engagement, and optimize order fulfillment. Learn how in this webinar presented by Dito.

 
ave_15Author Commented:
Sorry, sir,

But, i am getting this problem only in release version.... Sorry, i should have informed you that ealier.
0
 
mikeblasCommented:
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
0
 
ave_15Author Commented:
Thanx... a lot.....
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now