Question

In C++Builder, I wrote the following code (in Button1Click handler), When I run in debug mode, I get the "Int3 DbgBreakPoint" (Stack corrupted?). This doesn't happen for AnsiSting (Maybe reference counting).

WideString boshluq;
boshluq=L" ";

Is this normal? What do you suggest me to fix this code?

Was it helpful?

Solution

WideStrings are pointer referenced variables for Windows WideStrings, maybe the problem is in your windows system library.

I have the same problem with breakpoint in the ntdll.dll, I dont know if it is the same for you.

I solve with this unit http://www.tbosystems.bluehosting.com.br/dbx4/int3.pas (Thanks to Leonel Togniolli), maybe you can check this out and see if can help you out, or try the same code in other windows machine.

OTHER TIPS

Or a debug version of a library getting called with WideStrings? With an explicit int 3; call build in?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top