Wim Hellenthal
|
ApCreateModule Segmentation fault
|
Wim Hellenthal
07/17/2014 9:27 AM
post111087
|
ApCreateModule Segmentation fault
Dear all,
I'm having a serious problem with binding the application builder (PhAB) resources. This is what I do
Within the PhAB (as part of the IDE):
- Generate UI
- Save
or the other way around. I assume that both action will generate new resource files (including header files) when
something has changed. Notice that in the error situation nothing actually has changed.
From the IDE
Compile all the source files (the post build binds all the resources into the executable using phabbind).
Now the following happens for some (not all) of the dialogs that are part of the GUI. Whenever I try to create them I
get a segmentation fault. This looks as if there is a mismatch between the generated header files and the position of
the resources in the executable. I can only avoid this type of behaviour when modifying the respective dialog by e.g.
move the button one pixel and then saving the project again from within PhAB. After recompiling the whole project the
dialog will pop-up as expected. But the error will still occur on other dialogs within the project. I can only avoid all
the errors by editing all the dialogs and stuff from within phAB. This is however tedious and error prone. I also does
not give me any confidence that this will always work.
The question is how this can happen and what to do about it. Is there a way to regenerate all the phAB generated files
every time I build the project from within the IDE? More important I don't understand why there is a mismatch in the
first place. Is this because the generated phAB files are corrupt or has it something to do with the phabbind program?
Hope someone can help!
By the way I'm using:
Momentics IDE version 4.7.0
PhAB version version 2.03
Target (x86), version 6.5.0
I'm using a windows 7 machine as host
Best regards,
Wim
|
|
|