Click here to Skip to main content
15,888,301 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionmicrosoft report viewer in visual studio does not function with a stored procedure Pin
sourav_bhargava5-May-09 20:31
sourav_bhargava5-May-09 20:31 
AnswerRe: microsoft report viewer in visual studio does not function with a stored procedure Pin
Mycroft Holmes5-May-09 21:20
professionalMycroft Holmes5-May-09 21:20 
GeneralRe: microsoft report viewer in visual studio does not function with a stored procedure Pin
sourav_bhargava5-May-09 21:27
sourav_bhargava5-May-09 21:27 
GeneralRe: microsoft report viewer in visual studio does not function with a stored procedure Pin
Mycroft Holmes5-May-09 21:41
professionalMycroft Holmes5-May-09 21:41 
GeneralRe: microsoft report viewer in visual studio does not function with a stored procedure Pin
sourav_bhargava5-May-09 23:06
sourav_bhargava5-May-09 23:06 
GeneralRe: microsoft report viewer in visual studio does not function with a stored procedure Pin
sourav_bhargava5-May-09 23:21
sourav_bhargava5-May-09 23:21 
Questionproblem of checklistbox Pin
nazimghori5-May-09 17:38
nazimghori5-May-09 17:38 
QuestionDisposing of images in GDI+ Pin
Alan Burkhart5-May-09 16:17
Alan Burkhart5-May-09 16:17 
I'm using instructions from Bob Powell's website [^] to save an edited image back to its original file name. Here's my problem:

This is a batch operation with multiple images receiving the same changes. Often, I'll get the GDI+ generic error caused when the original image in memory has not been disposed. The new image to be written back to the original is created one line before disposing of the original (locked) bitmap:

newImg = CreateNewImage(tmpBMP, newW, newH) 'created in function elsewhere in app
tmpBMP.Dispose()

'Following the above code is the code that sets the format and saves the image


The error does not occur if I do the following instead:
newImg = CreateNewImage(tmpBMP, newW, newH)
tmpBMP.Dispose()

If tmpBMP.Equals(Nothing) Then
MsgBox("NOTHING")
End If

'Following the above code is the code that sets the format and saves the image


The graphics object used to draw the new image in memory is disposed in the called function.

Am I correct in assuming that my app isn't getting enough time to dispose of the original before trying to write back to it? The msgbox NEVER actually opens either way, which also confuses me (I'm a newbie to GDI+).

If I do need to be sure the app has enough time to dispose of the original, what is a good way to create the necessary delay? Any suggestions appreciated.
AB
AnswerRe: Disposing of images in GDI+ Pin
Christian Graus5-May-09 17:02
protectorChristian Graus5-May-09 17:02 
GeneralRe: Disposing of images in GDI+ Pin
Alan Burkhart5-May-09 18:11
Alan Burkhart5-May-09 18:11 
QuestionPrinting Problem (Jump to next Page) Pin
Zaegra5-May-09 5:37
Zaegra5-May-09 5:37 
AnswerRe: Printing Problem (Jump to next Page) Pin
Dave Kreskowiak5-May-09 5:48
mveDave Kreskowiak5-May-09 5:48 
QuestionSend email VB 2008 and outlook 2003 Pin
Member 22887045-May-09 1:52
Member 22887045-May-09 1:52 
AnswerRe: Send email VB 2008 and outlook 2003 Pin
Mycroft Holmes5-May-09 17:26
professionalMycroft Holmes5-May-09 17:26 
GeneralRe: Send email VB 2008 and outlook 2003 Pin
Member 22887046-May-09 1:41
Member 22887046-May-09 1:41 
GeneralRe: Send email VB 2008 and outlook 2003 Pin
Dave Kreskowiak6-May-09 2:16
mveDave Kreskowiak6-May-09 2:16 
AnswerRe: Send email VB 2008 and outlook 2003 Pin
Lexter33335-May-09 20:49
Lexter33335-May-09 20:49 
GeneralRe: Send email VB 2008 and outlook 2003 Pin
Member 22887046-May-09 1:47
Member 22887046-May-09 1:47 
AnswerRe: Send email VB 2008 and outlook 2003 Pin
Samir Ibrahim7-May-09 7:24
Samir Ibrahim7-May-09 7:24 
GeneralRe: Send email VB 2008 and outlook 2003 Pin
Member 22887048-May-09 1:29
Member 22887048-May-09 1:29 
Questionround shapes Pin
TheMrProgrammer5-May-09 1:45
TheMrProgrammer5-May-09 1:45 
AnswerRe: round shapes Pin
Anubhava Dimri5-May-09 2:45
Anubhava Dimri5-May-09 2:45 
AnswerRe: round shapes Pin
Dave Kreskowiak5-May-09 5:39
mveDave Kreskowiak5-May-09 5:39 
Question.dbf files Pin
vijay24824-May-09 23:03
vijay24824-May-09 23:03 
Answer[Message Deleted] Pin
Dinesh Vitharana4-May-09 23:31
Dinesh Vitharana4-May-09 23:31 

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.