- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
Steve, Colleagues:
A very small number of users of our code are encountering error 38 during an attempt of a binary file write:
- forrtl: The supplied user buffer is not valid for the requested operation.
- forrtl: severe (38): error during write. unit 2, file . . . . .
Here is the section of code involved
open(2,file = filespath(1:len_trim(filespath)) //'SurfaceGroupingIntoObjects.dat',form='binary', err=999, iostat=IOstat, buffered = 'yes', buffercount = 2, blocksize=1048576) do k = 1,NumEnclosingObjects write(2, err=999, iostat=IOstat) MappingEnclosingObjects(k) write(2, err=999, iostat=IOstat) ObjectContainsObject(MappingEnclosingObjects(k),0:ObjectContainsObject(MappingEnclosingObjects(k),0)) end do
The error occurs in the loop, not on the 1st iteration but after several (successful) writes. Any ideas?
David DiLaura
- Etiquetas:
- Intel® Fortran Compiler
Enlace copiado
1 Responder
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
Compiler version? Amount of data being written? We'd probably need a complete test case to look into this further. I'm aware of some issues we had regarding buffer positioning on reads, but not writes.
Responder
Opciones de temas
- Suscribirse a un feed RSS
- Marcar tema como nuevo
- Marcar tema como leído
- Flotar este Tema para el usuario actual
- Favorito
- Suscribir
- Página de impresión sencilla