I tried doing the message(current_proc(0)); and it gave me the original error. I also tried this:
_str get_function_name()
{
_str sFunctionName = ""
_message_box(_mdi.p_child.current_proc(0));
return sFunctionName;
}
and received this error:
---------------------------
Slick-C Error
---------------------------
Control -mdi referenced but does not exist
file=GetFunctionName.ex offset=41
---------------------------
OK
---------------------------
Also I found a stack trace of when this error crashes the IDE:
Stack trace written to file: C:\DOCUME~1\JPN\LOCALS~1\Temp\vsstack
This property or method is not allowed on this object
slickc.ex 13222 select_proc(0,4,,0) p_window_id: 25 p_object: OI_TREE_VIEW p_name: _proj_tooltab_tree
GetFunctionName.ex 36 get_function_name() p_window_id: 25 p_object: OI_TREE_VIEW p_name: _proj_tooltab_tree
compile.ex 11828 _parse_project_command(
It looks like it might be trying to do the current_proc command on the treeview, how would i tell it to give me current_proc from the code. This worked fine before the new version of slickedit.
---UPDATE----
I am using this function and it works with in the code window, but I need it to work even if I right click on a file in the treeview, right now it crashes IDE.
_str get_function_name()
{
return current_proc(false);
}