-1

I've written my app using allegro library and I want to open this app from qt. Problem is that allego app for work needs to open external font file. When I'm using:

QProcess *myProcess = new QProcess();
myProcess->start("C:/allegroApp.exe");

app crash occurs. Does somebody knows how to open it without a crash?

Rohit Gupta
  • 4,022
  • 20
  • 31
  • 41
qazkm
  • 1
  • 3
  • For crashes, you need to include the stack trace and the exact error messages in the question -- otherwise there's no way for anyone to know what the issue really is. – MrEricSir Dec 21 '15 at 00:11
  • Yes, but i know why crash occur but don't know how to fix it . Problem seems to be with that when i open this allegro app from qt it can't load other external font file. When i open allegro app manually from windows it works fine. – qazkm Dec 21 '15 at 07:51
  • Welcome to Stackoverflow. I have fixed English issues with your post. Please provide the stack trace and exact error message, as already requested by others. If you want someone to help you, then you have to help them by giving all the information. – Rohit Gupta Dec 23 '15 at 00:54

1 Answers1

1

You likely need to set QProcess::setWorkingDirectory correctly. Set the working dir to the one usually used when starting that app.

Aaron
  • 1,181
  • 7
  • 15