Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Thu Nov 14, 2019 9:32 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Problem with DragItem
PostPosted: Sat Mar 02, 2013 12:11 pm 
Offline

Joined: Fri Dec 01, 2006 9:39 pm
Posts: 180
I experience a strange behavior if dropping from the finder

if I open a ModalWindow after the drop and wait about 20 seconds before closing it, the app will crash as soon as i drag and drop again.

I hope you understand... :)

Try this:

Sub DropObject(obj As DragItem, action As Integer)
// some code to handle the DragItem
// ..............

window2.ShowModal
End Sub


- Drag & drop a item from the finder. (window2 will open)
- Now wait more than 20 seconds
- close window2
- Drag & drop again

Here, the application will crash.
(RS 2011 r4.3)


Any ideas?


Top
 Profile  
Reply with quote  
 Post subject: Re: Problem with DragItem
PostPosted: Sat Mar 02, 2013 12:25 pm 
Offline
User avatar

Joined: Sun Aug 05, 2007 10:46 am
Posts: 4931
Location: San Diego, CA
Try using SHOW and HIDE instead of SHOWMODAL and CLOSE

_________________
Dave Sisemore
iMac I7[2012], OSX Mountain Lion 10.8.3 RB2012r2.1
Note : I am not interested in any solutions that involve custom Plug-ins of any kind


Top
 Profile  
Reply with quote  
 Post subject: Re: Problem with DragItem
PostPosted: Sat Mar 02, 2013 12:36 pm 
Offline

Joined: Fri Dec 01, 2006 9:39 pm
Posts: 180
I need to use ShowModal because there is code after it.

It works if I trigger window2.ShowModal with a timer.
It looks if the drag&drop action can not finished because of the modal window...


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group