Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > DLL/stl-container error

Reply
Thread Tools

DLL/stl-container error

 
 
Morten Lind
Guest
Posts: n/a
 
      11-07-2003
Hello

I'm having a problem with some DLL, that I wrote, and a test
application using it, which I also wrote.

In the DLL some class A is defined and exported. I have no problem
using it in the test application. Also in the DLL there is a class B
which has a method of the kind

void B::getSomeAs(vector<A>& aContainer)

I can call this method on a B-object without problems, and get some
nice A-objects into a "vector<A> myAs". No problem there.

The problem arises when destroying the myAs. I get an assertion
failure saying "Expression: _CrtIsValidHeapPointer(pUserData)". (The
problem is not solved by returning a vector<A> instead of passing a
reference.)

I use Visual Studio VC++ 6.0, and I'm not using MFC in any of the
projects. All compiler and linker options are set to the same in all
projects, so it should not be a problem of those sorts.

This is a big problem for me, and I have no idea what's wrong. Could
anybody help me out here?

Thanks,
Morten Lind.
 
Reply With Quote
 
 
 
 
Jack Klein
Guest
Posts: n/a
 
      11-07-2003
On 7 Nov 2003 04:02:54 -0800, (Morten Lind) wrote in
comp.lang.c++:

> Hello
>
> I'm having a problem with some DLL, that I wrote, and a test
> application using it, which I also wrote.


Then you will need to ask about it in a Windows programming group, or
one of Microsoft's support groups in the news:microsoft.pubilc.vc.*
family. It is not a language issue, C++ does not define or support
DLLs.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++ ftp://snurse-l.org/pub/acllc-c++/faq
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ERROR [HY000] [Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0xffc Thread 0x228 DBC 0x437b94 Jet'. ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr bazzer ASP .Net 0 03-30-2006 03:16 PM
Error connecting to SQLExpress 2005 locally (error: 26 - Error Locating Server/Instance Specified) hfk0 ASP .Net 2 03-27-2006 08:43 PM
ERROR [HY000] [Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x8fc Thread 0x934 DBC 0x437b94 Jet'. ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr bazzer ASP .Net 1 03-24-2006 04:20 PM
ERROR [HY000] [Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x8fc Thread 0x934 DBC 0x437b94 Jet'. ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr bazzer ASP .Net 0 03-24-2006 02:22 PM
Error 500: ERROR: Cannot forward. Writer or Stream already obtained. Error JavaQueries Java 1 03-01-2005 06:30 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57