delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/06/24/13:53:56

From: "Martin Alnęs" <removethis DOT malnaes AT c2i DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: error message, possible bug?
Lines: 32
X-Newsreader: Microsoft Outlook Express 4.72.3110.5
X-MIMEOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Message-ID: <0Itc3.174$M91.4637@news>
Date: Thu, 24 Jun 1999 17:14:36 GMT
NNTP-Posting-Host: 193.217.238.94
X-Complaints-To: abuse AT tele2 DOT no
X-Trace: news 930244476 193.217.238.94 (Thu, 24 Jun 1999 19:14:36 MET DST)
NNTP-Posting-Date: Thu, 24 Jun 1999 19:14:36 MET DST
Organization: Tele2 Norway AS Public Access
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"Exiting due to SIGSEGV signaling" if I recall it right...
The faq says to report this message, since it is possibly a bug in DJGPP,
so I hope the right person(s) is watching.
(if not, can anyone tell me where to report to?)

Seems like the error occurs when the program
contains a conversion from a class to another:

// conversion:
SLNode::operator String()
{
    if(m_str == NULL)
        return String("");
    else
        return *m_str;    // String * m_str
}

int main()
{
    SLNode * pHead;
    *pHead = "Original head";
    String temp("tempstring");
    temp = *pHead;
}


Can anyone see any obvious mistakes?
If more code is needed, tell me.
--
Martin Alnaes - malnaes at c2i.net


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019