[8.0 beta 1 + x64] TC reports C++ exceptions preliminary

Bug reports will be moved here when the described bug has been fixed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
vburdo
Junior Member
Junior Member
Posts: 4
Joined: 2011-08-17, 20:05 UTC
Contact:

[8.0 beta 1 + x64] TC reports C++ exceptions preliminary

Post by *vburdo »

Hi, Cristian!

It looks like I experience %subj%.
I'm porting my plugin (bthftp) to x64. Some errors in this plugin are reported as c++ exceptions. I never let them out of plugin.
BUT, on x64 TC reports them before my exception handler has a chance to suppress them.
I didnt try it on 8.0 x86 yet. On 7.56 exception handlers work as expected.

How to reproduce:
- create sample x64 plugin using VS-2010 and C++
- in some function callable from TC use code

Code: Select all

try {
  throw std::runtime_error("bugbug");
} catch(std::exception const&) {
  //nothing
}
- TC will report this exception in message box as "Ctrl-C" exception.

PS. Didnt you try to use vectored exception handlers :) ?
User avatar
HolgerK
Power Member
Power Member
Posts: 5409
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

2vburdo

Looks like Christian already found a patch for exact this problem.
See the link http://bugs.freepascal.org/view.php?id=17280
from this post: http://ghisler.ch/board/viewtopic.php?p=227850#227850

Regards
Holger
vburdo
Junior Member
Junior Member
Posts: 4
Joined: 2011-08-17, 20:05 UTC
Contact:

Post by *vburdo »

Thanks, Holger

It definitely looks like the problem I ran into.
So, waiting for beta 2
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50479
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This should be fixed in beta 2, please try it!
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50479
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This was fixed according to other threads.
Author of Total Commander
https://www.ghisler.com
Post Reply