Discussions related to Visual Prolog
ludieter
Posts: 23
Joined: 21 Dec 2010 19:40

Unclear error message

Unread post 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
Harrison Pratt
VIP Member
Posts: 439
Joined: 5 Nov 2000 0:01

Unread post 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.
User avatar
Thomas Linder Puls
VIP Member
Posts: 1398
Joined: 28 Feb 2000 0:01

Unread post 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.
Regards Thomas Linder Puls
PDC
ludieter
Posts: 23
Joined: 21 Dec 2010 19:40

Unread post by ludieter »

Thanks. I was worried it was a problem that would create a greater issue later on. I will gladly ignore it.
Post Reply