Thanks for you help.
I try to use modelRefP->GetDgnCache () but it does not solve the issue.
I use Microsoft Visual Studio 2005 Version 8.0.50727.762 (SP.050727-7600)
I have a more detail about microstation log.
Stack dump:
EBP RetAddr arg1 arg2 arg3 arg4
0: 0028ec78 77d18e89 e06d7363 00000001 00000003 0028eca4 KERNELBASE!RaiseException+0x48 [omap]
1: 0028ecb0 5ea77c1e 0028ecc0 5eaa03bc 5ea9acd0 00000000 MSVCR80!CxxThrowException+0x46 [omap]
2: 0028eccc 5ea6437d ff7c7a8b 00000000 0028eda0 ff7c7a8a PointCloudHandler!Bentley::Ustn::PointCloud::PointCloudChannels::CreateIterator+0x1f8 [omap]
3: 0028ece8 5ea6485f 00000000 00000001 199fe984 ff7c7a8a PointCloudHandler!Bentley::Ustn::PointCloud::IPointChannelQueryBuffer::Create+0x12d [omap]
4: 0028ed04 5ea71b92 0028ed28 00000000 07972e30 0028f00c PointCloudHandler!Bentley::Ustn::PointCloud::IPointChannelQueryBuffer::Create+0x60f [omap]
5: 0028ed20 5ea7ea72 07972e30 0028ed84 00000000 07972e30 PointCloudHandler!Bentley::Ustn::PointCloud::IPointCloudDataQuery::CreateSelectedPointsQuery+0x92 [omap]
6: 0028ed4c 090b0495 0028eda0 19994358 a0340d67 00000000 PointCloudHandler!Bentley::Ustn::Element::PointCloudHandler::GetElementRefs+0x38 [omap]
7: 0028ed6c 0f7e2e0d 00000000 003ba338 0028ef0c 0028edd8 <nosymbol>
8: 0028edd8 0f7e2c46 00000000 1ebe91ec 13bf2cb0 1ebe91ec <nosymbol>
9: 0028eee0 79d61b6c 79d70244 003834b0 0028ef70 79d78fba <nosymbol>
10: 0028eef0 79d78fba 0028eff0 00000000 0028efc0 00000000 mscorwks!<nosymbol>
11: 0028ef70 79df222a 0028eff0 00000000 0028efc0 00000000 mscorwks!<nosymbol>
12: 0028ef90 79df23e2 0f647ee8 0028eff0 00000000 00000001 mscorwks!GetMetaDataInternalInterface+0x1f977 [omap]
13: 0028f08c 79df2506 003ba338 0028f1ac 1ac89cd0 1ac8ca14 mscorwks!GetMetaDataInternalInterface+0x1fb2f [omap]
14: 0028f164 020e1ea6 003ba338 0028f1ac 0028f4ec 79f242e0 mscorwks!GetMetaDataInternalInterface+0x1fc53 [omap]
15: 0028f194 501c8c46 00000002 199f8898 50781fac 0028f4fc <nosymbol>
16: 0028f4fc 501c9041 0028f1c4 199f8898 240e37f0 0028f530 ustation!ustnmdl_remove+0x176 [omap]
17: 0028f51c 501c97cc 50781fac 199f8898 240e37f0 0028f60c ustation!dlmSystem_callAnyFunction+0x51 [omap]
18: 0028f54c 50234db8 0028fa80 0028f574 199f8a50 0028f574 ustation!mdlSystem_unloadApplicationClass+0x56c [omap]
19: 0028fa3c 50234e2b 0028fa80 00000001 507874e0 00000001 ustation!mdlInput_queueButtonAction+0x23b8 [omap]
20: 0028fa54 50182dd6 0028fa80 00000001 00000001 00000001 ustation!mdlInput_processQueuedInput+0x1b [omap]
21: 0028fa9c 501d1d06 04af6bf0 04af6b68 0028fd2c 501d1fbb ustation!mdlInput_standardKeyinActive+0xd6 [omap]
22: 0028faac 501d1fbb 00000000 00000000 00000001 0028fd50 ustation!mdlSystem_enterGraphicsExtended+0x1546 [omap]
23: 0028fd2c 5020e191 00000001 0028fd50 00000000 04a21150 ustation!mdlSystem_enterGraphicsExtended+0x17fb [omap]
24: 0028fe88 5020e20c 00500000 00000000 00000000 00366302 ustation!win32Intface_winMainStartFromForeignExecutable+0x1a1 [omap]
25: 0028fea8 00503c66 00500000 00000000 00366302 00000005 ustation!win32Intface_winMain+0x1c [omap]
26: 0028fecc 00503d33 00500000 00000000 00366302 00000005 ustation!<nosymbol>
27: 0028fef0 0050143f 00500000 00000000 00366302 00000005 ustation!<nosymbol>
28: 0028ff80 76657c04 fffd6000 76657be0 a6688d25 0028ffdc ustation!<nosymbol>
29: 0028ff94 76fcab8f fffd6000 a71b8803 00000000 00000000 KERNEL32!BaseThreadInitThunk+0x24 [omap]
30: 0028ffdc 76fcab5a ffffffff 76fafff0 00000000 00000000 ntdll!RtlInitializeExceptionChain+0x8f [omap]
31: 0028ffec 00000000 005015bc fffd6000 00000000 78746341 ntdll!RtlInitializeExceptionChain+0x5a [omap]
Managed Call Stack:
0: Void Bentley.Ustn.Element.PointCloudHandler.GetElementRefs(std.vector<Bentley::IElementRef \*\,std::allocator<Bentley::IElementRef \*> >*, Bentley.DgnCache*)
1: Void pointCloudTest()
d:\dev_mdl\prototype\testvs2005\appli\testvs2005.cpp(44)
2: Void Cmd_PlaceLineString(SByte*)
d:\dev_mdl\prototype\testvs2005\appli\testvs2005.cpp(55)
I try to use modelRefP->GetDgnCache () but it does not solve the issue.
I use Microsoft Visual Studio 2005 Version 8.0.50727.762 (SP.050727-7600)
I have a more detail about microstation log.
Stack dump:
EBP RetAddr arg1 arg2 arg3 arg4
0: 0028ec78 77d18e89 e06d7363 00000001 00000003 0028eca4 KERNELBASE!RaiseException+0x48 [omap]
1: 0028ecb0 5ea77c1e 0028ecc0 5eaa03bc 5ea9acd0 00000000 MSVCR80!CxxThrowException+0x46 [omap]
2: 0028eccc 5ea6437d ff7c7a8b 00000000 0028eda0 ff7c7a8a PointCloudHandler!Bentley::Ustn::PointCloud::PointCloudChannels::CreateIterator+0x1f8 [omap]
3: 0028ece8 5ea6485f 00000000 00000001 199fe984 ff7c7a8a PointCloudHandler!Bentley::Ustn::PointCloud::IPointChannelQueryBuffer::Create+0x12d [omap]
4: 0028ed04 5ea71b92 0028ed28 00000000 07972e30 0028f00c PointCloudHandler!Bentley::Ustn::PointCloud::IPointChannelQueryBuffer::Create+0x60f [omap]
5: 0028ed20 5ea7ea72 07972e30 0028ed84 00000000 07972e30 PointCloudHandler!Bentley::Ustn::PointCloud::IPointCloudDataQuery::CreateSelectedPointsQuery+0x92 [omap]
6: 0028ed4c 090b0495 0028eda0 19994358 a0340d67 00000000 PointCloudHandler!Bentley::Ustn::Element::PointCloudHandler::GetElementRefs+0x38 [omap]
7: 0028ed6c 0f7e2e0d 00000000 003ba338 0028ef0c 0028edd8 <nosymbol>
8: 0028edd8 0f7e2c46 00000000 1ebe91ec 13bf2cb0 1ebe91ec <nosymbol>
9: 0028eee0 79d61b6c 79d70244 003834b0 0028ef70 79d78fba <nosymbol>
10: 0028eef0 79d78fba 0028eff0 00000000 0028efc0 00000000 mscorwks!<nosymbol>
11: 0028ef70 79df222a 0028eff0 00000000 0028efc0 00000000 mscorwks!<nosymbol>
12: 0028ef90 79df23e2 0f647ee8 0028eff0 00000000 00000001 mscorwks!GetMetaDataInternalInterface+0x1f977 [omap]
13: 0028f08c 79df2506 003ba338 0028f1ac 1ac89cd0 1ac8ca14 mscorwks!GetMetaDataInternalInterface+0x1fb2f [omap]
14: 0028f164 020e1ea6 003ba338 0028f1ac 0028f4ec 79f242e0 mscorwks!GetMetaDataInternalInterface+0x1fc53 [omap]
15: 0028f194 501c8c46 00000002 199f8898 50781fac 0028f4fc <nosymbol>
16: 0028f4fc 501c9041 0028f1c4 199f8898 240e37f0 0028f530 ustation!ustnmdl_remove+0x176 [omap]
17: 0028f51c 501c97cc 50781fac 199f8898 240e37f0 0028f60c ustation!dlmSystem_callAnyFunction+0x51 [omap]
18: 0028f54c 50234db8 0028fa80 0028f574 199f8a50 0028f574 ustation!mdlSystem_unloadApplicationClass+0x56c [omap]
19: 0028fa3c 50234e2b 0028fa80 00000001 507874e0 00000001 ustation!mdlInput_queueButtonAction+0x23b8 [omap]
20: 0028fa54 50182dd6 0028fa80 00000001 00000001 00000001 ustation!mdlInput_processQueuedInput+0x1b [omap]
21: 0028fa9c 501d1d06 04af6bf0 04af6b68 0028fd2c 501d1fbb ustation!mdlInput_standardKeyinActive+0xd6 [omap]
22: 0028faac 501d1fbb 00000000 00000000 00000001 0028fd50 ustation!mdlSystem_enterGraphicsExtended+0x1546 [omap]
23: 0028fd2c 5020e191 00000001 0028fd50 00000000 04a21150 ustation!mdlSystem_enterGraphicsExtended+0x17fb [omap]
24: 0028fe88 5020e20c 00500000 00000000 00000000 00366302 ustation!win32Intface_winMainStartFromForeignExecutable+0x1a1 [omap]
25: 0028fea8 00503c66 00500000 00000000 00366302 00000005 ustation!win32Intface_winMain+0x1c [omap]
26: 0028fecc 00503d33 00500000 00000000 00366302 00000005 ustation!<nosymbol>
27: 0028fef0 0050143f 00500000 00000000 00366302 00000005 ustation!<nosymbol>
28: 0028ff80 76657c04 fffd6000 76657be0 a6688d25 0028ffdc ustation!<nosymbol>
29: 0028ff94 76fcab8f fffd6000 a71b8803 00000000 00000000 KERNEL32!BaseThreadInitThunk+0x24 [omap]
30: 0028ffdc 76fcab5a ffffffff 76fafff0 00000000 00000000 ntdll!RtlInitializeExceptionChain+0x8f [omap]
31: 0028ffec 00000000 005015bc fffd6000 00000000 78746341 ntdll!RtlInitializeExceptionChain+0x5a [omap]
Managed Call Stack:
0: Void Bentley.Ustn.Element.PointCloudHandler.GetElementRefs(std.vector<Bentley::IElementRef \*\,std::allocator<Bentley::IElementRef \*> >*, Bentley.DgnCache*)
1: Void pointCloudTest()
d:\dev_mdl\prototype\testvs2005\appli\testvs2005.cpp(44)
2: Void Cmd_PlaceLineString(SByte*)
d:\dev_mdl\prototype\testvs2005\appli\testvs2005.cpp(55)