Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Delphi debugger stops to work after line 32767 when debugging from C++ proj



Permlink Replies: 8 - Last Post: Feb 24, 2015 6:10 AM Last Post By: Vladimir Ulchenko
Jean-Milost Rey...

Posts: 23
Registered: 11/8/11
Delphi debugger stops to work after line 32767 when debugging from C++ proj
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 11, 2015 4:47 AM
Hello,

I don't know if it's the correct forum to post this thread, but I've not found a better, so if it's the incorrect place, please forgive me.

Using RAD studio XE7, I'm working on a C++ project, that includes a third party component, named Virtual Trees. I have the source code of this component, that I sometimes use to trace some bugs on my project while the debugging phase. Debugging Delphi code from C++ classes works well in general, but I recently noticed that a part of my Virtual Tree class could never be debugged. I searched why, and I noticed that Delphi debugger stops suddenly to work after the line nb. 32767.

So, this sounds like a bug. Is this limitation known, and is there a way to workaround it? Somebody has interesting info about that?

Regards
Vladimir Ulchenko

Posts: 248
Registered: 1/12/00
Re: Delphi debugger stops to work after line 32767 when debugging from C++ proj
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 12, 2015 1:47 AM   in response to: Jean-Milost Rey... in response to: Jean-Milost Rey...
On Wed, 11 Feb 2015 04:47:28 -0800, Jean-Milost Reymond <> wrote:

So, this sounds like a bug. Is this limitation known, and is there a way to workaround it? Somebody has interesting info about that?

there is restriction on word-sized (16 bit) line numbers inherent to borland tds format
not sure whether it should work with line numbers up to 64K or not though

--
Vladimir Ulchenko aka vavan
Jean-Milost Rey...

Posts: 23
Registered: 11/8/11
Re: Delphi debugger stops to work after line 32767 when debugging from C++ proj
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 12, 2015 4:37 AM   in response to: Vladimir Ulchenko in response to: Vladimir Ulchenko
Hi Vladimir,

Thank you for your answer

Vladimir Ulchenko wrote:
there is restriction on word-sized (16 bit) line numbers inherent to borland tds format
Do you know if this limitation is officially documented? If it's the case, can you please tell me where?

Regards
Jan Dijkstra

Posts: 206
Registered: 11/4/99
Re: Delphi debugger stops to work after line 32767 when debugging from C++ proj
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 12, 2015 5:00 AM   in response to: Jean-Milost Rey... in response to: Jean-Milost Rey...
Jean-Milost Reymond wrote:
Hi Vladimir,

Thank you for your answer

Vladimir Ulchenko wrote:
there is restriction on word-sized (16 bit) line numbers inherent to borland tds format
Do you know if this limitation is officially documented? If it's the case, can you please tell me where?

Regards

My c++ source files go up to line numbers in excess of 45000, and so far I've had no problems stepping through them with the debugger. Mind you, this is the CBuilder 5 though. For my XE rebuild, I'm moving to more, but smaller, source files.
Jean-Milost Rey...

Posts: 23
Registered: 11/8/11
Re: Delphi debugger stops to work after line 32767 when debugging from C++ proj
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 12, 2015 5:24 AM   in response to: Jan Dijkstra in response to: Jan Dijkstra
Hi Jan,

Dijkstra wrote:
For my XE rebuild, I'm moving to more, but smaller, source files.
Excellent suggestion, that in fact I already apply :-) In my case, I need to debug a third party component (VirtualTrees), and unfortunately the supplied .pas is a very large file (38'492 lines of code)

I think I will report this case as a bug to Embarcadero, hoping thus they will react and fix this situation once for all

Regards
Vladimir Ulchenko

Posts: 248
Registered: 1/12/00
Re: Delphi debugger stops to work after line 32767 when debugging from C++ proj
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 12, 2015 5:58 AM   in response to: Jean-Milost Rey... in response to: Jean-Milost Rey...
On Thu, 12 Feb 2015 04:37:04 -0800, Jean-Milost Reymond <> wrote:

Do you know if this limitation is officially documented? If it's the case, can you please tell me where?

I'm not aware of anything newer than old Borland Open Architecture Handbook

--
Vladimir Ulchenko aka vavan
Jean-Milost Rey...

Posts: 23
Registered: 11/8/11
Re: Delphi debugger stops to work after line 32767 when debugging from C++ proj
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 12, 2015 6:14 AM   in response to: Vladimir Ulchenko in response to: Vladimir Ulchenko
Hi Vladimir,

Vladimir Ulchenko wrote:
I'm not aware of anything newer than old Borland Open Architecture Handbook
Ok, thanks

Regards
Rudy Velthuis (...


Posts: 7,731
Registered: 9/22/99
Re: Delphi debugger stops to work after line 32767 when debugging from C++ proj
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 19, 2015 9:46 AM   in response to: Vladimir Ulchenko in response to: Vladimir Ulchenko
Vladimir Ulchenko wrote:

On Wed, 11 Feb 2015 04:47:28 -0800, Jean-Milost Reymond <> wrote:

So, this sounds like a bug. Is this limitation known, and is there
a way to workaround it? Somebody has interesting info about that?

there is restriction on word-sized (16 bit) line numbers inherent to
borland tds format not sure whether it should work with line numbers
up to 64K or not though

Huh? I have most definitely used and debugged units that had more than
32k or 64k lines. Ok, one of them contains some 60,000 lines of
generated data, but even that is no problem.

--
Rudy Velthuis http://www.rvelthuis.de

"Democracy is not an incident that happens overnight, nor a gift
that America can give to the world. It is a culture which needs
peace to evolve." -- Shirin Ebadi, Nobel Peace Laureate of Iran
Vladimir Ulchenko

Posts: 248
Registered: 1/12/00
Re: Delphi debugger stops to work after line 32767 when debugging from C++ proj
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 24, 2015 6:10 AM   in response to: Rudy Velthuis (... in response to: Rudy Velthuis (...
On Thu, 19 Feb 2015 09:46:42 -0800, Rudy Velthuis (TeamB) <newsgroups at rvelthuis dot de> wrote:

Huh? I have most definitely used and debugged units that had more than
32k or 64k lines. Ok, one of them contains some 60,000 lines of
generated data, but even that is no problem.

what version of bcb you were using?

--
Vladimir Ulchenko aka vavan
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02