Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Exceptions

Author
Message
Blue Rogue
17
Years of Service
User Offline
Joined: 6th Jul 2007
Location:
Posted: 7th Jul 2007 06:19
hi,

Ive just been looking into the darkGDK.Net and was wondering about exception handling.

Simple question, are there any DarkGDK exceptions? I've had a quick look in the supplied help file but cant seem to see any.

Cheers.
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 7th Jul 2007 15:01
The dgdk.net is a com interop wrap of the c++ lib version, it doesnt provide any of its own exception namespaces, but you can trap exceptions in your code using the try-catch-finally-end try construct, and if iirc you can also use the global exception handling capability added in .net 2.0 (vs 2005) via the ApplicationEvents.vb/.cs partial class exposed thru the My namespace.

hope that helps

My DBP plugins page is now hosted [href]here[/href]
APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 7th Jul 2007 15:15
Blue Rogue, the only exception that's thrown at the moment, is the access denied error. Because DGDK (C++) doesn't throw exceptions, I'm unable pass error status values back to .NET either. If you're trying to figure out if a function has failed, in most cases, these functions can be tested after you call them. I.e. Test the existance of objects after loading them etc.

Unfortunately until DGDK has a way to pass back error status values, I can't implement exception throwing in DGDK.NET.

Paul.

Blue Rogue
17
Years of Service
User Offline
Joined: 6th Jul 2007
Location:
Posted: 7th Jul 2007 16:34
thanks for your replies. Yeah I figured as much Paul. Am still reading up on darkGDK.net and learning as I go but getting there

Login to post a reply

Server time is: 2024-11-19 13:31:09
Your offset time is: 2024-11-19 13:31:09