Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Development
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 1st February 2012, 18:25   #1  |  Link
maxxon
Registered User
 
maxxon's Avatar
 
Join Date: Jan 2012
Location: On the net
Posts: 76
catching an exception

I was noticing that when catching an exception, the preceeding stack frame locations (lines) prior to the catch are not listed in the exception string.

Is there a reason for this? There are some ideas that I have where it would be useful in having the entre list. Also, it would be great for debugging.

Thanks,


|\/|x

Last edited by maxxon; 1st February 2012 at 18:28.
maxxon is offline   Reply With Quote
Old 1st February 2012, 19:56   #2  |  Link
Gavino
Avisynth language lover
 
Join Date: Dec 2007
Location: Spain
Posts: 3,431
Basically, the error string is built up by the interpreter as the stack unwinds(*) back to the point of the exception handler (try/catch). So it includes all stack frames between those two points, but not any frames enclosing the function that contains the try/catch statement - at that point in the execution, information about those outer frames is not readily available to the parser (whose operation is highly recursive).

(*)This unwinding occurs through a chain of C++ exception handlers.
__________________
GScript and GRunT - complex Avisynth scripting made easier
Gavino is offline   Reply With Quote
Old 1st February 2012, 23:14   #3  |  Link
maxxon
Registered User
 
maxxon's Avatar
 
Join Date: Jan 2012
Location: On the net
Posts: 76
Ah, that's too bad. It makes for slightly tricker debugging and keeps from determining what line you are currently on for other interesting things.


|\/|x
maxxon is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:33.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.