Miniwood and compress files problems

Find quick help here to get you started with Hollywood
User avatar
Juan Carlos
Posts: 951
Joined: Mon Sep 06, 2010 1:02 pm

Miniwood and compress files problems

Post by Juan Carlos »

I tryed to use the Miniwood system and compress an executable for Windows but when I click on it, the program crashes, even using the @OPTIONS {Compress=True}, I tested this program under Wine on Linux and also crashed, in the documentation It explains that this is possible to reduce the size of the executables by two-thirds, but in my case it causes problems. Even without put @OPTIONS {Compress=True}.
Thanks for the ideas.
amyren
Posts: 431
Joined: Thu May 02, 2019 11:53 am

Re: Miniwood and compress files problems

Post by amyren »

You did add all the required libraries, like the example below?
the commands you use in your script use a library, so make sure all are included

Code: Select all

@IF #HW_MINI
@USING "brush"
@USING "dos"
@USING "display"
@USING "draw"
@USING "error"
@USING "event"
@USING "filters"
@USING "graphics"
@USING "icon"
@USING "imageio"
@USING "math"
@USING "object"
@USING "offscreen"
@USING "palette"
@USING "pointer"
@USING "requester"
@USING "sprite"
@USING "string"
@USING "system"
@USING "text"
@USING "time"
@ENDIF
plouf
Posts: 692
Joined: Sun Feb 04, 2018 11:51 pm
Location: Athens,Greece

Re: Miniwood and compress files problems

Post by plouf »

have you try to create it under windows ?or another os ?
what libraries you are @USING ?

the following simplified example do not crash here win11/64
does it crash for you ?

Code: Select all

@OPTIONS {compress=True}
@USING "requester"
SystemRequest("title","body","ok")
Christos
User avatar
Juan Carlos
Posts: 951
Joined: Mon Sep 06, 2010 1:02 pm

Re: Miniwood and compress files problems

Post by Juan Carlos »

I included the libraries neccesary and the program without compresas works fine, I tested under Windows 7 64 bits and with Winn under Linux LiteOS and both cases the ejecutable crashed.
plouf
Posts: 692
Joined: Sun Feb 04, 2018 11:51 pm
Location: Athens,Greece

Re: Miniwood and compress files problems

Post by plouf »

Because my simple example do not crash we should find out what is causing that to you

First, does my simple example crash to you ?
Then can you tell us ALL libraies you are @USING?

Ideal would be to create a small example that crash, so we can also tesr
Christos
User avatar
Juan Carlos
Posts: 951
Joined: Mon Sep 06, 2010 1:02 pm

Re: Miniwood and compress files problems

Post by Juan Carlos »

Well I tested my program under AmigaOS3.9, with the same parameters, the MiniWood, the libraries and the @OPTIONS {Compress=True} and compress the executable and not for this system the program doesn't crash, I'll make other test on MorphOS, but under Windows 7, the program crashed, make a little example why? when the problem is only with Windows 7, even testing the program with Linux running inside the Wine.
plouf
Posts: 692
Joined: Sun Feb 04, 2018 11:51 pm
Location: Athens,Greece

Re: Miniwood and compress files problems

Post by plouf »

Rhe idea is only to track down the problem

Have you tey with windows 11 ? Does it crash?
Have you try a minimum example like the one i post which is tested under windows 11, does it crash?

Step by step to find out what exaclty is problematic !

P.s. all test i do was under windows 11/64 and do not crash .
Christos
amyren
Posts: 431
Joined: Thu May 02, 2019 11:53 am

Re: Miniwood and compress files problems

Post by amyren »

I just tested my own program (PolarPaint) and compiled executable with Hollywood and another with Miniwood. Both run without crashes on Windows 7 64 bit (in virtualbox).

When there are missing libraries causing crashes for Miniwood there should be an error message telling which function call that failed. I asume you get no error messages since you not mentioned any?
User avatar
Juan Carlos
Posts: 951
Joined: Mon Sep 06, 2010 1:02 pm

Re: Miniwood and compress files problems

Post by Juan Carlos »

No when ir crashed the program doesn't errores only that Windows is trying find a solution, I have the same under MorphOS and it works fine, but the Windows version under Windows 10 also Crash, I have the doubt if when you make the ejecutable the Hollywood IDE uses some Windows 7 dll, will be a strange problem with my Windows 7, because it isn't update.
User avatar
Juan Carlos
Posts: 951
Joined: Mon Sep 06, 2010 1:02 pm

Re: Miniwood and compress files problems

Post by Juan Carlos »

After testing with some of my other programs, I found that the problem occurs when I enable the file compression option for Windows. Without compression, my programs work perfectly. It's a strange problem; I don't know if it's because my Windows 7 isn't updated and the Hollywood IDE needs a more recent DLL file.
When the target is for other systems, even using Miniwood, the program works fine, but for Windows using Miniwood or Hollywood, the compressed program fails.
Post Reply