Anonymous
|
My code calling NIFFindDesignNote crashed the Notes. Below is what I think I should provide for troubleshooting. Declare Function CNIFFindDesignNote Lib NOTESLIB Alias "NIFFindDesignNote" ( _ hFile As Long, _ Byval NoteName As String, _ NoteClass As Integer, _ retNoteID As Long _ ) As Integer Dim h_Form As Long Dim m_hDB As Long Dim ret As Integer Dim strFormName As String Const NOTE_CLASS_FORM = &H0004 ' form note 'm_hDB is a valid handle as the database is opened successfully. ret = CNIFFindDesignNote(m_hDB, strFormName, NOTE_CLASS_FORM, h_Form) ############################################################ @[ 1] 0x6018eb23 nnotes._Panic@4+483 (609d0013,559057b,12d0e4,60009522) @[ 2] 0x6018e8ec nnotes._Halt@4+28 (2b3,2,12d130,12d0f0) @[ 3] 0x60009522 nnotes._HANDLEDereference@4+50 (559057c,12d108,600094ae,559057c) @[ 4] 0x6000957c nnotes._HANDLEDereferenceToNSFBLOCK@4+12 (559057c,5590584,559057c,0) @[ 5] 0x600094ae nnotes._InitDbContextExt@12+46 (559057c,12d130,3,12d150) @[ 6] 0x60009592 nnotes._InitDbContext@8+18 (559057c,12d130,559057c,0) @[ 7] 0x60082be4 nnotes._NSFDbIsFindDesignNoteSupported@8+20 (559057c,12d2cc,5590584,648) @[ 8] 0x6008365a nnotes._FindDesignNote@48+170 (559057c,e3e8a6,5590648,0) @[ 9] 0x60896261 nnotes._NIFFindDesignNote@16+81 (559057c,e3e8a6,5590648,5590584) @[10] 0x6096da47 nnotes.LSsThread::DoCCallout+2631 (55903f8,5590628,ffffffff,487d350) ############################################################ # ---------- Top of the Stack ---------- # 0012c748 00000001 000002b3 0559057c 54200a0a |........|.Y... T| # 0012c758 61657268 305b3d64 3a384338 32303030 |hread=[08C8:0002| # 0012c768 4338302d 530a5d43 6b636174 73616220 |-08CC].Stack bas| # 0012c778 78303d65 32313030 38333845 7453202c |e=0x0012E838, St| # 0012c788 206b6361 657a6973 38203d20 20343434 |ack size = 8444 | # 0012c798 65747962 41500a73 3a43494e 6a624f20 |bytes.PANIC: Obj| # 0012c7a8 20746365 646e6168 6f20656c 6f207475 |ect handle out o| # 0012c7b8 61722066 0a65676e 00000000 00000000 |f range.........| # 0012c7c8 00000000 0001001c 00000000 00000000 |................| # 0012c7d8 00000000 00000000 00000000 00000000 |................| Many thanks for any help. Best regards, Johnny
|