Post new topic Reply to topic  [ 2 posts ] 

Board index : TeleFlow Forums : TeleFlow Designer & Simulator

Author Message
 Post subject:
PostPosted: Tue Mar 28, 2006 5:52 pm 
Offline

Joined: Mon Mar 27, 2006 3:19 pm
Posts: 5
I'm not sure how the DLL Function step can work correctly if there is no agreement on memory management functions. I mean, how do you know what memory manager is used to allocate the returned char pointer? What memory manager are you using to free the char pointer that is returned?


Back to top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 29, 2006 9:52 am 
Offline

Joined: Mon Mar 27, 2006 3:19 pm
Posts: 5
btw, memory allocated by DLL from manufacturer A being freed up by DLL from manufacturer B is a common design error that causes memory corruption. <br> <br>Two solutions is that you can require the DLL to have a Free function that you call to free up the returned char pointer, so the DLL can use the same memory manager that it used to allocate it in the first place. Or you can pass in a function pointer to your Alloc routine.


Back to top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

Board index : TeleFlow Forums : TeleFlow Designer & Simulator


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Style by Midnight Phoenix & N.Design Studio
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.