Our members are dedicated to PASSION and PURPOSE without drama!

Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Stepkevh

#61
Questions & Answers / Re: Making a standalone exe or msi
December 02, 2012, 06:50:45 AM
Vic,

It was that easy, never looked that far  :)) :))

thanks

ralph, all the implementation is done,
all is done in VS 2012 express :-)
#62
Questions & Answers / Making a standalone exe or msi
December 02, 2012, 06:24:51 AM
As the title states...

I use Visual Studio 2012 to make my project.

But i wish to make a standalone exe or msi to send to people instead of a zip file with the needed files in it

Appearantly installshield isn't implemented anymore.

Which software can be used to do what i want to accomplish ?

Stef
#63
Ophis' MST / Re: Clicker Request...
November 29, 2012, 06:24:08 AM
a clicker is a tool that places the bets for you on the table.

a handy thingy when you need to place a lot of bets in small amount of time
#64
found it, needed to use the code in the webbrowser.windowclosing event  :)
#65
My browsers run in a tabcontrol.
So the code that i use for the "stop" button is
 
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click

' Stop Button
If TabControl1.TabCount > 1 Then
TabControl1.SelectedTab.Dispose()
End If 
newtab.AxWebBrowser1.Navigate("about:blank")
End Sub


This code releases the resource from the browser that contained the table

But if i click the "exit" on the casinotable itselfthen there is a FormClose triggered.
So i use the same code for the FormClosing event except that i add  e.cancel = true

but this doesn't release all the resources
#66
The build in WB is IE so that's not a problem

Ophis,

It will give the memory back if i use a stop button.
But if i use the "exit" button from the table itself then i only get 1/3 of my memory back  ???

And i use the same code
#67
General Discussion / Re: The ideal Dynamics Of The Site
November 28, 2012, 12:07:14 PM
Ophis,

that permission thingy sounds interesting.

somebody has some info on how to implement such a feature ?
#68
But still i have the problem that the internal webbrowser leaks system memory

not that much but it leaks
and if i close the table it doesn't give all the memory back (webbrowser memory + leaked memory)

so i solved it with loading the table in an external explorer window.
if i close that it doesn't affect my bot memory and the IE memory is directly released.
i think that's the only option
#69
Back again after a lot of trial and (t)error   :P


Stupid "me" found the problem.

Looked at my call stack and saw that i created a recursive loop.

Problem solved by making an itteration loop  :thumbsup:
#70
General Discussion / Re: The ideal Dynamics Of The Site
November 28, 2012, 08:37:38 AM
Sam,

I don't see the problem.

If somebody orders a bot for a system that he thought of

then the bot automaticly is only owned to 2 persons (customer and maker)

So there is no way that somebody else could use that bot unless that the customer is sending it to someone else.

Or am i seeing something wrong here  ???
#71
Ralph,

its not a memory leak i think.

because the memory of the bot stays between 50000 and 60000 kB

and the explorer window with the casino table stays at 72000 kB.

Is it possible that the call stack exceeds a limit ?
#72
Okay,

changed the code again.

now in that way that the table loads in an external ie webbrowser (not loading in the form)

with good hopes i started the bot, looked at memory and stayed pretty stable

and guess what ... after around 1300 spins it stopped working again  ???

so there has to be something wrong in my code but its weird that it stops after 1300 times running the same code  >:(
#73
allright,

changed the code with bmp.dispose where needed.
memory leaks less but isn't completely over yet.

is it possible that the "Function Pixelvalue(ByVal ex As Integer, ByVal ey As Integer)" itself leaks

because vb.net says that's "pixelvalue is an object"

so declaring it as "Function Pixelvalue(ByVal ex As Integer, ByVal ey As Integer) As Integer"

should'nt that be better because pixelvalue returns a value and isn't a sub ??

otherwise the code always keeps pixelvalue in memory because its an object.

just correct me if i'm wrong.

Meanwhile i took a screenshot of the hanging, you will see that when the app hangs there's always
something missing on the table, this time it is the spinbutton.
Sometimes i get a black box painted over the "cashier" item or a big black box painted over "Statistics & connection status" items.

Could it be that the form or so doesn't repaint properly ?
#74
Ralph,

I'm using the piece of code that you provided on the hobbycode thread.


Friend Function PixelValue(ByVal ex As Integer, ByVal ey As Integer)
Dim BMP As New Drawing.Bitmap(1, 1)
Dim GFX As System.Drawing.Graphics = System.Drawing.Graphics.FromImage(BMP)
GFX.CopyFromScreen(New Drawing.Point(ex, ey), New Drawing.Point(0, 0), BMP.Size)
Dim myColor = BMP.GetPixel(0, 0)
 
PixelValue = myColor.R & myColor.G & myColor.B 
GC.Collect()
End Function


You're saying i need to dispose the bitmap properly, then what do i need to add in the code ?

Just a simple

BMP.Dispose
GFX.Dispose


instead of GC.collect ?
#75
Updated the videocard driver last evening.

Changed some coding, especially the getpixel code.
I don't use the getpixel api anymore, i used the inbuild getpixel function now.

Rebuilded the bot and ran it.
Send it to my buddy and he ran it also.

Now we both get the same error.

The bot runs for 1250 spins and then halts with an error on "ntdll.dll"

Any ideas ?