473,385 Members | 1,546 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

API returns memory related error when calling inside a DLL

Hi All,
I am calling a third party API which takes one PVOID argument and
returns data in it. It is a DLL application (Multithreaded dll). But
every time this API returning a memory related error saying that error
with buffer size. I am sure buffer size is enough.
I tried with allocating memory dynamically as well but got the same
result.

Kindly suggest.
Jul 23 '08 #1
2 1063
On Jul 23, 5:59*am, Pradeep <ncr.prad...@gmail.comwrote:
Hi All,
I am calling a third party API which takes one PVOID argument and
returns data in it. It is a DLL application (Multithreaded dll). But
every time this API returning a memory related error saying that error
with buffer size. I am sure buffer size is enough.
I tried with allocating memory dynamically as well but got the same
result.
And what was your question?

See FAQ 5.8, http://www.parashift.com/c++-faq-lit...t.html#faq-5.8

Also FAQ 5.9, as your question appears to be about some third party
library, rather than
the C++ language itself.
Jul 23 '08 #2
On Jul 23, 8:59*am, Pradeep <ncr.prad...@gmail.comwrote:
Hi All,
I am calling a third party API which takes one PVOID argument and
returns data in it. It is a DLL application (Multithreaded dll). But
every time this API returning a memory related error saying that error
with buffer size. I am sure buffer size is enough.
I tried with allocating memory dynamically as well but got the same
result.

Kindly suggest.
According to FAQ 5.9 (http://www.parashift.com/c++-faq-lite/how-to-
post.html#faq-5.9) this group is about the C++ language proper,
whereas your question is about third-party library used from a C++
application. Hence it is off-topic.

In any case, you haven't given us enough information to help you. We
don't know anything about what this DLL might be doing or what you
might be doing wrong. You'll need to find a more specific newsgroup
(see the list in the aforementioned FAQ) or contact the DLL vendor.

Cheers! --M
Jul 23 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: tornado | last post by:
Hi all, I am pretty new to PHP. I was reading PHP manual and trying out the example from 2nd chapter (A simple Tutorial). When i try to print the variable as given in the example it returns...
3
by: Karthik D | last post by:
Hello All, Basically I would like to take suggestions from programmers about implementation of a function which processes some error messages.(fyi:this is not a homework problem) Let me explain...
3
by: Gavin Kreuiter | last post by:
I am looking for some advice on how to debug a program when the debugger "print" command actually clears the corruption. This is not the usual non-initialised memory problem, because the program...
5
by: SDS | last post by:
I am writing an ASP.NET application (in C#) that, as part of a particular response, populates a MemoryStream object with binary data that is being collected from a Process object's StandardOutput. ...
2
by: Claes Bergefall | last post by:
I'm trying to call the GetCurrentThread API function from a managed C++ app, but for some reason it always returns a null handle?! And calling GetLastError (or Marshal::GetLastWin32Error)...
37
by: yogpjosh | last post by:
Hello All, I was asked a question in an interview.. Its related to dynamically allocated and deallocated memory. eg. //start char * p = new char; ...
9
by: burningsunorama | last post by:
Hi guys! This is maybe a too 'academic problem', but I would like to hear your opinions, something like pros and cons for each approach.... ... Recently we've had at work a little talk about the...
6
by: Rob C | last post by:
We have a C# app that runs on the PocketPC. We are having some odd behavior reported from our users that I have been unable to recreate. It made me start to look at memory issues. One of the...
9
by: weidongtom | last post by:
Hi, I've written the code that follows, and I use the function add_word(), it seems to work fine *before* increase_arrays() is called that uses realloc() to allocate more memory to words. But...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.