Page 1 of 1

Unclear error message

Posted: 5 Aug 2016 12:01
by ludieter
In a new project, I assign one command to the file_new button:

onFileNew(_Source, _MenuTag):-
Filename=vpiCommonDialogs::getFileName("*.txt",["All files",".*"],"Choose File",[dlgfn_Save],"",_),!.

resulting in the error:

Exception 0x000006BA: unknown(0x000006BA),
at address: 0x7634DAE8 First Chance

I have tried changing the parameters of getFileName and even reinstalled VIP 7501 CE, to no avail.

Any suggestions?

Thanks
Dieter

Posted: 5 Aug 2016 16:06
by Harrison Pratt
Works fine for me in normal compile/execute mode, but I do get the same error in Debug mode. Perhaps it's related to error management (First Chance) that is normally hidden from the user.

Posted: 6 Aug 2016 12:51
by Thomas Linder Puls
I think this is a "phantom" exception that you only see when debugging.

I think it happens every first time the file open dialog is opened from a program. The file open dialog is part of Windows and it can do quite practically every thing that a Windows Explorer can do. In fact I believe that the Windows Explorer and the file open dialogs are the same program in different disguise.

Anyways, it is completely normal that the debugger is informed about an exception the first time the file open dialog is used, but this exception can safely be ignored it is not a malfunction of the program.

Posted: 6 Aug 2016 14:25
by ludieter
Thanks. I was worried it was a problem that would create a greater issue later on. I will gladly ignore it.