2014-04-17 17:29 UTC
OK I've been chasing this bug for months now.
The prob. is 99% of the time the code run fine.
Only about once or twice a week across 30 users does the bug pop up.
I keep getting this invalid argument type for my tree control (see attached pic).
I've added this debug code:
(defun c:MainTMaCAD_TreeControl_OnItemExpanding (ItemText Key / x n1 tpkey rValue PathList CurrectKey ParentKey SubFolders KidKey ParKey)
(if DEBUG
(progn
(princ "\nRunning TreeControl_OnItemExpanding... ")
(princ "\nItemText: ")
(princ ItemText)
(princ "\nKey: ")
(princ Key) ;<--- Crashing here
)
);_ if
(if (dcl_Tree_IsItemExpanded TMaCAD_MainTMaCAD_TreeControl Key) ;<--- Crashing here, if DEBUG is off
.......
The output I get is:
When the code is working 99% of the time I get, something like this:
What is wrong with the key? Is this a memory addressing issue?
OpenDCL Runtime [7.0.1.2]
The prob. is 99% of the time the code run fine.
Only about once or twice a week across 30 users does the bug pop up.
I keep getting this invalid argument type for my tree control (see attached pic).
I've added this debug code:
(defun c:MainTMaCAD_TreeControl_OnItemExpanding (ItemText Key / x n1 tpkey rValue PathList CurrectKey ParentKey SubFolders KidKey ParKey)
(if DEBUG
(progn
(princ "\nRunning TreeControl_OnItemExpanding... ")
(princ "\nItemText: ")
(princ ItemText)
(princ "\nKey: ")
(princ Key) ;<--- Crashing here
)
);_ if
(if (dcl_Tree_IsItemExpanded TMaCAD_MainTMaCAD_TreeControl Key) ;<--- Crashing here, if DEBUG is off
.......
The output I get is:
Running TreeControl_OnItemExpanding...
ItemText: 13081
Key: 2.1868e+009; error: ADS request error
When the code is working 99% of the time I get, something like this:
Running TreeControl_OnItemExpanding...
ItemText: 13081
Key: 833029504
What is wrong with the key? Is this a memory addressing issue?
OpenDCL Runtime [7.0.1.2]
