Please Help me! I encounter the such 'splendid' error at runtime:
Microsoft Visual C++ Debug Library:
The value of ESP was not properly saved across a function call. This is usually a result of calling a function declared with one calling convention with a function pointer declared with a different calling convention.
(Press Retry to Debug the Application)
Then Press Retry to debug it, each time I found my program abort at the following code:
// aLine is a pointer of AIS_Line.
Handle(Geom_Point) hStart, hEnd;
TopoDS_Edge aEdge = BRepBuilderAPI_MakeEdge(hStart->Pnt(), hEnd->Pnt());
Each time the call stack will show the program abort on the final line. Why?
I think I shouldn't consider any calling convention as an Application developer. And this segment is runing very well before I introduce OCAF into my application. And I have checked all the compiler options, it seems no problem. Please help me!