Registered Member
|
If I run my program with the "Execute" button in KDevelop, it throws an exception. However, if I run the same executable from a terminal, it finishes successfully. There are no command line arguments to the program. If I run it with the "Debug" button (even though it is built in Release mode), it also completes successfully.
Any clues as to what could cause this? Thanks, David |
Global Moderator
|
Hi,
sounds weird. Are you sure the same program is being run? Also, environment variables and terminal capabilities can be different. What kind of program is that? Is the source code available? Cheers, Sven
I'm working on the KDevelop IDE.
|
Registered Member
|
> sounds weird. Are you sure the same program is being run?
Yep. I output argv[0] and then copied and pasted it into the terminal. > Also, environment variables and terminal capabilities can be different. What kind of program is that? Is the source code available? The code is available, but it depends on many libraries so I wouldn't encourage anyone to try to compile it . The part of the code that seems to be changing behavior is an eigen decomposition of a matrix from the Eigen3 library. My terminal and KDevelop environment are both totally standard/default. I think you got it right with "sounds weird" haha. The worst part is that it runs fine in the debugger, so "step through with a debugger" (the normal recourse) it out! David |
Global Moderator
|
Hmm. Try printing all environment variables and look if there's anything different.
Greetings
I'm working on the KDevelop IDE.
|
Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell