Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Transfer Crashes Application
Transfer Crashes Application [message #1014747] Tue, 26 February 2013 06:43 Go to next message
S. Schulz
Messages: 71
Registered: September 2011
Member
Hello!

While single-sourcing a RAP application I found a nice little fatal error in RCP. I recreated a simple demo project to show the error, but it boils down to the usage of my own Transfer. While it works in RAP, in RCP every drag movement results in the application crashing with the following error:

# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x10030568, pid=7272, tid=1304
#
# JRE version: 7.0_05-b05
# Java VM: Java HotSpot(TM) Client VM (23.1-b03 mixed mode, sharing windows-x86 )
# Problematic frame:
# C  [swt-win32-3740.dll+0x30568]  Java_org_eclipse_swt_internal_ole_win32_COM_VtblCall_1VARIANTP+0x9e4
 


Could anyone take a look and maybe spot what's wrong with the Transfer? Debugging is kind of hard if the application keeps crashing.

Thanks in advance,

S. Schulz


Attached are: The demo application, the Transfer and the entire error log.
Re: Transfer Crashes Application [message #1017274 is a reply to message #1014747] Mon, 11 March 2013 08:35 Go to previous message
S. Schulz
Messages: 71
Registered: September 2011
Member
It's kinda surprising we are the only ones using DnD, but if some poor sap stumbles over this topic, I attached the working Transfer. The problem seems to be that Transfers need to be implemented OS-specific, that's why this class extends ByteArrayTransfer and calls super methods on some points so that that class will do the entire magic. The same goes for getSupportedTypes().

Previous Topic:why eclipse is preferred as development framework.
Next Topic:Getting the Position of an Editor
Goto Forum:
  


Current Time: Thu Jul 24 11:27:43 EDT 2014

Powered by FUDForum. Page generated in 0.03314 seconds