ArrayArrayArrayArrayArrayArrayArrayArray BrainModular BrainModular Users Forum 2008-07-22T12:57:10+02:00 https://brainmodular.org/forums/app.php/feed/topic/946 2008-07-22T12:57:10+02:00 2008-07-22T12:57:10+02:00 https://brainmodular.org/forums/viewtopic.php?t=946&p=4895#p4895 <![CDATA[Bouncing Balls]]>
Error messages aren't displayed in the trace panel but reprted in the LogUsine.log file.
So it can help if you need to get error msg (in the future I'll implement a 'debug' mode to display such msg more friendly...)

In the case of the BouncingBalls you have (my system is in french)

CODE:

&#91;12&#58;38&#58;23&#93; TUserPanel  Descripteur non valide&#91;12&#58;38&#58;23&#93; Error&#58;Internal in TUserPanel &#91;12&#58;38&#58;39&#93; TUserPanel  La ressource demandée est en cours d'utilisation.&#91;12&#58;38&#58;39&#93; Error&#58;Internal in TUserPanel &#91;12&#58;38&#58;40&#93; TUserPanel  Out of system resources&#91;12&#58;38&#58;40&#93; Error&#58;Internal in TUserPanel &#91;12&#58;38&#58;44&#93; TUserPanel  Out of system resources
When we look carefully it seems to come from InitSpace called by the Resize.

CODE:

procedure TBouncingBalls.InitSpace;begin  Bitmap.Width&#58;=ModuleWidth-&#40;BorderWidth*2&#41;;  Bitmap.height&#58;=ModuleHeight-&#40;BorderWidth*2&#41;;  SpaceRgn&#58;=CreateRectRgn&#40;0,0,Bitmap.Width,Bitmap.Height&#41;;end;
I don't know precisely how works the CreateRectRgn routine, (I don't use it In Usine).
But two possible bugs:
- you create Rgn without destroying the previous one ?
- the resize is called by the "display thread" and the process by the "realtime audio thread". So it's possible to have conflicts (you re-create region while you attempt to use it in the process routine). To protect your code you can use TCriticalSection (Aquire & Release).

I hope It will help you.

I'm also impatient to have the web cam Usermodule!!

Statistics: Posted by senso — 22 Jul 2008, 12:57


]]>
2008-07-22T10:52:09+02:00 2008-07-22T10:52:09+02:00 https://brainmodular.org/forums/viewtopic.php?t=946&p=4894#p4894 <![CDATA[Bouncing Balls]]> Be sure i will use it. Thank you very much for this module.
i am impatient to try your 'web cam' module .... You realy make me happy.

Have nice time on holliday and good fishing.

Statistics: Posted by cmodica — 22 Jul 2008, 10:52


]]>
2008-07-22T10:15:18+02:00 2008-07-22T10:15:18+02:00 https://brainmodular.org/forums/viewtopic.php?t=946&p=4893#p4893 <![CDATA[Bouncing Balls]]>
I Prepare a module with webcam panel
ouh ouh ! Christmas in summer !!!

and happy fishing too...;-)

Statistics: Posted by nay-seven — 22 Jul 2008, 10:15


]]>
2008-07-22T00:36:39+02:00 2008-07-22T00:36:39+02:00 https://brainmodular.org/forums/viewtopic.php?t=946&p=4892#p4892 <![CDATA[Bouncing Balls]]>
Zenzak

Statistics: Posted by zenzak — 22 Jul 2008, 00:36


]]>
2008-07-22T00:31:54+02:00 2008-07-22T00:31:54+02:00 https://brainmodular.org/forums/viewtopic.php?t=946&p=4891#p4891 <![CDATA[Bouncing Balls]]>
Cordialement
zenzak

Statistics: Posted by zenzak — 22 Jul 2008, 00:31


]]>
2008-07-21T22:05:18+02:00 2008-07-21T22:05:18+02:00 https://brainmodular.org/forums/viewtopic.php?t=946&p=4890#p4890 <![CDATA[Bouncing Balls]]> Statistics: Posted by senso — 21 Jul 2008, 22:05


]]>
2008-07-21T20:22:49+02:00 2008-07-21T20:22:49+02:00 https://brainmodular.org/forums/viewtopic.php?t=946&p=4889#p4889 <![CDATA[Bouncing Balls]]>
just 2 little bugs :

changing the visible status : ( for ex : ctrl panel to interface panel ) change the number of balls

in interface panel , changing the size of the window bug Usine
with this message :
Error:Internal in TUserPanel

Statistics: Posted by nay-seven — 21 Jul 2008, 20:22


]]>
2008-07-21T18:33:35+02:00 2008-07-21T18:33:35+02:00 https://brainmodular.org/forums/viewtopic.php?t=946&p=4888#p4888 <![CDATA[Bouncing Balls]]> A Bouncing balls Panel. Balls trigger when bouncing. Speed and number of balls can be set. I add a workspace where the balls trigger two StepMidi modules.

Zenzak

Statistics: Posted by zenzak — 21 Jul 2008, 18:33


]]>
BrainModular BrainModular Users Forum 2008-07-22T12:57:10+02:00 https://brainmodular.org/forums/app.php/feed/topic/946 2008-07-22T12:57:10+02:00 2008-07-22T12:57:10+02:00 https://brainmodular.org/forums/viewtopic.php?t=946&p=4895#p4895 <![CDATA[Bouncing Balls]]>
Error messages aren't displayed in the trace panel but reprted in the LogUsine.log file.
So it can help if you need to get error msg (in the future I'll implement a 'debug' mode to display such msg more friendly...)

In the case of the BouncingBalls you have (my system is in french)

CODE:

&#91;12&#58;38&#58;23&#93; TUserPanel  Descripteur non valide&#91;12&#58;38&#58;23&#93; Error&#58;Internal in TUserPanel &#91;12&#58;38&#58;39&#93; TUserPanel  La ressource demandée est en cours d'utilisation.&#91;12&#58;38&#58;39&#93; Error&#58;Internal in TUserPanel &#91;12&#58;38&#58;40&#93; TUserPanel  Out of system resources&#91;12&#58;38&#58;40&#93; Error&#58;Internal in TUserPanel &#91;12&#58;38&#58;44&#93; TUserPanel  Out of system resources
When we look carefully it seems to come from InitSpace called by the Resize.

CODE:

procedure TBouncingBalls.InitSpace;begin  Bitmap.Width&#58;=ModuleWidth-&#40;BorderWidth*2&#41;;  Bitmap.height&#58;=ModuleHeight-&#40;BorderWidth*2&#41;;  SpaceRgn&#58;=CreateRectRgn&#40;0,0,Bitmap.Width,Bitmap.Height&#41;;end;
I don't know precisely how works the CreateRectRgn routine, (I don't use it In Usine).
But two possible bugs:
- you create Rgn without destroying the previous one ?
- the resize is called by the "display thread" and the process by the "realtime audio thread". So it's possible to have conflicts (you re-create region while you attempt to use it in the process routine). To protect your code you can use TCriticalSection (Aquire & Release).

I hope It will help you.

I'm also impatient to have the web cam Usermodule!!

Statistics: Posted by senso — 22 Jul 2008, 12:57


]]>
2008-07-22T10:52:09+02:00 2008-07-22T10:52:09+02:00 https://brainmodular.org/forums/viewtopic.php?t=946&p=4894#p4894 <![CDATA[Bouncing Balls]]> Be sure i will use it. Thank you very much for this module.
i am impatient to try your 'web cam' module .... You realy make me happy.

Have nice time on holliday and good fishing.

Statistics: Posted by cmodica — 22 Jul 2008, 10:52


]]>
2008-07-22T10:15:18+02:00 2008-07-22T10:15:18+02:00 https://brainmodular.org/forums/viewtopic.php?t=946&p=4893#p4893 <![CDATA[Bouncing Balls]]>
I Prepare a module with webcam panel
ouh ouh ! Christmas in summer !!!

and happy fishing too...;-)

Statistics: Posted by nay-seven — 22 Jul 2008, 10:15


]]>
2008-07-22T00:36:39+02:00 2008-07-22T00:36:39+02:00 https://brainmodular.org/forums/viewtopic.php?t=946&p=4892#p4892 <![CDATA[Bouncing Balls]]>
Zenzak

Statistics: Posted by zenzak — 22 Jul 2008, 00:36


]]>
2008-07-22T00:31:54+02:00 2008-07-22T00:31:54+02:00 https://brainmodular.org/forums/viewtopic.php?t=946&p=4891#p4891 <![CDATA[Bouncing Balls]]>
Cordialement
zenzak

Statistics: Posted by zenzak — 22 Jul 2008, 00:31


]]>
2008-07-21T22:05:18+02:00 2008-07-21T22:05:18+02:00 https://brainmodular.org/forums/viewtopic.php?t=946&p=4890#p4890 <![CDATA[Bouncing Balls]]> Statistics: Posted by senso — 21 Jul 2008, 22:05


]]>
2008-07-21T20:22:49+02:00 2008-07-21T20:22:49+02:00 https://brainmodular.org/forums/viewtopic.php?t=946&p=4889#p4889 <![CDATA[Bouncing Balls]]>
just 2 little bugs :

changing the visible status : ( for ex : ctrl panel to interface panel ) change the number of balls

in interface panel , changing the size of the window bug Usine
with this message :
Error:Internal in TUserPanel

Statistics: Posted by nay-seven — 21 Jul 2008, 20:22


]]>
2008-07-21T18:33:35+02:00 2008-07-21T18:33:35+02:00 https://brainmodular.org/forums/viewtopic.php?t=946&p=4888#p4888 <![CDATA[Bouncing Balls]]> A Bouncing balls Panel. Balls trigger when bouncing. Speed and number of balls can be set. I add a workspace where the balls trigger two StepMidi modules.

Zenzak

Statistics: Posted by zenzak — 21 Jul 2008, 18:33


]]>