Skip to content

Commit

Permalink
- try to fix OMNotebook on OSX by increasing stack size. Now, OMNoteb…
Browse files Browse the repository at this point in the history
…ook does not crash here. Please test.

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@24388 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Henning Kiel committed Feb 3, 2015
1 parent f0b538a commit f43a23b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions OMNotebook/OMNotebookGUI/qtapp.cpp
Expand Up @@ -49,11 +49,27 @@
#include "application.h"
#include "cellapplication.h"

#ifdef Q_OS_MAC
//need to increase stack size on OSX
#include <sys/resource.h>
#include <sys/types.h>
#include <sys/time.h>
#endif

using namespace std;
using namespace IAEX;

int main(int argc, char *argv[])
{

#ifdef Q_OS_MAC
//need to increase stack size on OSX
rlimit limits;
getrlimit(RLIMIT_STACK, &limits);
limits.rlim_cur = limits.rlim_max;
setrlimit(RLIMIT_STACK, &limits);
#endif

try
{
CellApplication a(argc, argv);
Expand Down

0 comments on commit f43a23b

Please sign in to comment.