cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

toolkit function ProDirectoryChoose error

SP_10210577
11-Garnet

toolkit function ProDirectoryChoose error

Hello, I'm leaving a question because if I use the ProDirectoryChoose function while I was making the toolkit, I'm forced to exit.

The reason why this problem is difficult is that it is not always forced to shut down, but intermittently.

Does this function originally have this problem? Or am I using it incorrectly? I am attaching the code I wrote, so I would appreciate it if you let me know.

 

 

 

 

 

void OnIn_buttonClicked()
{
	ProError status = PRO_TK_NO_ERROR;

	//UI 디렉토리 대화상자 활성화
	status = ProDirectoryChoose(NULL, NULL, NULL, NULL, in_path);

	//UI input in_path 값 셋팅
	status = ProUIInputpanelValueSet(DIALOG_NAME2, "In_path", in_path);

	ProListDrwFilesInFolder();
}

 

 

 

 

 

The error occurs in ProDirectoryChoose.
in_path is a global variable of type ProPath.


Thank you.

 

 

3 REPLIES 3

Your call function looks normal.

Did you have read / write right access into the target folder?

Yes, I have permission. Actually, I did it a few times. This error may or may not occur.

 

I remember this window once in the input button and twice in total when specifying the output path. Among them,

I get this error a lot when I load the second time, is there an option to open the window once and then cancel the memory?

The good practice is check the status, because

PRO_TK_USER_ABORT   The user aborted from the user interface.

 

What you mean by "I remember this window once" ?

And what memory you want to cancel? ("then cancel the memory")

Top Tags