EXC_BAD_ACCESS (code=1, address=0x8) while trying to insert to postgresql #1824
-
Hi, I'd need your enlightenment on how to solve an issue of EXC_BAD_ACCESS when inserting a simple query to an account in postgresql. my method of calling in controller:
}` in the header of controller looks like this: The debug from lldb shows this in backtrace:
Is something wrong in the way I am doing it? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
EXC_BAD_ACCESS - your program accessed wrong memory address (address is 0x8, does not looks like correct address). It can be any error in program, usual debug situation. Try to debug step by step until error is fired. Probably, some variable is not initialized or used null pointer to class (0x8 is offset 8 of member from nullptr pointer). |
Beta Was this translation helpful? Give feedback.
Yeah you're right. I forgot to activate it in config.json. Therefore, it failed to segmentation fault. Thank you @VladlenPopolitov