"ConvertStringToBSTR()" crashes

"ConvertStringToBSTR()" crashes

I am having trouble with ConvertStringToBSTR in IVF.

The following code:
-------------------------

program bstr

use ifcom


implicit none

integer(INT_PTR_KIND()) :: p1

p1 = ConvertStringToBSTR( "Does this work?" )


end program bstr

---------------------------------

causes the following error:

forrtl: severe (157): Program Exception - access violation
Image PC Routine Line Source
kernel32.dll 77E7A922 Unknown Unknown Unknown
bstr2.exe 004399AB Unknown Unknown Unknown

It works fine in CVF (of course using DFCOM instead of IFCOM).

Please let me know what would help.

11 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

I don't have a helpful suggestion, other than to say that I've noted the same problem.

It seems to me that this is something that ought to have been picked up in the course of routine QA on the Intel Fortran product: it doesn't affect Linux, so let Windows users pay!

Ciao,
Gerry T.

Thanks-- I've submitted the problem to Premier Support.

David,

Please share the resolution with the rest of the community, as like you and I, there are others who'd like to know whatever the score.

Thanks,
Gerry T.

The problem is fixed in the most recent update, 8.0.048 . I've installed it and tested it out. I believe the issue involved was:

"Q230296 Incorrect result (or access violation) with pointer valued character functions"

David

That's great, thanks from me and others for the feedback.

Ciao,
Gerry T.

I can't get ConvertStringToBSTR to work. The IVF product version that I have is w_fcp_p_8.0.048. I downloaded the recently released patch W_FC_PC_8[1].0.047_PE048.1.exe but it fails to install with an error 1706. Any help would be appreciated.

BWT, is there any way of confirming the IVF product version installed or whether the patch was ever applied?

Thanks,
Gerry T.

The example above works for me in 8.0.048.

To verify the version, use the command:

ifort -what -c something.f90

where "something.f90" is any compilable file. You'll see output such as this:

Intel Fortran Compiler for 32-bit applications, Version 8.0 Build 20040415Z
Package ID: w_fc_pc_8.0.047_pe048.1
Copyright (C) 1985-2004 Intel Corporation. All rights reserved.
Intel Visual Fortran 8.0-4307

That last line is useful as it is the actual compiler version, rather than a package identifier.

What do you get when you try this, Gerry?

Steve

Intel Fortran Compiler for 32-bit applications, Version 8.0 Build 20040318Z Package ID: w_fc_pc_8.0.047
Copyright (C) 1985-2004 Intel Corporation. All rights reserved.

Looks like it's not quite uptodate. I don't see anything obvious on IPS that I can download in lieu of what I have.

Thanks,
Gerry T.

Ok - you ought to be able to apply the patch.. Try uninstalling and reinstalling 8.0.047 and then try the "pe048" patch again. If you still have problems, send the details to support.

Steve

Happily that worked, like pounding on the TV, :-).

Thanks,
Gerry T.

Login to leave a comment.