Search found 207 matches

by Cpcdos
May 18, 2017 15:05
Forum: DOS
Topic: Strange crash: WHAT IS "inflate_fast()" ???
Replies: 4
Views: 2373

Re: Strange crash: WHAT IS "inflate_fast()" ???

Hi ! I've resolved my problem ! I've download the LIBZ library source, after more hours i've conclued that it use the "inflat_fast()" inclued in GCC. So, i've modified declarations and functions names for use "_inflat_fast()" in the LIBZ ASM code, instead of "inflat_fast()&q...
by Cpcdos
Feb 20, 2017 15:13
Forum: DOS
Topic: Strange crash: WHAT IS "inflate_fast()" ???
Replies: 4
Views: 2373

Re: Strange crash: WHAT IS "inflate_fast()" ???

Hi, thank you for your reply.

That's what it seemed to me after some brief research.
I also think that there are previous memory allocation problems because, the original PNG loader code crash on the same function .. :(

I'll investigate that!
Thank you :)
by Cpcdos
Feb 18, 2017 10:22
Forum: DOS
Topic: Strange crash: WHAT IS "inflate_fast()" ???
Replies: 4
Views: 2373

Strange crash: WHAT IS "inflate_fast()" ???

Hi everybody! I'm based on this code ( https://github.com/freebasic/fbc/blob/master/examples/files/libpng/png.bas ) for have an PNG loader example, and i've strange problem when I execute this. ************************************************************ Please ignore this big DEBUG lines : IF CPCDO...
by Cpcdos
Feb 18, 2017 10:11
Forum: DOS
Topic: How detect memory leak / overflow
Replies: 4
Views: 1510

Re: How detect memory leak / overflow

Hmm.. MEM He can't detect DPMI memory :/ Never mind

But thank you for your help :)
by Cpcdos
Jan 13, 2017 8:21
Forum: DOS
Topic: How detect memory leak / overflow
Replies: 4
Views: 1510

Re: How detect memory leak / overflow

Hello grindstone! Thank you for your reply, under freedos, the FRE value never goes back, like if FRE can't see the "deallocated memory" :( I can block any irq, and use malloc in loop until saturation, and get number bytes used and freeing this. So apparently, he does not exist a tool for ...
by Cpcdos
Jan 12, 2017 11:04
Forum: DOS
Topic: How detect memory leak / overflow
Replies: 4
Views: 1510

How detect memory leak / overflow

Hi everyone! :)
I want know how detect a memory leak/overflow from my dos executable compiled wih freebasic ? (eventually with -g)

GDB tool for DOS does not this :(

Regards!
by Cpcdos
Oct 04, 2016 7:59
Forum: DOS
Topic: Mouse horrible resolution (8x8)
Replies: 4
Views: 1830

Re: Mouse horrible resolution (8x8)

Hi, I appreciate your help! I've took my time for testing your solutions, and i've same problem for all solutions ! other mouse driver, other screen resolutions, .... ALL, VGA also ! :( I conclude that is VirtualBox the problem, or "virtualbox bios mouse emulation" , i will sending this Fr...
by Cpcdos
Sep 29, 2016 13:50
Forum: DOS
Topic: Mouse horrible resolution (8x8)
Replies: 4
Views: 1830

Re: Mouse horrible resolution (8x8)

Thank you for your reply :) I not have any problem with screenlock, is not a jump effect i'm sure! When I set manually my mouse position, never he can be placed between 8 pixels. He move respectively 8 by 8, same problem if I not use "Screenlock". The problem is only on VirtualBox! Not on ...
by Cpcdos
Sep 28, 2016 14:21
Forum: DOS
Topic: Mouse horrible resolution (8x8)
Replies: 4
Views: 1830

Mouse horrible resolution (8x8)

Hi! Thinking accuse VirtualBox I've posted my question here https://forums.virtualbox.org/viewtopic.php?f=4&t=79917 Apparently, this problem "is not in VirtualBox", but FreeBasic compiler ? GFX ? If someone can take his time to resolve this strange bug :/ Thank you Regards
by Cpcdos
Aug 06, 2016 12:17
Forum: DOS
Topic: Change heap size
Replies: 1
Views: 1183

Change heap size

Hi, I would to know how to change heap size from FBC.EXE parameters ? I know -t <value in kb> for the stack I've tested "-Wl" "-Wa" arguments -Wl --heap=0x100000 -Wl=--heap=0x100000 -Wl heap=0x100000 -Wl, -Wl,--heap=0x100000 but I've " unrecognized option " (Same proble...
by Cpcdos
Aug 06, 2016 8:32
Forum: DOS
Topic: Strange SIGSEGV when I exit my FB & C++ program
Replies: 6
Views: 1947

Re: Strange SIGSEGV when I exit my FB & C++ program

My GPP compiler arguments :

Code: Select all

std=c++14 -m32 -O2 -march=i486 -s -funroll-loops -Wall -ffast-math

FreeBasic :

Code: Select all

-O 3 -arch 486 -w all -lang fb -RR -t 8192 -l stdcxx
by Cpcdos
Aug 05, 2016 22:57
Forum: DOS
Topic: Strange SIGSEGV when I exit my FB & C++ program
Replies: 6
Views: 1947

Re: Strange SIGSEGV when I exit my FB & C++ program

I've declared my FB function like declare sub CPC_LOADER cdecl () And my C++ function #define __cdecl __attribute__((__cdecl__)) namespace cpinti { class cpinti_core { public: void __cdecl CPC_LOADER(); }; } void __cdecl cpinti_core::CPC_LOADER() { std::cout << " *** C++ instance ***" << s...
by Cpcdos
Aug 05, 2016 13:09
Forum: DOS
Topic: The best tool as "Dr. Memory" for DOS
Replies: 0
Views: 5522

The best tool as "Dr. Memory" for DOS

Hi, I would to know the best tool for detect "Memory leak" during execution / Signals / Others informations for DOS ? I can launch my DOS program from the NTVDM under Windows XP 32bits if this can help you I know GDB, but this can't detect memory leak during execution (With log....) If I'm...
by Cpcdos
Aug 05, 2016 9:55
Forum: DOS
Topic: Strange SIGSEGV when I exit my FB & C++ program
Replies: 6
Views: 1947

Re: Strange SIGSEGV when I exit my FB & C++ program

Thank you for your reply :) If you link the C++ code, but don't call the function it is ok? Yes, it is ok! :) If i call just one time , it is not ok - calling conventions don't match Remember that g++ may default to __fastcall for C++ methods, while FB only supports cdecl or stdcall. I've tested to ...
by Cpcdos
Aug 04, 2016 18:44
Forum: DOS
Topic: Strange SIGSEGV when I exit my FB & C++ program
Replies: 6
Views: 1947

Strange SIGSEGV when I exit my FB & C++ program

Hi, I've a strange problem with my FreeBasic code. I've declared my C++ function "CPC_LOADER" for using this in freebasic, no problem, when I use this function, this works ;) But when I use JUST ONE TIME my c++ function AND I exit my FreeBasic program, i've Segment Violation signal .. My F...

Go to advanced search