Internal error

Discussions related to Visual Prolog
David Harris
Posts: 15
Joined: 14 Jun 2012 7:47

Internal error

Unread post by David Harris » 24 Jun 2012 12:50

On working through Visual Prolog Beginners Guide I got the following error. I was using the worked example and this occured at p128. Any ideas?

========================================
Dump: 2012/06/24 12:46:36
----------------------------------------
Exception: singleFactHasNoValue (com/visual-prolog/exception/runtime_exception)

Single fact has no value

error code = 329
ExtraInfo = Single fact 'name' from internal database 'person::person$objectDB' has no value

raised() 2012/06/24 12:46:26
ThreadId=3624
ClassInfo: com/visual-prolog/exception/runtime_exception $JustDate: 2010-01-05 $$Revision: 21 $


c:\data\ch08class\person\person.pro(22)
c:\Data\ch08class\Exe\VIP7Kernel.dll (0x14003D82)
c:\Data\ch08class\Exe\VIP7Run.dll (0x14502F37)
c:\data\ch08class\person\person.pro(22)
c:\data\ch08class\person\person.pro(21)
c:\data\ch08class\taskwindow\taskwindow.pro(59)
c:\program files (x86)\visual prolog 7.3 pe\pfc\gui\window.pro(889)
c:\program files (x86)\visual prolog 7.3 pe\pfc\gui\window.pro(1136)
c:\program files (x86)\visual prolog 7.3 pe\pfc\gui\drawwindow.pro(418)
c:\program files (x86)\visual prolog 7.3 pe\pfc\gui\documentwindow.pro(289)
c:\Data\ch08class\Exe\VIP7Kernel.dll (0x14009AB5)
c:\Data\ch08class\Exe\vip7vpi.dll (0x15321200)
c:\Data\ch08class\Exe\vip7vpi.dll (0x15315163)
c:\Data\ch08class\Exe\vip7vpi.dll (0x153168CF)
c:\Data\ch08class\Exe\vip7vpi.dll (0x1531EB80)
C:\Windows\syswow64\USER32.dll (0x75DE62FA)
C:\Windows\syswow64\USER32.dll (0x75DE6D3A)
C:\Windows\syswow64\USER32.dll (0x75DE77C4)
C:\Windows\syswow64\USER32.dll (0x75DE788A)
c:\Data\ch08class\Exe\vip7vpi.dll (0x1531C4B9)
c:\program files (x86)\visual prolog 7.3 pe\pfc\vpi\vpi.pro(23)
c:\program files (x86)\visual prolog 7.3 pe\pfc\application\exe\mainexe.pro(34)
c:\data\ch08class\main.pro(24)
c:\Data\ch08class\Exe\VIP7Kernel.dll (0x14009B0C)
c:\Data\ch08class\Exe\VIP7Kernel.dll (0x14009DBC)
c:\Data\ch08class\Exe\ch08class.exe (0x00491FD1)
C:\Windows\SysWOW64\ntdll.dll (0x779E9EF2)
C:\Windows\SysWOW64\ntdll.dll (0x779E9EC5)
c:\Data\ch08class\Exe\ch08class.exe (0x00491F90)
c:\Data\ch08class\Exe\ch08class.exe (0x00491F90)

----------------------------------------
OS information:

Minor: 1, product 0x00000001. Service Pack 1 64-bit (Build 7601)
Number Of Processors: 4 PageSize: 4096 Processor: 8664 level: 6 revision: 9474
ProcessorNameString: Intel(R) Core(TM) i5 CPU M 430 @ 2.27GHz
VendorIdentifier: GenuineIntel
Identifier: Intel64 Family 6 Model 37 Stepping 2
~MHz: 2260

:
Delta the Cat

User avatar
Thomas Linder Puls
VIP Member
Posts: 1632
Joined: 28 Feb 2000 0:01

Unread post by Thomas Linder Puls » 24 Jun 2012 19:16

Well, the fact variable 'name' is accessed before a value has been assigned to it.

But without seeing your code it is not possible to say what is wrong.
Regards Thomas Linder Puls
PDC

David Harris
Posts: 15
Joined: 14 Jun 2012 7:47

Unread post by David Harris » 25 Jun 2012 1:10

OK. Sorry to refer a trivial error to you, but your comment did allow me to fix it in a few minutes! The heading to the error message said something like "Internal error - refer to supplier", and I referred it to you as the supplier of VIP. I guess the supplier was actually me - the supplier of the code! Anyway, lesson learned.
Delta the Cat

User avatar
Thomas Linder Puls
VIP Member
Posts: 1632
Joined: 28 Feb 2000 0:01

Unread post by Thomas Linder Puls » 25 Jun 2012 6:31

No, problem with "trivial" questions; I am happy to help. Regarding the "supplier" you are absolutely right: it is you :-).
Regards Thomas Linder Puls
PDC

Post Reply