Community
Message Board

Chat room - users
Game Over
( 394431 downloads)
Work In Progress
( 523201 downloads)
Links

Code Exchange
Downloads
Tutorials
Add to Favourites

Submit news

DIV ARENA FORUMS
Not logged in [Login - Register]
Go To Bottom

Printable Version  
Author: Subject: DLL heap seems to be smaller than the div program heap
Vortigano
DIV Regular
***




Posts: 228
Registered: 12-1-2017
Location: Ciudad de Buenos Aires, Argentina
Member Is Offline


[*] posted on 10-3-2019 at 09:26 PM
DLL heap seems to be smaller than the div program heap


When I use malloc () from the dll the heap seems to be smaller than reserving memory from within the DIV program, so my programs crashes.
For now I use malloc () inside the div program and pass the memory pointers to the dll and i don't have problems, but i think it's good to report it.
View user's profile View All Posts By User
CicTec
DIV Pro
******




Posts: 433
Registered: 6-8-2016
Member Is Offline


[*] posted on 11-3-2019 at 09:04 AM


Hi Vortigano,

The readme.txt file on the DLL system clearly indicates that you do not use these functions in libraries, use special functions defined in the SDK for DLLs, to avoid any problems:
Quote:

It is not possible to use the functions malloc(), free(), fopen() or fclose()
so you must use instead div_malloc(), div_free(), div_fopen() and div_fclose().
This functions behave exactly the same way than the ones used on C.

Try using these features to see if it solves the problem.
View user's profile View All Posts By User
Vortigano
DIV Regular
***




Posts: 228
Registered: 12-1-2017
Location: Ciudad de Buenos Aires, Argentina
Member Is Offline


[*] posted on 11-3-2019 at 01:33 PM


Ok. I think i tested it using malloc() and div_malloc() with the same problem the last year . For now I'm studying j2me and KVM (kilo virtual machine) but soon I'll test it exhaustively.
View user's profile View All Posts By User

  Go To Top

Powered by XMB
XMB Forum Software © 2001-2012 The XMB Group
[Queries: 18]