Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_discuss thread: Asp overflow


Message #1 by "pankaj kumar" <kumarpa@t...> on Fri, 29 Nov 2002 09:53:04
Hi Guys,
I have a vb wrapper dll which in turns call fortran dll. vb wrapper dll is 
called in asp page.
All values are returned byref and their data type is variant.
I have done error handling in vb dll. If an error occurs in fortran dll vb 
dll's function returns 'false', traps that error
and throws to asp. It works in all cases except when overflow occurs. 
If I call this dll into vb application dll function returns 'false' 
overflow exception is shown through property (ok)  but 
it not same with asp. In asp  function returns true, displays some junk 
values, why?

 What I couldn't understand is for same input values:

1.Why dll function returns true (no error) to asp even when overflow occur.
2.Why it displays invalid numbers-> "-1.#IND"(if assume no error occured). 
3.Does asp calls dll functions in different way? Handles variables  
differently.  

If someone  gives me an idea, clue to start with, I will appreciate very 
much.

Thanks in advance
 Pankaj
Message #2 by Teng Fong SEAK <tfseak@f...> on Fri, 29 Nov 2002 11:47:36 +0100
I don't have an accurate answer for you, sorry, because I don't use 
Fortran
in this way.  However, I've a little remark for you.

In modern flowing-point decimal arithmetic, there are these quantities:
NaN (Not a number), +Inf (plus infinity) and -Inf

So check to see if your Fortran and VB supports these quantities, and 
also
check if you indeed got these quantities.

> -----Message d'origine-----
> De : pankaj kumar [mailto:kumarpa@t...]
> Envoy=C3=A9 : vendredi 29 novembre 2002 10:53
> =C3=80 : asp_discuss
> Objet : [asp_discuss] Asp overflow
>
>
> Hi Guys,
> I have a vb wrapper dll which in turns call fortran dll. vb
> wrapper dll is
> called in asp page.
> All values are returned byref and their data type is variant.
> I have done error handling in vb dll. If an error occurs in
> fortran dll vb
> dll's function returns 'false', traps that error
> and throws to asp. It works in all cases except when overflow occurs. 

> If I call this dll into vb application dll function returns 'false'
> overflow exception is shown through property (ok)  but
> it not same with asp. In asp  function returns true, displays
> some junk
> values, why?
>
>  What I couldn't understand is for same input values:
>
> 1.Why dll function returns true (no error) to asp even when
> overflow occur.
> 2.Why it displays invalid numbers-> "-1.#IND"(if assume no
> error occured).
> 3.Does asp calls dll functions in different way? Handles variables 
> differently. 
>
> If someone  gives me an idea, clue to start with, I will
> appreciate very
> much.
>
> Thanks in advance
>  Pankaj

  Return to Index