Load MDL app on Application Startup (MS_INITAPPS)

I am facing some issues in Successful loading MDL apps on Startup.

 

I have modified code as below and loaded MDL app.

 

if (strcmp(l_str_argument.c_str(), "MS_INITAPPS") == 0)

{

       mdlSystem_enterGraphics();

 

       mdlInput_sendCommand(CMD_DIALOG_OPENFILE, L"STARTUP", MSInputQueuePos::INPUTQ_HEAD, NULL, 0);

 

       SystemCallback::SetFileSaveFunction(OnFileSaveCallBack);

}

 

 

After executing above code, I am able to get MicroStation window. When I select any file displayed , Application gets crashed.

Parents Reply
  • Hi ,

    I would suggest that you rebuild your project listed below with Microsoft Symbols (*.pdb) since your solution's project appears not to be producing any, or you will need to find, test, and provide (current) build binaries (.ma, .dll, .pdb) so you can identify the source line of the crash in your code.

    0:000> lmvm hc_shield
    Browse full module list
    start             end                 module name
    00007ffa`8a300000 00007ffa`8a417000   hc_shield T (no symbols)           
        Loaded symbol image file: hc.shield.dll
        Image path: C:\Program Files\Bentley\MicroStation CONNECT Edition\MicroStation\Mdlapps\hc.shield.dll
        Image name: hc.shield.dll
        Browse all global symbols  functions  data
        Timestamp:        Wed Mar 10 05:16:16 2021 (60489C70)
        CheckSum:         00000000
        ImageSize:        00117000
        File version:     1.0.0.4
        Product version:  1.0.0.0
        File flags:       0 (Mask 3F)
        File OS:          40004 NT Win32
        File type:        1.0 App
        File date:        00000000.00000000
        Translations:     0000.04b0 0000.04e4 0409.04b0 0409.04e4
    

    HTH,
    Bob



Children