0

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?

samir105
  • 949
  • 11
  • 16

2 Answers2

1

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

Lars Truijens
  • 42,837
  • 6
  • 126
  • 143
1

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.

Cesar Romero
  • 4,027
  • 1
  • 25
  • 44