Click to See Complete Forum and Search --> : MAPIResolveName problem


DimaK
May 18th, 1999, 11:08 AM
In my application which using Simple MAPI to send mail I use MAPIResolveName
function. When name couldn't be resolved (name not exists in Personal Address Book or I push "Cancel" button on resolved dialog box) my application crashes
on exit with "Access violation in MSOEACCT.DLL". I use this code several times
earlier and all was OK.
Thanks for help

Yogen M
August 12th, 1999, 12:14 PM
MAPI functions need the memory to be allocated in
a particular way because these functions modify the data passed to them. So they need to call realloc() on the data that u've 'alloc'ed.
Probably you are passing static data instead of dynamic which is resulting in crashing of ur program