[fdo-users] (dbgql_define_rdb) Memory Error when call FDOCmd.Execute()

Gavin Cramer gavin.cramer at autodesk.com
Tue Feb 22 21:36:39 EST 2011


Even if there is a lot of memory available on the machine, the memory heap for an individual process can become fragmented and unable to produce a new block of the requested size.

Are you running this code in Map, MapGuide or an independent FDO application?

Are you introducing any other components into the application -- anything that might even temporarily allocate a lot of blocks of memory?

Also, what operating system are you using?  They vary in the quality of heap management.

Gavin


-----Original Message-----
From: fdo-users-bounces at lists.osgeo.org [mailto:fdo-users-bounces at lists.osgeo.org] On Behalf Of Ray
Sent: Tuesday, February 22, 2011 5:26 PM
To: fdo-users at lists.osgeo.org
Subject: [fdo-users] (dbgql_define_rdb) Memory Error when call FDOCmd.Execute()



I am importing a large dataset from one gis source to another using FDO, I
got exception "(dbgql_define_rdb) Memory Error - Unable to allocate (114900
bytes)" when executing the code "FdoSelectCmd.Execute()".

What puzzles me is that there is sufficient (lots) memory on the machine,
and also after this FDO exceptioin, the program continuously run fine. I
mean .net code and Oracle command (both select and insert) allocates memory
and runs fine without complain.

The following is the snippet of the code. Why fdoCommand.Execute() complain
memory issue? I closed the fdoReader and dispose fdoReader and fdocommand
everytime when it is done.


Dim fdoCmd As OSGeo.FDO.Commands.Feature.ISelect =
fdoConn.CreateCommand(CommandType.CommandType_Select)
Dim fdoReader As OSGeo.FDO.Commands.Feature.IFeatureReader = Nothing
Dim filterString As String

fdoCmd.SetFeatureClassName("GIS_LOADTRANSFORMER")
filterString = String.Format("( UFID = {0} )", ufid)
fdoCmd.SetFilter(filterString)
fdoReader = fdoCmd.Execute()
....                        

fdoCmd.Dispose()
If Not fdoReader Is Nothing Then
      fdoReader.Close()
      fdoReader.Dispose()
End If
-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/dbgql-define-rdb-Memory-Error-when-call-FDOCmd-Execute-tp6054318p6054318.html
Sent from the FDO Users mailing list archive at Nabble.com.
_______________________________________________
fdo-users mailing list
fdo-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/fdo-users


More information about the fdo-users mailing list