Increase Memory of opencascade project

Hi all,
My opencascade project is built in visual c++ environment. My problem is that when I try to run the program there is an error as, "Fatal Error in graphic initialization."
Can I use a bat file and set the memory allocation using it and how? Please help me.


gishara's picture


I have fixed the error by using a bat file to launch the project. Now it runs well without debugging. But once I debug the project I get an error saying,
" Microsoft C++ exception: Standard_ProgramError at memory location 0x0012edfc.." in dbgheap.c file,
void * pvBlk = _nh_malloc_dbg_impl(nSize, nhFlag, nBlockUse, szFileName, nLine, &errno_tmp).
Please help me. I am stuck.