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 .NET / [VB.NET 2008 GDK] Object ID caution, program continues with an exception but then crashes.

Chris Tate
DBPro Master
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 21st Jul 2011 20:36

There are not many VB.NET GDK developers here and this has been pointed out before in the case of meshes. As a reminder and warning, you have to keep an eye on your object identities when referencing them using the GDK commands.

Normally, in DBPRO, moving an object by the ID of zero will throw up an 'object number illegal' error message.

But in Visual Basic 2008, I am able to run the following code with no obvious problem.

But doing so will cause problems after a few sync calls ahead, during the sync call. You get a 'Exception of type 'System.ExecutionEngineException' error. No inner exception or any useful information of what is causing the problem; at first you'd test and eliminate the possible causes function by function, assuming it is something major, but it turns out to be a trivial matter of validating the object ID.

I strongly recommend checking the IDs using property or if blocks when working with 3d objects, meshes and perhaps other assets when using VB.

Login to post a reply

Server time is: 2023-12-06 07:26:22
Your offset time is: 2023-12-06 07:26:22