Click here to Skip to main content
11,705,617 members (52,949 online)
Rate this: bad
good
Please Sign up or sign in to vote.
Hi, i made a program which finds contours of a given binary image..it works fine when i used it in vs2010..it is a console project..Now i tried the same code in Qt(used QT add-in in vs2010) with an simple interface.But it gives an exception in
findContours(Dialate, contours, hierarchy, CV_RETR_TREE , CV_CLOCKWISE, Point(0, 0));
line..i searched it on internet and one solutuion i found is change MFC as a shared DLL..but i ddnt work..Need help guys..Thanks in advance...

Exception :

Windows has triggered a breakpoint in TestProject.exe.
 
  This may be due to a corruption of the heap, which indicates a bug in TestProject.exe or any of the DLLs it has loaded.
 
  This may also be due to the user pressing F12 while TestProject.exe has focus.
 
  The output window may have more diagnostic information
Posted 25-Jun-13 21:07pm
Edited 25-Jun-13 23:41pm
(no name)460.3K
v2
Comments
The_Inventor at 26-Jun-13 5:24am
   
Sometimes Microsoft doesn't follow their own suggested guide lines for programming interfaces in .DLL's. Apple and Windows have had a hate-love relationship since the beginning of point and click. Often, when using the next version of VS, thinking it will recompile OK, when ...
Richard MacCutchan at 26-Jun-13 5:43am
   
You will need to do some debugging to find the cause of the problem. It is impossible for anyone else to guess what may be happening inside your code.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 213
1 Sergey Alexandrovich Kryukov 170
2 Inimicos 60
3 ProgramFOX 50
4 Richard MacCutchan 45
0 OriginalGriff 9,053
1 Sergey Alexandrovich Kryukov 8,347
2 CPallini 5,189
3 Maciej Los 4,726
4 Mika Wendelius 3,626


Advertise | Privacy | Mobile
Web01 | 2.8.150819.1 | Last Updated 26 Jun 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100