List<int> values = new List<int>();
Interop.Account.AccountCallback accountCallback = (IntPtr data, IntPtr userdata) =>
{
- Account account = new Account(new SafeAccountHandle(data, true));
+ Account account = new Account(new SafeAccountHandle(data, false));
values.Add(account.AccountId);
account.Dispose();
return true;
throw AccountErrorFactory.CreateException(res, "Failed to get accounts from the database for account id: " + accountId);
}
Account ref_account = new Account(handle);
-
+
return ref_account;
}
List<int> values = new List<int>();
Interop.Account.AccountCallback accountCallback = (IntPtr handle, IntPtr data) =>
{
- Account account = new Account(new SafeAccountHandle(handle, true));
+ Account account = new Account(new SafeAccountHandle(handle, false));
values.Add(account.AccountId);
account.Dispose();
return true;
List<int> values = new List<int>();
Interop.Account.AccountCallback accountCallback = (IntPtr handle, IntPtr data) =>
{
- Account account = new Account(new SafeAccountHandle(handle, true));
+ Account account = new Account(new SafeAccountHandle(handle, false));
values.Add(account.AccountId);
account.Dispose();
return true;
List<int> values = new List<int>();
Interop.Account.AccountCallback accountCallback = (IntPtr handle, IntPtr data) =>
{
- Account account = new Account(new SafeAccountHandle(handle, true));
+ Account account = new Account(new SafeAccountHandle(handle, false));
values.Add(account.AccountId);
account.Dispose();
return true;