It is a example under C:\Program Files\Bentley\MicroStationCONNECTSDK\examples\Elements\ScaleRotateTextCell
I can successfully bmake (\ScaleRotateTextCell> bmake -a ) the example and load it via utility.
but crashes the microstation program when clicking the Origin rotate text&cell and Origin scale text&cell function.
The Active scale by 3 points and Active rotate by 2 points only responds but does not work by scaling nor rotating any selected element/object/model/text.
and only the undo button works, which by clicking it undo any globally performed action.
Please tell me what could be done to make this example work? Help is much appreciated.
Hi,
amender carapace said:I can successfully bmake (\ScaleRotateTextCell> bmake -a ) the exampl
What Visual Studio version do you use to compile the application?
amender carapace said:but crashes the microstation program
Sorry, but it tells nothing. What message or exception is displayed? Is exception log and memory dump created? When yes, do you analyze these files?
amender carapace said:Please tell me what could be done to make this example work?
All examples, delivered with MicroStation SDK, work. So the problem is probably in wrong compilation or in used DGN file.
With regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
Hi, thank you for your reply.
Jan Šlegr said:What Visual Studio version do you use to compile the application?
I use Visual Studio 2017 enterprise
Jan Šlegr said:What message or exception is displayed? Is exception log and memory dump created? When yes, do you analyze these files?
When Clicking the button, Microstation freezes for a second before a complete clean exit. There is no error warning signs nor log I could find, at least not anywhere I searched under prefix "Bentley" in my system files.
If you know where to find one, much is appreciated if you could tell where such logs would usually be located.
Jan Šlegr said:So the problem is probably in wrong compilation or in used DGN file
Probably so, but could you give more detail as to why this example crashes. Thanks ahead!
I could share with you the example code I used. But I do not know if it is legal to do so?
amender carapace said:Probably so, but could you give more detail as to why this example crashes
Without knowing your design file and/or analyzing memory dump, nobody can say.
amender carapace said: There is no error warning signs nor log I could find, at least not anywhere I searched under prefix "Bentley" in my system files.
See this wiki page (but there are more, discussing MicroStation exceptions in different aspects).
But in certain situations (because it is switched off, or the crash is specific and does not lead to standard crash procedure), MicroStation does not create memory dump. In such case I recommend to:
When no exception is generated even with pageheap active, configure Windows to create it automatically when MicroStation crashes. I requires to add this registry key:
[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\microstation.exe]
but it may also require further registry modifications, e.g. the key
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps
configures parameters like where the dumps are saved.
It's not MicroStation specific feature, but Windows one, so you can find details in Microsoft documentation.
amender carapace said:I could share with you the example code I used
I assume it's standard example, delivered with MicroStation SDK. So there is no reason to share it, all members in this forum have it ;-)
There is still some information missing:
Regards,