This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Implementing Exceptions Using setjmp/longjmp


Implementing Exceptions Using setjmp/longjmp

Postby mlepage » Aug 24, 2003 @ 5:09am

User avatar
mlepage
pm Insider
 
Posts: 1050
Joined: Aug 3, 2003 @ 4:47am
Location: Canada


Testing the Mechanism

Postby mlepage » Aug 24, 2003 @ 5:13am

User avatar
mlepage
pm Insider
 
Posts: 1050
Joined: Aug 3, 2003 @ 4:47am
Location: Canada


Postby mlepage » Sep 2, 2003 @ 2:44am

www.scalenesoftware.com
Great games for your Palm and Pocket PC!
User avatar
mlepage
pm Insider
 
Posts: 1050
Joined: Aug 3, 2003 @ 4:47am
Location: Canada


Postby angedelamort » Sep 3, 2003 @ 2:13pm

It's been a while I didn't come here, but after reading the thread title, I remember reading something about that. Here something that looks like what I've read:


But I have to say that it's a really nice and simple implementation of the try catch system you've made there. But I learned in your post that try/catch is not working in EVC :P So I think it's excusable.
User avatar
angedelamort
pm Member
 
Posts: 304
Joined: Mar 7, 2002 @ 11:16pm
Location: Montreal, Quebec


Postby Orpe » Sep 3, 2003 @ 3:53pm

User avatar
Orpe
pm Member
 
Posts: 78
Joined: Sep 16, 2001 @ 6:51pm
Location: Stockholm, Sweden


Postby mlepage » Sep 4, 2003 @ 2:30am

But are stack objects (auto storage) automatically destroyed when a longjmp occurs? I didn't think they were, but I can't say I know for sure. Doesn't your method rely on that? I wanted to do something like that, but wasn't sure it was possible.

There's lots of fancy exception implementations out there, I kind of like mine for being extremely simple.

By all means check for try/catch depth if you have nested code. So far I'm not heavily nesting code that uses exceptions, so I'm fairly safe from that particular problem.
www.scalenesoftware.com
Great games for your Palm and Pocket PC!
User avatar
mlepage
pm Insider
 
Posts: 1050
Joined: Aug 3, 2003 @ 4:47am
Location: Canada


Postby Orpe » Sep 4, 2003 @ 2:55am

User avatar
Orpe
pm Member
 
Posts: 78
Joined: Sep 16, 2001 @ 6:51pm
Location: Stockholm, Sweden


Postby mlepage » Sep 4, 2003 @ 3:01am

www.scalenesoftware.com
Great games for your Palm and Pocket PC!
User avatar
mlepage
pm Insider
 
Posts: 1050
Joined: Aug 3, 2003 @ 4:47am
Location: Canada


Postby Orpe » Sep 4, 2003 @ 3:08am

User avatar
Orpe
pm Member
 
Posts: 78
Joined: Sep 16, 2001 @ 6:51pm
Location: Stockholm, Sweden


Postby mlepage » Sep 4, 2003 @ 3:31am

www.scalenesoftware.com
Great games for your Palm and Pocket PC!
User avatar
mlepage
pm Insider
 
Posts: 1050
Joined: Aug 3, 2003 @ 4:47am
Location: Canada


Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron