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 / DGDK.NET - Samples converted to C# and VB.NET

Author
Message
Dark Inferno Studios
17
Years of Service
User Offline
Joined: 7th Nov 2006
Location: United Kingdom
Posted: 19th Nov 2006 16:32
Hi,
I have converted samples that do not have their equivalent in C# or VB.NET.

This does not include the ODE.NET Sample I made.

Version 1.0.0.0: Download
APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 19th Nov 2006 17:27
I'll check these samples because I'm not fully convinved of the auto conversion tool you used on the ODE sample. I had to make some minor changes to stop it from crashing.

Paul.

APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 19th Nov 2006 17:45
Dark, After installing them, the Animation Showcase sample isn't pointing to the media folder correctly so it doesn't pick up the media folder, and it bombs when I close it down, this happened with the ODE sample conversion as well, but the problem disappeared when I recreated the C# project from scratch. There are a couple of other things as well, but I think with a little time to sort them out, this'll be pretty good.

Cheers

Paul.

Dark Inferno Studios
17
Years of Service
User Offline
Joined: 7th Nov 2006
Location: United Kingdom
Posted: 19th Nov 2006 18:52
I have updated it.

Download it above.

Also, I converted these manually.
Dark Inferno Studios
17
Years of Service
User Offline
Joined: 7th Nov 2006
Location: United Kingdom
Posted: 19th Nov 2006 18:57
Hi,
I can't edit my first post. So, here is the link:

Version 1.1.0.0: Download
James Bondo
17
Years of Service
User Offline
Joined: 12th Nov 2006
Location: Denmark
Posted: 19th Nov 2006 19:18
I sometimes get an unhandled exeption error (that windows one where you can send a report) when i press ESC. Happens even with the simplest of programs, such as the spinning cube. But then i can run it again and have no problems.

Proud member of The Unforgiven Warriors
http://www.tuwguild.com
Dark Inferno Studios
17
Years of Service
User Offline
Joined: 7th Nov 2006
Location: United Kingdom
Posted: 19th Nov 2006 23:44
Hi,
That is a bug with the GDK. I can't fix it.
tschwarz
19
Years of Service
User Offline
Joined: 13th Feb 2005
Location: 127.0.0.1
Posted: 22nd Nov 2006 21:40
Thanks for the conversions, much appreciated.
APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 23rd Nov 2006 02:11
Quote: "Hi,
That is a bug with the GDK. I can't fix it. "


What bug?

My original Winforms sample runs ok.

Paul.

jasuk70
21
Years of Service
User Offline
Joined: 3rd Dec 2002
Location: Hemel Hempstead
Posted: 23rd Nov 2006 10:37 Edited at: 23rd Nov 2006 10:40
Apex,

Every now and again, I get a small problem when running that sample (Original C# one). The window closes but there seems to be a .exe left running in task manager. I've never got the Unhandled exception happen though.

If/When it happens again, I'll use process explorer to burrow down into what the exe/thread is doing.

Jas

----
"What is this talk of 'release'? Klingons do not'release' software. It escapes leaving a bloody trail of developers and quality assurance people in its wake!"
APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 23rd Nov 2006 14:17
Ok great . If the EXE is being left in process, I suspect that the main loop isn't exiting or closing down correctly. Normally this is caused by the 'While oDBP.LoopGDK' itteration from exiting correctly.

With non-winforms apps, this loop gets released when you hit the ESC key, but because WinForms apps tend to kill the oDBInput class, this ESC key isn't detected. You need to make sure that the loop gets killed via flag that is set in the WinForms.Close event.

Paul.

James Bondo
17
Years of Service
User Offline
Joined: 12th Nov 2006
Location: Denmark
Posted: 23rd Nov 2006 20:14
Quote: "That is a bug with the GDK. I can't fix it."


I know that, but im a new member so there is a waiting time from me posting till it ends up here
My message was directed to Apex.

@Apex: The unhandled exception says something about the COM object has disconnected and returned an unhandled HResult. It doesnt happen everytime, but my guess is that when you press escape, the DGDK disconnects before the loop finishes and then the DGDK command on whatever line it disconnected on fails to execute.
The error happens more often if theres more code in the loop.

Heres a screenshot (I'm from Denmark btw):

Basically, the danish part of the message means:
The object has disconnected its clients.

As you can see, this is just the spinning cube with a little extra computing time

Proud member of The Unforgiven Warriors
http://www.tuwguild.com

Login to post a reply

Server time is: 2024-09-28 23:17:49
Your offset time is: 2024-09-28 23:17:49