OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: Jim Short on November 22, 2008, 02:46:54 PM

Title: Write to Dictionary inside Event fails
Post by: Jim Short on November 22, 2008, 02:46:54 PM
Beta 5.0.1.3

Can not make a dictionary entry of any kind inside checkbox callback event.

Got this error a few times.

Jim
Title: Re: Write to Dictionary inside Event fails
Post by: Kerry on November 22, 2008, 03:24:08 PM
Jim,
Can you post sample LSP code and a sample ODCL to demonstrate.
Title: Re: Write to Dictionary inside Event fails
Post by: Jim Short on November 22, 2008, 04:53:29 PM
Yes! Tomorrow early.

Thanks
Jim
Title: Re: Write to Dictionary inside Event fails
Post by: Jim Short on November 23, 2008, 08:05:53 AM
I have made a change to the dictionary routine and now I am not sure why its working inside of event call.
More testing need before next post.

Thanks,
Jim
Title: Re: Write to Dictionary inside Event fails
Post by: Jim Short on November 23, 2008, 01:31:38 PM
I tested the following but wonder if frailty may be introduced by
using the characters shown in a Dict or key name.

Dictionary names may not include : * = | ? < > , / `
May include  ! @ # $ % ^ & - _ + { } [ ] .

I am using "word{word" and "word[word]"

Thanks,
Jim
Title: Re: Write to Dictionary inside Event fails
Post by: Jim Short on November 23, 2008, 02:13:50 PM
(entmakex dataList) is failing inside check box event call

odcl project attached.

Works fine otherwise.

Thanks for any workarounds.
Jim
Title: Re: Write to Dictionary inside Event fails
Post by: owenwengerd on November 23, 2008, 04:26:16 PM
I'm not sure why your (entmakex) call would be failing, but you could try changing the checkbox control's EventInvoke property to 'Asynchronous' to see if anything changes.