🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #783

std::ostringstream problem

#783
From: Christophe MINETTI
Date: Thu, 10 Jan 2008 10:53
17 lines
1361 bytes
Hi all,

I am using an external frame grabber which uses DLL and internal
structures. To access this DLL, I have to use a strcuture with a member
postr defined as std::ostringstream *postr. Before calling my function I
use this line :

MyStruct.postr = new std::ostringstream;

which returns in a NULL pointer and the functions off the DLL crashes.

Any idea why the constructor std::ostringstream returns me a NULL
pointer ?

Many thanks in advance.

Chritophe
Technical Details
Message-ID: <4785F92D.22DC6601@ulb.ac.be>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,3f62c1f0f4825088,start
X-Google-Attributes: gid10cc67,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Message-ID: <4785F92D.22DC6601@ulb.ac.be>
Date: Thu, 10 Jan 2008 11:53:33 +0100
From: Christophe MINETTI <cminetti@ulb.ac.be>
X-Mailer: Mozilla 4.74 [en] (Windows NT 5.0; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: std::ostringstream problem
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 164.15.88.32
X-Trace: newsgroups.borland.com 1199962382 164.15.88.32 (10 Jan 2008 02:53:02 -0700)
Lines: 18
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail