NetTalk Central

Author Topic: Fatal Application Error  (Read 3475 times)

markster

  • Full Member
  • ***
  • Posts: 204
    • View Profile
    • Email
Fatal Application Error
« on: June 07, 2016, 10:56:34 AM »
My web app recently started to have the following error occur when closing the app. A message window pops up that says:

Given a foreign memory block - Realloc

This error occurs only AFTER all code in the app's base module has run during the close down process. Any ideas? It's a problem because in the event of an EXE crash, it won't auto restart and my website will be left hanging.

Regards,

Mark

markster

  • Full Member
  • ***
  • Posts: 204
    • View Profile
    • Email
Re: Fatal Application Error
« Reply #1 on: June 09, 2016, 04:02:02 PM »
The error turns out to be caused by starting an app as one entity which used the FastMem template. Then I split the app out into a data DLL and main EXE, but didn't realize that only the data DLL should have the FastMem template enabled. After I deleted the FastMem template from the main exe, the error went away.