Click here to Skip to main content
15,911,035 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: listview Pin
Paramhans Dubey25-Sep-09 0:22
professionalParamhans Dubey25-Sep-09 0:22 
QuestionDevice Programming Pin
structures8324-Sep-09 19:19
structures8324-Sep-09 19:19 
AnswerRe: Device Programming Pin
Christian Graus24-Sep-09 19:48
protectorChristian Graus24-Sep-09 19:48 
AnswerRe: Device Programming Pin
Dave Kreskowiak25-Sep-09 3:32
mveDave Kreskowiak25-Sep-09 3:32 
QuestionAttached an Exe file in a mail and not able to find at destination pc. Pin
r_mohd24-Sep-09 13:48
r_mohd24-Sep-09 13:48 
AnswerRe: Attached an Exe file in a mail and not able to find at destination pc. Pin
Christian Graus24-Sep-09 13:59
protectorChristian Graus24-Sep-09 13:59 
AnswerRe: Attached an Exe file in a mail and not able to find at destination pc. Pin
Luc Pattyn24-Sep-09 14:57
sitebuilderLuc Pattyn24-Sep-09 14:57 
Question.NET memory encreasing (GetBitmapBits) Pin
Colin Raaijmakers24-Sep-09 9:56
Colin Raaijmakers24-Sep-09 9:56 
.NET memory encreasing (GetBitmapBits)

I am creating an application for my Logitech G19 keyboard with a LCD screen.
First i created a bitmap where i put some information on (such as text) to put on my lcd screen.

Dim bmpNet As Bitmap
...etc...etc... put information, text...etc...


Then, i have to convert the bitmap to bytes/intptr as the following line says with GetBitmapBits:

GetBitmapBits(bmpNet.GetHbitmap, lcdBMPQVGAx32.pixels.Length, lcdBMPQVGAx32.pixels)


Function is declere on top of my source code as:
<DllImport("gdi32.dll", CharSet:=CharSet.Auto, SetLastError:=True, ExactSpelling:=True)> _
Public Shared Function GetBitmapBits(ByVal hbmp As IntPtr, ByVal cbBuffer As Integer, ByVal lpvBits As Byte()) As Integer
End Function


Now, every time GetBitmapBits invokes, the memory of my application will encrease with 200kB/300kB. I have a timer ticking, so the memory will encrease every, 2 a 3 seconds.

Can someone help me with this problem?

Thanks in advance.

Colin Raaijmakers
AnswerRe: .NET memory encreasing (GetBitmapBits) Pin
Luc Pattyn24-Sep-09 10:05
sitebuilderLuc Pattyn24-Sep-09 10:05 
AnswerRe: .NET memory encreasing (GetBitmapBits) Pin
freakyit25-Sep-09 5:01
freakyit25-Sep-09 5:01 
GeneralRe: .NET memory encreasing (GetBitmapBits) Pin
Colin Raaijmakers25-Sep-09 11:37
Colin Raaijmakers25-Sep-09 11:37 
QuestionCollege Games Competition Pin
maybel 24-Sep-09 9:52
maybel 24-Sep-09 9:52 
AnswerRe: College Games Competition Pin
Dave Kreskowiak24-Sep-09 10:21
mveDave Kreskowiak24-Sep-09 10:21 
GeneralRe: College Games Competition Pin
maybel 25-Sep-09 2:35
maybel 25-Sep-09 2:35 
GeneralRe: College Games Competition Pin
Dave Kreskowiak25-Sep-09 3:30
mveDave Kreskowiak25-Sep-09 3:30 
GeneralRe: College Games Competition Pin
maybel 25-Sep-09 5:39
maybel 25-Sep-09 5:39 
GeneralRe: College Games Competition Pin
Dave Kreskowiak25-Sep-09 7:24
mveDave Kreskowiak25-Sep-09 7:24 
GeneralRe: College Games Competition Pin
maybel 25-Sep-09 8:08
maybel 25-Sep-09 8:08 
AnswerRe: College Games Competition Pin
Christian Graus24-Sep-09 13:40
protectorChristian Graus24-Sep-09 13:40 
AnswerRe: College Games Competition Pin
darkelv24-Sep-09 19:40
darkelv24-Sep-09 19:40 
QuestionSend message with params Pin
EnricoBortolussi24-Sep-09 7:45
EnricoBortolussi24-Sep-09 7:45 
AnswerRe: Send message with params Pin
Luc Pattyn24-Sep-09 8:28
sitebuilderLuc Pattyn24-Sep-09 8:28 
GeneralRe: Send message with params Pin
Henry Minute24-Sep-09 12:37
Henry Minute24-Sep-09 12:37 
GeneralRe: Send message with params Pin
Luc Pattyn24-Sep-09 12:49
sitebuilderLuc Pattyn24-Sep-09 12:49 
QuestionEvent not finished - Form Closing causes nullreference exception Pin
nlarson1124-Sep-09 7:27
nlarson1124-Sep-09 7:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.