PHP Error: PHP Fatal error: Allowed memory size

I have a codeigniter app, now it is exe after i used exeoutput.
All the sections are working, however,

Problem1: when i try to access a section related to “Category” in my app, i am having a fatal error:
PHP Error: PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 65488 bytes) in C:\Users\admin\Documents\alphaposexe\data\application\models\Category.php on line 127

Problem2: PHP Fatal error: Call to a member function result() on a non-object in C:users\admin\documents\alphaposexe\application\models\customers.php on line 267

Why am i having these errors, any idea?
Usually if i open my app browser based, i never have these errors. only when it is exe mode

Thank you

PB1 : looks like a memory problem. Did you give enough memory for PHP in the PHP.INI file?
PB2: a missing file? Try to enable php error log to see more.