Local WideString variable debug error “Int3 DbgBreakPoint”
-
23-08-2019 - |
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?
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?