You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xalan.apache.org by David Fishburn <fi...@ianywhere.com> on 2003/10/08 15:57:51 UTC

Memory problems with Release version and a DLL

Good Morning Dave.

You reviewed and closed this case earlier
(http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23280), since I have
really botched my reproducable (apologies, cut too much code out).

The new repro I uploaded works for 5 iterations, then fails.  This is
exactly what I am seeing with the full project I have created.

I have created a readme.txt in the new zip file I uploaded.

Thanks,
Dave

Here is the main point where it throws an exception, with no message:


This reproducable appears to demonstrate what I have been running into.
This only occurs with Release code, when run with a Debug compile, it
appears I 
can run indefinitely.

Xalan 1.6
Xerces 2.3.0


In DLL Debug/extXalandll.cpp:

            {
                ret = theXalanTransformer.transform(
                        theXMLStream,
                        inputSource,
                        temp_fname
                        //theResultStream
                        );
                ...
            }
            catch (exception* e) 
            { 
                ...
            }
            catch(...)
            {
                THIS EXCEPTION IS CAUGHT.
                I HAVE NO IDEA WHAT IS CAUSING IT.
            }


RE: Memory problems with Release version and a DLL

Posted by David Fishburn <fi...@ianywhere.com>.
Arrgghh, that is the problem with stripping code for a repro...

I uploaded a new version.
Attachment 8494 to bug 23280 created

I hope that has everything you need.

Thanks for looking into it.

Dave


-----Original Message-----
From: Mark Weaver [mailto:mark@npsl.co.uk] 
Sent: Wednesday, October 08, 2003 10:10 AM
To: xalan-c-users@xml.apache.org
Subject: RE: Memory problems with Release version and a DLL


#include "extfnapi.h"

This seems to be missing.

> -----Original Message-----
> From: David Fishburn [mailto:fishburn@ianywhere.com]
> Sent: 08 October 2003 14:58
> To: xalan-c-users@xml.apache.org
> Subject: Memory problems with Release version and a DLL
> 
> 
> 
> Good Morning Dave.
> 
> You reviewed and closed this case earlier 
> (http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23280), since I 
> have really botched my reproducable (apologies, cut too much code 
> out).
> 
> The new repro I uploaded works for 5 iterations, then fails.  This is 
> exactly what I am seeing with the full project I have created.
> 
> I have created a readme.txt in the new zip file I uploaded.
> 
> Thanks,
> Dave
> 
> Here is the main point where it throws an exception, with no message:
> 
> 
> This reproducable appears to demonstrate what I have been running 
> into. This only occurs with Release code, when run with a Debug 
> compile, it appears I can run indefinitely.
> 
> Xalan 1.6
> Xerces 2.3.0
> 
> 
> In DLL Debug/extXalandll.cpp:
> 
>             {
>                 ret = theXalanTransformer.transform(
>                         theXMLStream,
>                         inputSource,
>                         temp_fname
>                         //theResultStream
>                         );
>                 ...
>             }
>             catch (exception* e) 
>             { 
>                 ...
>             }
>             catch(...)
>             {
>                 THIS EXCEPTION IS CAUGHT.
>                 I HAVE NO IDEA WHAT IS CAUSING IT.
>             }
> 
> 
> 


RE: Memory problems with Release version and a DLL

Posted by Mark Weaver <ma...@npsl.co.uk>.
#include "extfnapi.h"

This seems to be missing.

> -----Original Message-----
> From: David Fishburn [mailto:fishburn@ianywhere.com]
> Sent: 08 October 2003 14:58
> To: xalan-c-users@xml.apache.org
> Subject: Memory problems with Release version and a DLL
> 
> 
> 
> Good Morning Dave.
> 
> You reviewed and closed this case earlier
> (http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23280), since I have
> really botched my reproducable (apologies, cut too much code out).
> 
> The new repro I uploaded works for 5 iterations, then fails.  This is
> exactly what I am seeing with the full project I have created.
> 
> I have created a readme.txt in the new zip file I uploaded.
> 
> Thanks,
> Dave
> 
> Here is the main point where it throws an exception, with no message:
> 
> 
> This reproducable appears to demonstrate what I have been running into.
> This only occurs with Release code, when run with a Debug compile, it
> appears I 
> can run indefinitely.
> 
> Xalan 1.6
> Xerces 2.3.0
> 
> 
> In DLL Debug/extXalandll.cpp:
> 
>             {
>                 ret = theXalanTransformer.transform(
>                         theXMLStream,
>                         inputSource,
>                         temp_fname
>                         //theResultStream
>                         );
>                 ...
>             }
>             catch (exception* e) 
>             { 
>                 ...
>             }
>             catch(...)
>             {
>                 THIS EXCEPTION IS CAUGHT.
>                 I HAVE NO IDEA WHAT IS CAUSING IT.
>             }
> 
> 
>