Search found 67 matches

by ALAN-MHz
Fri Feb 16, 2024 2:38 pm
Forum: Coding Questions
Topic: Windows with lot of TextGadget
Replies: 4
Views: 507

Re: Windows with lot of TextGadget

Thanks to all, i'll check one by one to see which works better for my tool!
by ALAN-MHz
Fri Feb 16, 2024 12:45 pm
Forum: Coding Questions
Topic: Windows with lot of TextGadget
Replies: 4
Views: 507

Windows with lot of TextGadget

Dear all, i've coded a windows full of single textgadget that change text and colour a lot at runtime, so the windows refresh seems really unwatchable with text that disappear, reappear and change colour continuosly, i want to know if i can optimize this solution (with single textgadget or ...
by ALAN-MHz
Tue Jul 25, 2023 7:07 am
Forum: Coding Questions
Topic: Block on END
Replies: 11
Views: 1078

Re: Block on END

threads seems more stable with a global variable for closing them, i test more and more times to be sure because as told the problem is randomic

thanks to all for suggestions
by ALAN-MHz
Mon Jul 24, 2023 3:50 pm
Forum: Coding Questions
Topic: Block on END
Replies: 11
Views: 1078

Re: Block on END

it's the main thread that initialize the mutex after the global variable declaration

do you think that thread can cause the end failure ?

it's also strange that also the debugger freeze

testing:

If MessageRequester ( Softname , "Sure to close ?" , #PB_MessageRequester_YesNo ) = #PB ...
by ALAN-MHz
Mon Jul 24, 2023 3:03 pm
Forum: Coding Questions
Topic: Block on END
Replies: 11
Views: 1078

Re: Block on END


Don't use KillThread, instead set a global variable or something and handle it within the thread!
Also, your code isn't runnable.


i cannot use global variable to manage the thread because they are totally indipendent from main code and contain a lot of delay for processing jobs scheduled, if i ...
by ALAN-MHz
Mon Jul 24, 2023 11:57 am
Forum: Coding Questions
Topic: Block on END
Replies: 11
Views: 1078

Re: Block on END

Windows 11

If MessageRequester ( Softname , "Sure to close ?" , #PB_MessageRequester_YesNo ) = #PB_MessageRequester_Yes
If IsThread ( CleanThread )
KillThread ( CleanThread )
EndIf
If IsThread ( AutoPilotThread )
KillThread ( AutoPilotThread )
EndIf
If IsThread ( AutoRetryThread ...
by ALAN-MHz
Mon Jul 24, 2023 10:32 am
Forum: Coding Questions
Topic: Block on END
Replies: 11
Views: 1078

Block on END

Dear all, i've a strange problem on a software compiled with latest v6.02 LTS, sometimes do not close on end remain process blocked, to better explain is a window that on event show a messagerequester for confirm to close, if user confirm the command "end" is called, i've also tried to free all ...
by ALAN-MHz
Fri Mar 17, 2023 5:32 pm
Forum: Coding Questions
Topic: Image entropy
Replies: 5
Views: 767

Re: Image entropy

the problem is not so easy to solve, because i notice that also good image can have huge entropy, still thinking about a possible workaround, thanks to all
by ALAN-MHz
Fri Feb 24, 2023 2:33 pm
Forum: Coding Questions
Topic: Image entropy
Replies: 5
Views: 767

Re: Image entropy


If your resized ( Or zoomed) the image the bad image will be pixalized heavily
So you can compare between the no of colors of a segment area of the main image and the equal size of the resized image it may give you an opinion about the quality
Have a good luck


interesting idea, i'll take a look ...
by ALAN-MHz
Fri Feb 24, 2023 12:49 pm
Forum: Coding Questions
Topic: Image entropy
Replies: 5
Views: 767

Re: Image entropy

Caronte3D wrote: Fri Feb 24, 2023 12:38 pm Maybe is better if you use OpenCV for this job
i know, but i prefer to not use external elements in this project
by ALAN-MHz
Fri Feb 24, 2023 11:17 am
Forum: Coding Questions
Topic: Image entropy
Replies: 5
Views: 767

Image entropy

dear all,
i need to code a procedure like image entropy calculator, for more clear please take a look at this:

https://easyupload.io/vstl9o

In this file i include 6 image files, 1 good and 5 wrong, all are not complete image, only a crop, for example purphose, i need to identify with the major ...
by ALAN-MHz
Fri Aug 14, 2020 3:21 pm
Forum: Coding Questions
Topic: OnErrorCall inside DLL
Replies: 1
Views: 1084

OnErrorCall inside DLL

I know exist some posts already, but cannot find the right solution, i have a simple example code:

Declare ErrorHandler()

ProcedureDLL AttachProcess ( Instance )
OnErrorCall ( @ErrorHandler () )
RaiseError(#PB_OnError_InvalidMemory)
MessageRequester("3","4")
ProcedureReturn #true
EndProcedure ...
by ALAN-MHz
Wed Jun 03, 2020 4:42 pm
Forum: Coding Questions
Topic: variable numbers of parameters in function
Replies: 17
Views: 3804

variable numbers of parameters in function

I'll try to explain my question with some examples:


Procedure Test ( *a = #Null , *b = #Null )
If *a
Debug *a
EndIf
If *b
Debug *b
EndIf
EndProcedure

Test ( 1 , 2 )
Test ( 3 )
Test ()


This code works good in debug, so seems that is possible to pass different number of parameters to a ...
by ALAN-MHz
Wed Nov 13, 2019 12:54 pm
Forum: General Discussion
Topic: PBCompiler.exe - need to manual use
Replies: 6
Views: 3206

Re: PBCompiler.exe - need to manual use

Fred i'm think that i'm solved, but i want your opinion:

PBCOMPILER.EXE "MyProject.pb" /EXE "MyProject.exe" /THREAD /LINENUMBERING /ADMINISTRATOR /ICON "MyProject.ico" /SUBSYSTEM UserLibThreadSafe /RESOURCE MyProject.rc

When i use "/THREAD" switch seems that give error if i not add also ...
by ALAN-MHz
Wed Nov 13, 2019 11:03 am
Forum: General Discussion
Topic: PBCompiler.exe - need to manual use
Replies: 6
Views: 3206

Re: PBCompiler.exe - need to manual use

Dear Fred, thanks for your answer, in IDE compile without problem and run without problem, i'll try some more test today.
Thanks skywalk for rc, i'll try as soon as possible.