Help Memory problem with NET

Discussions on GFL SDK, the graphic library for reading and writing graphic files

Moderators: XnTriq, helmut, xnview

Ciccio

Help Memory problem with NET

Post by Ciccio »

I have a couple of problems and maybe somebody can help, please.
I'm using NET 2003 and I'm using managed forms.

a) To be able to allocate space in memory I need to use the "new" constructor else no spece is taken.
b) After I used the "new" operator if I use the "delete" operator I get an exception "_BLOCK_TYPE_IS_VALID(pHead->nBlockUse)"

I also tried the "gflFreeBitmapData" or "gflMemoryFree", but they don't free anything.

Any suggestion is really appreciated
User avatar
xnview
Author of XnView
Posts: 44593
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Help Memory problem with NET

Post by xnview »

Ciccio wrote:I have a couple of problems and maybe somebody can help, please.
I'm using NET 2003 and I'm using managed forms.

a) To be able to allocate space in memory I need to use the "new" constructor else no spece is taken.
b) After I used the "new" operator if I use the "delete" operator I get an exception "_BLOCK_TYPE_IS_VALID(pHead->nBlockUse)"

I also tried the "gflFreeBitmapData" or "gflMemoryFree", but they don't free anything.

Any suggestion is really appreciated
Sorry but i don't know .NET :-(
Pierre.